Recherche avancée

Médias (91)

Autres articles (63)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (12242)

  • How to flush buffer data to disk when using FFmpeg to write a mp4 file ?

    9 juin 2016, par Sean

    I am using FFmpeg to write a mp4 file, I grab bitmap images from remote IP camera and encode it by h.264, the media container is mp4 file, no problem to generate the MP4 file if I only record several minutes, the problem is FFmpeg never flushs buffer data to disk when I call method "av_interleaved_write_frame"(all encoded data in memory, never free them), only when I call method "avio_close(oc->pb) ;", it will flush all encoded data to disk, I tried to call method "avcodec_flush_buffers" every time after calling "av_interleaved_write_frame", but no effect. I am newbie to FFmpeg, if you are familiar with FFmpeg, please help me.

    thanks in advance.

    Sean

  • avcodec/webvttenc : Don't copy data around unnecessarily

    17 février 2024, par Andreas Rheinhardt
    avcodec/webvttenc : Don't copy data around unnecessarily
    

    Using av_bprint_init_for_buffer() avoids copying data
    into the internal AVBPrint buffer (or worse : to allocate
    a temporary buffer in case the internal buffer does not
    suffice). It also ensures that the data is always
    0-terminated.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/webvttenc.c
  • Sdd watermark to YUV video data (SDL_Overlay) programmatically

    2 septembre 2012, par user325320

    My application plays video via SDL + ffmpeg library(not the exe tool).

    and I want to add the text onto the video

    The ffmpeg's VHOOK source code shows it converts the data to RGB32.
    Can't it be done in YUV directly ?

    Here my current code, can you please give me some suggestion ?

    SDL_Overlay * pOverlay = SDL_CreateYUVOverlay( pDecodedFrame->width
               , pDecodedFrame->height
               , SDL_YV12_OVERLAY
               , pThis->m_pSurface
               );
    if( pOverlay != NULL )
    {
       SDL_LockYUVOverlay(pOverlay);

       pSwsContext = sws_getCachedContext( pSwsContext
           , pDecodedFrame->width
           , pDecodedFrame->height
           , pThis->m_pMediaFile->GetVideoPixcelFormat()
           , pDecodedFrame->width
           , pDecodedFrame->height
           , PIX_FMT_YUV420P
           , SWS_SPLINE
           , NULL
           , NULL
           , NULL
           );

       AVPicture tPicture;
       tPicture.data[0] = pOverlay->pixels[0];
       tPicture.data[1] = pOverlay->pixels[2];
       tPicture.data[2] = pOverlay->pixels[1];

       tPicture.linesize[0] = pOverlay->pitches[0];
       tPicture.linesize[1] = pOverlay->pitches[2];
       tPicture.linesize[2] = pOverlay->pitches[1];

       int nSliceHeight = sws_scale( pSwsContext
           , pDecodedFrame->data
           , pDecodedFrame->linesize
           , 0
           , pDecodedFrame->height
           , tPicture.data
           , tPicture.linesize
           );


       SDL_UnlockYUVOverlay(pOverlay);
       VideoPicture tVideoPicture = {0};
       tVideoPicture.pOverlay = pOverlay;
       tVideoPicture.nWidth = pDecodedFrame->width;
       tVideoPicture.nHeight = pDecodedFrame->height;
       tVideoPicture.dbPTS = dbPTS;

       pThis->m_pVideoPictureQueue.Append(tVideoPicture);
    }