Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (97)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (12784)

  • avformat/iamf_writer : Remove nonsense check

    19 février 2024, par Andreas Rheinhardt
    avformat/iamf_writer : Remove nonsense check
    

    Checking whether a pointer to an element of an array is NULL
    makes no sense, as the pointer addition involved in getting
    the address would be undefined behaviour already if the array
    were NULL.
    In this case the array allocation has already been checked
    a few lines before.
    Fixes Coverity issue #1559548.

    Reviewed-by : James Almer <jamrial@gmail.com>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavformat/iamf_writer.c
  • Audio Lag Issue in Long-term FFmpeg Live Streaming with x11grab and Pulse

    8 juillet 2024, par Dhairya Verma

    I am currently working on a live streaming project where I use FFmpeg with x11grab and PulseAudio to stream headlessly from a Linux server to an RTMP endpoint. While the setup generally works well, I am encountering an issue where the audio begins to lag behind the video after approximately two days of continuous streaming.

    &#xA;

    "-hwaccel", "cuda",&#xA;&#xA;"-f", "x11grab",&#xA;&#xA;"-s", "1920x1080",&#xA;&#xA;"-draw_mouse", "0",&#xA;&#xA;"-thread_queue_size", "1024",&#xA;&#xA;"-i", ":1",&#xA;&#xA;"-f", "pulse",&#xA;&#xA;"-r", "60",&#xA;&#xA;"-thread_queue_size", "1024",&#xA;&#xA;"-i", "VirtualSink.monitor",&#xA;&#xA;"-c:v", "h264_nvenc",&#xA;&#xA;"-preset:v", "hq",&#xA;&#xA;"-b:v", "2500k",&#xA;&#xA;"-maxrate", "2500k",&#xA;&#xA;"-bufsize", "10000k",&#xA;&#xA;"-vf", "fps=60,crop=1280:720:320:180,format=yuv420p",&#xA;&#xA;"-g", "60",&#xA;&#xA;"-c:a", "aac",&#xA;&#xA;"-af", "adelay=900|900",&#xA;&#xA;"-b:a", "128k",&#xA;&#xA;"-ar", "44100",&#xA;&#xA;"-fps_mode", "cfr",&#xA;&#xA;"-async", "1",&#xA;&#xA;"-f", "flv",&#xA;&#xA;&#x27;RTMP_LINK&#x27;,&#xA;

    &#xA;

    After two days of streaming, the audio noticeably lags behind the video. I have tried adjusting various settings and buffers, but the issue persists.

    &#xA;

    Could anyone please provide any insights or suggestions on how to address this issue ?

    &#xA;

  • FFmpeg leak while reading image files

    18 septembre 2016, par Tim

    While 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 with avcodec_send_packet and avcodec_receive_frame, my call to av_frame_free is not actually deallocating the AVBuffer objects withing the frame. The only thing I’m not freeing is the AVCodecContext. 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(&amp;fmtCtx, "/path/to/test.jpg", NULL, NULL) == 0) {
               if (avformat_find_stream_info(fmtCtx, NULL) >= 0) {
                   for (unsigned int i = 0u; i &lt; 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, &amp;packet) >= 0) {
                               if (avcodec_send_packet(codecCtx, &amp;packet) == 0) {
                                   AVFrame *frame = av_frame_alloc();

                                   avcodec_receive_frame(codecCtx, frame);
                                   av_frame_free(&amp;frame);
                               }
                           }

                           av_packet_unref(&amp;packet);
                       }
                   }
               }

               avformat_close_input(&amp;fmtCtx);
           }
       }

       return 0;
    }