
Recherche avancée
Autres articles (37)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)
Sur d’autres sites (6039)
-
Merge commit ’fbd6c97f9ca858140df16dd07200ea0d4bdc1a83’
27 novembre 2014, par Michael NiedermayerMerge commit ’fbd6c97f9ca858140df16dd07200ea0d4bdc1a83’
* commit ’fbd6c97f9ca858140df16dd07200ea0d4bdc1a83’ :
lavu : fix memory leaks by using a mutex instead of atomicsConflicts :
libavutil/buffer.cThe atomics code is left in place as a fallback for synchronization in the
absence of p/w32 threads. Our ABI did not requires applications to
only use threads (and matching ones) to what libavutil was build with
Our code also was not affected by the leak this change fixes, though
no question the atomics based implementation is not pretty at all.
First and foremost the code must work, being pretty comes after that.If this causes problems, for example when libavutil is used by multiple
applications each using a different kind of threading system then the
default possibly has to be changed to the uglier atomics.See : cea3a63ba3d89d8403eef008f7a7c54d645cff70
Merged-by : Michael Niedermayer <michaelni@gmx.at> -
FFmpeg leak while reading image files
18 septembre 2016, par TimWhile reading image files using a recent version of
FFmpeg
I’m encountering a memory leak I’m having trouble tracking down.It seems that after filling the
AVFrame
withavcodec_send_packet
andavcodec_receive_frame
, my call toav_frame_free
is not actually deallocating theAVBuffer
objects withing the frame. The only thing I’m not freeing is theAVCodecContext
. If I try to do that, I get a crash.I’ve created this sample program, it is about as simple as I can get it. This will keep opening, reading and then closing the same image file in a loop. On my system this leaks memory at an alarming rate.
#include <libavcodec></libavcodec>avcodec.h>
#include <libavformat></libavformat>avformat.h>
int main(int argc, char **argv) {
av_register_all();
while(1) {
AVFormatContext *fmtCtx = NULL;
if (avformat_open_input(&fmtCtx, "/path/to/test.jpg", NULL, NULL) == 0) {
if (avformat_find_stream_info(fmtCtx, NULL) >= 0) {
for (unsigned int i = 0u; i < fmtCtx -> nb_streams; ++i) {
AVStream *stream = fmtCtx -> streams[i];
AVCodecContext *codecCtx = stream -> codec;
AVCodec *codec = avcodec_find_decoder(codecCtx -> codec_id);
if (avcodec_open2(codecCtx, codec, NULL) == 0) {
AVPacket packet;
if (av_read_frame(fmtCtx, &packet) >= 0) {
if (avcodec_send_packet(codecCtx, &packet) == 0) {
AVFrame *frame = av_frame_alloc();
avcodec_receive_frame(codecCtx, frame);
av_frame_free(&frame);
}
}
av_packet_unref(&packet);
}
}
}
avformat_close_input(&fmtCtx);
}
}
return 0;
} -
Ubuntu ffmpeg command -i not found
12 avril 2016, par GerwinI’m a beginner with Ubuntu and I need to setup a streaming server for my company, I’ve installed NGINX and FFMPEG, but when I call
ffmpeg -i
in the~/ffmpeg/ffmpeg
directory it returns an errorcommand not found
but when I call./ffmpeg -i
it returns a list with configurations.. why doesffmpeg -i
not work and how can I fix it ?I think that the
Path Enviroment Variable is incorrect
but how would I go abouts changing said variable ? I’m not that experienced with Ubuntu / CMD programming / FFMPEG configuration.Sources - https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
https://github.com/arut/nginx-rtmp-module/wiki/Control-module
and http://docs.unified-streaming.com/tutorials/live/broadcast-247.html#continuous-timestamps