Recherche avancée

Médias (91)

Autres articles (5)

  • 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 (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (2186)

  • FFMPEG options differences between two videos

    9 mars 2016, par Ryan Poolos

    So I’m working with a video build out of pngs. Making a video hasn’t been too hard thanks to ffmpeg however most of the videos I’ve made work great playing forward and are extremely choppy playing backwards.

    Using a program named MPEG Streamclip plus Handbrake I managed to convert my video to one that plays great forward and backward. But now I can’t figure out how to pass in the right options to ffmpeg to replicate this video.

    Using ffprobe I have some outputs of the good and bad video. What options am I missing ?

    Bad Video :

    $ ffprobe tea_ffmpeg.mov
    ffprobe version 3.0 Copyright (c) 2007-2016 the FFmpeg developers
     built with Apple LLVM version 7.0.2 (clang-700.1.81)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/3.0 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libxvid --enable-vda
     libavutil      55. 17.103 / 55. 17.103
     libavcodec     57. 24.102 / 57. 24.102
     libavformat    57. 25.100 / 57. 25.100
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 31.100 /  6. 31.100
     libavresample   3.  0.  0 /  3.  0.  0
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'tea_ffmpeg.mov':
     Metadata:
       major_brand     : qt  
       minor_version   : 512
       compatible_brands: qt  
       encoder         : Lavf57.25.100
     Duration: 00:00:08.04, start: 0.000000, bitrate: 1140 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 676x450 [SAR 675:676 DAR 3:2], 1138 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
       Metadata:
         handler_name    : DataHandler
         encoder         : Lavc57.24.102 libx264

    Good Video :

    $ ffprobe test.mov
    ffprobe version 3.0 Copyright (c) 2007-2016 the FFmpeg developers
     built with Apple LLVM version 7.0.2 (clang-700.1.81)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/3.0 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libxvid --enable-vda
     libavutil      55. 17.103 / 55. 17.103
     libavcodec     57. 24.102 / 57. 24.102
     libavformat    57. 25.100 / 57. 25.100
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 31.100 /  6. 31.100
     libavresample   3.  0.  0 /  3.  0.  0
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mov':
     Metadata:
       major_brand     : qt  
       minor_version   : 537199360
       compatible_brands: qt  
       creation_time   : 2016-03-09 15:16:37
     Duration: 00:00:08.04, start: 0.000000, bitrate: 2650 kb/s
       Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, smpte170m/smpte170m/bt709), 674x450, 2646 kb/s, 25 fps, 25 tbr, 25k tbn, 50k tbc (default)
       Metadata:
         creation_time   : 2016-03-09 15:16:47
         handler_name    : Apple Alias Data Handler
         encoder         : H.264

    FFMPEG Command so far :

    ffmpeg -y -i 'pngs/tea-%03d.png' -vf scale=674:-2  -vcodec libx264 -pix_fmt yuv420p -r 25 tea_ffmpeg.mov

    I understand mov vs mp4 should just be a container spec, but mov was the first I got working. I’m more than happy to use mp4.

  • adding silent audio to mov in ffmpeg

    12 septembre 2016, par jon

    I’m trying to use ffmpeg to add a silent audio track to a MOV file.

    I created a silent audio track longer than the video, and intend to use the -shortest option with ffmpeg.

    Using SoX v14.3.1, I run this to generate a wav file :

    sox -n -r 44100 -b 16 -c 2 -L silence.wav trim 0.0 60.000

    # -n  = Sox's null file
    # -r = sample rate
    # -b = bits per sample
    # -c = num of channels
    # -L = little endian
    # filename
    # trim - is an effect, args start and length.

    My basic ffmpeg command looks like this :

    ffmpeg -shortest \
    -i silence.wav -acodec pcm_s16le \
    -i vid_no_sound.mov -vcodec copy vid_with_sound.mov

    The result of this is :

    ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
     built on Aug 27 2012 13:11:25 with gcc 4.4.5
     configuration: --extra-cflags=-static --prefix=/root/ffmpeg_build/src/ffmpeg-0.11.1 --enable-bzlib --enable-gnutls --enable-libfreetype --enable-libmp3lame --enable-libdc1394 --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-openssl --enable-zlib --enable-gpl --enable-nonfree --enable-version3
     libavutil      51. 54.100 / 51. 54.100
     libavcodec     54. 23.100 / 54. 23.100
     libavformat    54.  6.100 / 54.  6.100
     libavdevice    54.  0.100 / 54.  0.100
     libavfilter     2. 77.100 /  2. 77.100
     libswscale      2.  1.100 /  2.  1.100
     libswresample   0. 15.100 /  0. 15.100
     libpostproc    52.  0.100 / 52.  0.100
    [wav @ 0x29ab2e0] max_analyze_duration 5000000 reached at 5015510
    Guessed Channel Layout for  Input Stream #0.0 : stereo
    Input #0, wav, from 'silence.wav':
     Duration: 00:01:00.00, bitrate: 1411 kb/s
       Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s
    Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'vid_no_sound.mov':
     Metadata:
       major_brand     : qt
       minor_version   : 537199360
       compatible_brands: qt
       creation_time   : 2012-07-25 13:41:44
     Duration: 00:00:14.50, start: 0.000000, bitrate: 27457 kb/s
       Stream #1:0(eng): Video: qtrle (rle  / 0x20656C72), rgb24, 1920x1080, 27450 kb/s, SAR 1920:1920 DAR 16:9, 24 fps, 24 tbr, 24 tbn, 24 tbc
       Metadata:
         creation_time   : 2012-07-25 13:41:44
         handler_name    : Apple Alias Data Handler
       Stream #1:1(eng): Data: none (tmcd / 0x64636D74)
       Metadata:
         creation_time   : 2012-07-25 13:42:06
         handler_name    : Apple Alias Data Handler
         timecode        : 00:00:00:00
    File 'vid_with_sound.mov' already exists. Overwrite ? [y/N] y
    auto-inserting filter 'auto-inserted resampler 0' between the filter 'src' and the filter 'aformat'
    [aresample @ 0x2ab3b00] chl:stereo fmt:s16 r:44100Hz -> chl:stereo fmt:flt r:44100Hz
    [NULL @ 0x2994320] Codec is experimental but experimental codecs are not enabled, try -strict -2
    Output #0, mov, to 'vid_with_sound.mov':
       Stream #0:0(eng): Video: qtrle (rle  / 0x20656C72), rgb24, 1920x1080 [SAR 1920:1920 DAR 16:9], q=2-31, 27450 kb/s, 24 fps, 90k tbn, 24 tbc
       Metadata:
         creation_time   : 2012-07-25 13:41:44
         handler_name    : Apple Alias Data Handler
       Stream #0:1: Audio: none, 44100 Hz, stereo, flt, 128 kb/s
    Stream mapping:
     Stream #1:0 -> #0:0 (copy)
     Stream #0:0 -> #0:1 (pcm_s16le -> aac)
    Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height

    I have tried adding the -strict -2 as suggested, although I am not sure where to put it in the command line.

    I’ve spent two hours trying different things and reading ffmpeg documentation, but I’m still stuck.

    How do I add a silent audio track to a mov file ?

  • adding silent audio in ffmpeg

    10 février 2017, par jon

    I’m trying to use ffmpeg to add a silent audio track to a MOV file.

    I created a silent audio track longer than the video, and intend to use the -shortest option with ffmpeg.

    Using SoX v14.3.1, I run this to generate a wav file :

    sox -n -r 44100 -b 16 -c 2 -L silence.wav trim 0.0 60.000

    # -n  = Sox's null file
    # -r = sample rate
    # -b = bits per sample
    # -c = num of channels
    # -L = little endian
    # filename
    # trim - is an effect, args start and length.

    My basic ffmpeg command looks like this :

    ffmpeg -shortest \
    -i silence.wav -acodec pcm_s16le \
    -i vid_no_sound.mov -vcodec copy vid_with_sound.mov

    The result of this is :

    ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
     built on Aug 27 2012 13:11:25 with gcc 4.4.5
     configuration: --extra-cflags=-static --prefix=/root/ffmpeg_build/src/ffmpeg-0.11.1 --enable-bzlib --enable-gnutls --enable-libfreetype --enable-libmp3lame --enable-libdc1394 --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-openssl --enable-zlib --enable-gpl --enable-nonfree --enable-version3
     libavutil      51. 54.100 / 51. 54.100
     libavcodec     54. 23.100 / 54. 23.100
     libavformat    54.  6.100 / 54.  6.100
     libavdevice    54.  0.100 / 54.  0.100
     libavfilter     2. 77.100 /  2. 77.100
     libswscale      2.  1.100 /  2.  1.100
     libswresample   0. 15.100 /  0. 15.100
     libpostproc    52.  0.100 / 52.  0.100
    [wav @ 0x29ab2e0] max_analyze_duration 5000000 reached at 5015510
    Guessed Channel Layout for  Input Stream #0.0 : stereo
    Input #0, wav, from 'silence.wav':
     Duration: 00:01:00.00, bitrate: 1411 kb/s
       Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s
    Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'vid_no_sound.mov':
     Metadata:
       major_brand     : qt
       minor_version   : 537199360
       compatible_brands: qt
       creation_time   : 2012-07-25 13:41:44
     Duration: 00:00:14.50, start: 0.000000, bitrate: 27457 kb/s
       Stream #1:0(eng): Video: qtrle (rle  / 0x20656C72), rgb24, 1920x1080, 27450 kb/s, SAR 1920:1920 DAR 16:9, 24 fps, 24 tbr, 24 tbn, 24 tbc
       Metadata:
         creation_time   : 2012-07-25 13:41:44
         handler_name    : Apple Alias Data Handler
       Stream #1:1(eng): Data: none (tmcd / 0x64636D74)
       Metadata:
         creation_time   : 2012-07-25 13:42:06
         handler_name    : Apple Alias Data Handler
         timecode        : 00:00:00:00
    File 'vid_with_sound.mov' already exists. Overwrite ? [y/N] y
    auto-inserting filter 'auto-inserted resampler 0' between the filter 'src' and the filter 'aformat'
    [aresample @ 0x2ab3b00] chl:stereo fmt:s16 r:44100Hz -> chl:stereo fmt:flt r:44100Hz
    [NULL @ 0x2994320] Codec is experimental but experimental codecs are not enabled, try -strict -2
    Output #0, mov, to 'vid_with_sound.mov':
       Stream #0:0(eng): Video: qtrle (rle  / 0x20656C72), rgb24, 1920x1080 [SAR 1920:1920 DAR 16:9], q=2-31, 27450 kb/s, 24 fps, 90k tbn, 24 tbc
       Metadata:
         creation_time   : 2012-07-25 13:41:44
         handler_name    : Apple Alias Data Handler
       Stream #0:1: Audio: none, 44100 Hz, stereo, flt, 128 kb/s
    Stream mapping:
     Stream #1:0 -> #0:0 (copy)
     Stream #0:0 -> #0:1 (pcm_s16le -> aac)
    Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height

    I have tried adding the -strict -2 as suggested, although I am not sure where to put it in the command line.

    I’ve spent two hours trying different things and reading ffmpeg documentation, but I’m still stuck.

    How do I add a silent audio track to a mov file ?