Recherche avancée

Médias (10)

Mot : - Tags -/wav

Autres articles (78)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • L’agrémenter visuellement

    10 avril 2011

    MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
    Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.

Sur d’autres sites (8255)

  • Encoding for HLS using FFMPEG results in have a decreasing DTS

    29 décembre 2014, par Luuk D. Jansen

    I am trying to encode video for HTS live streaming, but am having problems with validating the stream using Apple Media Validator (mediastreamvalidator).
    (my test file : http://dominicansinteractive.idoms.org/media/9536/playlist.m3u8)

    The output is :

    --------------------------------------------------------------------------------
    http://dominicansinteractive.idoms.org/media/9536/199/prog_index.m3u8
    --------------------------------------------------------------------------------

    Playlist Validation:

       OK

    Segments:

    segment_00000.ts:

       ERROR: (-1) Decreasing DTS were detected in track 0
       ERROR: (-1) Decreasing DTS were detected in track 1

       Average segment duration: 8.07 seconds
       Average segment bitrate: 2155094.67 bps
       Average segment structural overhead: 206525.83 bps (9.58 %)

    The second segment doesn’t seem to have the problem :

    [mpegts @ 0x1d78120] Format mpegts probed with size=2048 and score=100
    [mpegts @ 0x1d78120] stream=0 stream_type=1b pid=100 prog_reg_desc=
    [mpegts @ 0x1d78120] stream=1 stream_type=f pid=101 prog_reg_desc=
    [mpegts @ 0x1d78120] File position before avformat_find_stream_info() is 0
    [h264 @ 0x1d7c1c0] Current profile doesn't provide more RBSP data in PPS, skipping
    [h264 @ 0x1d7c1c0] no picture
    [h264 @ 0x1d7c1c0] Current profile doesn't provide more RBSP data in PPS, skipping
      Last message repeated 3 times
    [mpegts @ 0x1d78120] max_analyze_duration 5000000 reached at 5013333
    [mpegts @ 0x1d78120] File position after avformat_find_stream_info() is 0

    This seems to be a serious problem for HLS, so I am looking if there is a way to fix this.

    When looking with FFMPEG at the encoded file I get (encoder output/command at the bottom of the email) :

    ffmpeg -loglevel 99 -i encoded.ts
    ffmpeg version N-37783-gdf3a96c Copyright (c) 2000-2012 the FFmpeg developers
    built on Jul  4 2012 07:44:52 with gcc 4.4.5
    configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libvpx --enable-libfaac --enable-nonfree
    libavutil      51. 63.100 / 51. 63.100
    libavcodec     54. 32.100 / 54. 32.100
    libavformat    54. 14.100 / 54. 14.100
    libavdevice    54.  0.100 / 54.  0.100
    libavfilter     3.  0.101 /  3.  0.101
    libswscale      2.  1.100 /  2.  1.100
    libswresample   0. 15.100 /  0. 15.100
    libpostproc    52.  0.100 / 52.  0.100
    [mpegts @ 0x2023120] Format mpegts probed with size=2048 and score=100
    [mpegts @ 0x2023120] stream=0 stream_type=1b pid=100 prog_reg_desc=
    [mpegts @ 0x2023120] stream=1 stream_type=f pid=101 prog_reg_desc=
    [mpegts @ 0x2023120] File position before avformat_find_stream_info() is 0
    [h264 @ 0x20271c0] Current profile doesn't provide more RBSP data in PPS, skipping
    [h264 @ 0x20271c0] no picture
    [mpegts @ 0x2023120] first_dts 124080 not matching first dts 143280 in que
      Last message repeated 6 times
    [mpegts @ 0x2023120] first_dts 124080 not matching first dts 158640 in que
      Last message repeated 7 times
    [mpegts @ 0x2023120] first_dts 124080 not matching first dts 175920 in que
      Last message repeated 7 times
    [mpegts @ 0x2023120] first_dts 124080 not matching first dts 193200 in que
      Last message repeated 7 times
    [mpegts @ 0x2023120] first_dts 124080 not matching first dts 210480 in que
      Last message repeated 7 times
    [h264 @ 0x20271c0] Current profile doesn't provide more RBSP data in PPS, skipping
    [mpegts @ 0x2023120] first_dts 124080 not matching first dts 227760 in que
      Last message repeated 7 times
    [mpegts @ 0x2023120] first_dts 124080 not matching first dts 245040 in que
      Last message repeated 7 times
    [mpegts @ 0x2023120] first_dts 124080 not matching first dts 262320 in que
      Last message repeated 7 times
    [mpegts @ 0x2023120] first_dts 124080 not matching first dts 279600 in que
      Last message repeated 7 times
    [mpegts @ 0x2023120] first_dts 124080 not matching first dts 296880 in que
      Last message repeated 7 times
    [mpegts @ 0x2023120] first_dts 124080 not matching first dts 314160 in que
      Last message repeated 7 times
    [h264 @ 0x20271c0] Current profile doesn't provide more RBSP data in PPS, skipping
    [mpegts @ 0x2023120] first_dts 124080 not matching first dts 331440 in que
      Last message repeated 7 times
    [mpegts @ 0x2023120] first_dts 124080 not matching first dts 348720 in que
      Last message repeated 7 times
    [mpegts @ 0x2023120] first_dts 124080 not matching first dts 366000 in que
      Last message repeated 7 times
    [mpegts @ 0x2023120] first_dts 124080 not matching first dts 383280 in que
      Last message repeated 7 times
    [mpegts @ 0x2023120] first_dts 124080 not matching first dts 400560 in que
      Last message repeated 7 times
    [mpegts @ 0x2023120] first_dts 124080 not matching first dts 417840 in que
      Last message repeated 6 times
    [h264 @ 0x20271c0] Current profile doesn't provide more RBSP data in PPS, skipping
    [mpegts @ 0x2023120] first_dts 124080 not matching first dts 433200 in que
      Last message repeated 6 times
    [mpegts @ 0x2023120] first_dts 124080 not matching first dts 448560 in que
      Last message repeated 7 times
    [mpegts @ 0x2023120] first_dts 124080 not matching first dts 465840 in que
      Last message repeated 6 times
    [mpegts @ 0x2023120] first_dts 124080 not matching first dts 481200 in que
      Last message repeated 7 times
    [mpegts @ 0x2023120] first_dts 124080 not matching first dts 498480 in que
      Last message repeated 7 times
    [mpegts @ 0x2023120] first_dts 124080 not matching first dts 515760 in que
      Last message repeated 7 times
    [mpegts @ 0x2023120] first_dts 124080 not matching first dts 533040 in que
      Last message repeated 6 times
    [h264 @ 0x20271c0] Current profile doesn't provide more RBSP data in PPS, skipping
    [mpegts @ 0x2023120] first_dts 124080 not matching first dts 548400 in que
      Last message repeated 7 times
    [mpegts @ 0x2023120] max_analyze_duration 5000000 reached at 5000000
    [mpegts @ 0x2023120] File position after avformat_find_stream_info() is 0

    And when at the first segmented file:
    ffmpeg -loglevel 99 -i segment_00000.ts
    ffmpeg version N-37783-gdf3a96c Copyright (c) 2000-2012 the FFmpeg developers
    built on Jul  4 2012 07:44:52 with gcc 4.4.5
    configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libvpx --enable-libfaac --enable-nonfree
    libavutil      51. 63.100 / 51. 63.100
    libavcodec     54. 32.100 / 54. 32.100
    libavformat    54. 14.100 / 54. 14.100
    libavdevice    54.  0.100 / 54.  0.100
    libavfilter     3.  0.101 /  3.  0.101
    libswscale      2.  1.100 /  2.  1.100
    libswresample   0. 15.100 /  0. 15.100
    libpostproc    52.  0.100 / 52.  0.100
    [mpegts @ 0x1a0b120] Format mpegts probed with size=2048 and score=100
    [mpegts @ 0x1a0b120] stream=0 stream_type=1b pid=100 prog_reg_desc=
    [mpegts @ 0x1a0b120] stream=1 stream_type=f pid=101 prog_reg_desc=
    [mpegts @ 0x1a0b120] File position before avformat_find_stream_info() is 0
    [mpegts @ 0x1a0b120] Invalid timestamps stream=0, pts=1920, dts=8589929312, size=2355
    [mpegts @ 0x1a0b120] Invalid timestamps stream=0, pts=16320, dts=8589932912, size=3203
    [h264 @ 0x1a0f1c0] Current profile doesn't provide more RBSP data in PPS, skipping
    [h264 @ 0x1a0f1c0] no picture
    [h264 @ 0x1a0f1c0] Current profile doesn't provide more RBSP data in PPS, skipping
      Last message repeated 3 times
    [mpegts @ 0x1a0b120] max_analyze_duration 5000000 reached at 5013333
    [mpegts @ 0x1a0b120] File position after avformat_find_stream_info() is 0

    This problem does not occur with the BASELINE profile, but does with MAIN.

    The command I use for encoding is :

    ffmpeg, -i, [path]/test.mov, -y, -f, mpegts, -acodec, aac, -strict, -2, -ar, 48000, -b:a, 128000, -s, 960x540, -vcodec, libx264, -b:v, 1200000, -aspect, 960:540, -r, 25, -level, 3.1, -vprofile, main, -flags, +loop, -cmp, +chroma, -partitions, +parti4x4+partp8x8+partb8x8, -subq, 5, -trellis, 1, -refs, 1, -coder, 0, -me_range, 16, -keyint_min, 25, -sc_threshold, 40, -i_qfactor, 0.71, -bt, 200k, -maxrate, 1200000, -bufsize, 1200000, -rc_eq, 'blurCplx^(1-qComp)', -qcomp, 0.6, -qmin, 10, -qmax, 51, -qdiff, 4, -level, 30, -g, 30, -async, 2, [path]/encoded.ts

    08:40:29,843 DEBUG ~ FFMPEG(1):   libavutil      51. 63.100 / 51. 63.100
    08:40:29,843 DEBUG ~ FFMPEG(1):   libavcodec     54. 32.100 / 54. 32.100
    08:40:29,843 DEBUG ~ FFMPEG(1):   libavformat    54. 14.100 / 54. 14.100
    08:40:29,843 DEBUG ~ FFMPEG(1):   libavdevice    54.  0.100 / 54.  0.100
    08:40:29,843 DEBUG ~ FFMPEG(1):   libavfilter     3.  0.101 /  3.  0.101
    08:40:29,844 DEBUG ~ FFMPEG(1):   libswscale      2.  1.100 /  2.  1.100
    08:40:29,844 DEBUG ~ FFMPEG(1):   libswresample   0. 15.100 /  0. 15.100
    08:40:29,844 DEBUG ~ FFMPEG(1):   libpostproc    52.  0.100 / 52.  0.100
    08:40:30,033 DEBUG ~ FFMPEG(1): Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '[path]/test.mov':
    08:40:30,033 DEBUG ~ FFMPEG(1):   Metadata:
    08:40:30,033 DEBUG ~ FFMPEG(1):     major_brand     : qt  
    08:40:30,033 DEBUG ~ FFMPEG(1):     minor_version   : 537199360
    08:40:30,035 DEBUG ~ FFMPEG(1):     compatible_brands: qt  
    08:40:30,035 DEBUG ~ FFMPEG(1):     creation_time   : 2011-12-05 10:54:24
    08:40:30,036 DEBUG ~ FFMPEG(1):     timecode        : 00:00:00:00
    08:40:30,036 DEBUG ~ FFMPEG(1):   Duration: 00:00:24.20, start: 0.000000, bitrate: 9912 kb/s
    08:40:30,037 DEBUG ~ FFMPEG(1):     Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080, 9777 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc
    08:40:30,037 DEBUG ~ FFMPEG(1):     Metadata:
    08:40:30,037 DEBUG ~ FFMPEG(1):       creation_time   : 2011-12-05 10:56:28
    08:40:30,037 DEBUG ~ FFMPEG(1):       handler_name    : Apple Video Media Handler
    08:40:30,038 DEBUG ~ FFMPEG(1):     Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 129 kb/s
    08:40:30,038 DEBUG ~ FFMPEG(1):     Metadata:
    08:40:30,038 DEBUG ~ FFMPEG(1):       creation_time   : 2011-12-05 10:56:28
    08:40:30,038 DEBUG ~ FFMPEG(1):       handler_name    : Apple Sound Media Handler
    08:40:30,038 DEBUG ~ FFMPEG(1):     Stream #0:2(eng): Data: none (tmcd / 0x64636D74)
    08:40:30,038 DEBUG ~ FFMPEG(1):     Metadata:
    08:40:30,038 DEBUG ~ FFMPEG(1):       creation_time   : 2011-12-05 10:56:28
    08:40:30,039 DEBUG ~ FFMPEG(1):       handler_name    : Time Code Media Handler
    08:40:30,039 DEBUG ~ FFMPEG(1):       timecode        : 00:00:00:00
    08:40:30,092 DEBUG ~ FFMPEG(1): [graph 0 input from stream 0:0 @ 0x1c17180] w:1920 h:1080 pixfmt:yuv420p tb:1/25 fr:25/1 sar:0/1 sws_param:flags=2
    08:40:30,092 DEBUG ~ FFMPEG(1): [output stream 0:0 @ 0x1c033a0] No opaque field provided
    08:40:30,110 DEBUG ~ FFMPEG(1): [scaler for output stream 0:0 @ 0x1c18040] w:1920 h:1080 fmt:yuv420p sar:0/1 -> w:960 h:540 fmt:yuv420p sar:0/1 flags:0x4
    08:40:30,110 DEBUG ~ FFMPEG(1): [graph 1 input from stream 0:1 @ 0x1c53440] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3
    08:40:30,110 DEBUG ~ FFMPEG(1): -async is forwarded to lavfi similarly to -af aresample=min_comp=0.001:min_hard_comp=0.100000:max_soft_comp=0.000042.
    08:40:30,122 DEBUG ~ FFMPEG(1): [graph 1 aresample for input stream 0:1 @ 0x1c36880] chl:stereo fmt:s16 r:48000Hz -> chl:stereo fmt:flt r:48000Hz
    08:40:30,142 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] using SAR=1/1
    08:40:30,142 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] frame MB size (60x34) > level limit (1620)
    08:40:30,142 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] DPB size (4 frames, 3133440 bytes) > level limit (3 frames, 3110400 bytes)
    08:40:30,142 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] MB rate (51000) > level limit (40500)
    08:40:30,170 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] using cpu capabilities: MMX2 SSE2Slow SlowCTZ
    08:40:30,182 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] profile Main, level 3.0
    08:40:30,235 DEBUG ~ FFMPEG(1): [mpegts @ 0x1be3540] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
    08:40:30,235 DEBUG ~ FFMPEG(1): Output #0, mpegts, to '[path]/encoded.ts':
    08:40:30,235 DEBUG ~ FFMPEG(1):   Metadata:
    08:40:30,235 DEBUG ~ FFMPEG(1):     major_brand     : qt  
    08:40:30,235 DEBUG ~ FFMPEG(1):     minor_version   : 537199360
    08:40:30,235 DEBUG ~ FFMPEG(1):     compatible_brands: qt  
    08:40:30,235 DEBUG ~ FFMPEG(1):     timecode        : 00:00:00:00
    08:40:30,235 DEBUG ~ FFMPEG(1):     encoder         : Lavf54.14.100
    08:40:30,235 DEBUG ~ FFMPEG(1):     Stream #0:0(eng): Video: h264, yuv420p, 960x540 [SAR 1:1 DAR 16:9], q=10-51, 1200 kb/s, 90k tbn, 25 tbc
    08:40:30,235 DEBUG ~ FFMPEG(1):     Metadata:
    08:40:30,235 DEBUG ~ FFMPEG(1):       creation_time   : 2011-12-05 10:56:28
    08:40:30,235 DEBUG ~ FFMPEG(1):       handler_name    : Apple Video Media Handler
    08:40:30,236 DEBUG ~ FFMPEG(1):     Stream #0:1(eng): Audio: aac, 48000 Hz, stereo, flt, 128 kb/s
    08:40:30,236 DEBUG ~ FFMPEG(1):     Metadata:
    08:40:30,236 DEBUG ~ FFMPEG(1):       creation_time   : 2011-12-05 10:56:28
    08:40:30,236 DEBUG ~ FFMPEG(1):       handler_name    : Apple Sound Media Handler
    08:40:30,236 DEBUG ~ FFMPEG(1): Stream mapping:
    08:40:30,236 DEBUG ~ FFMPEG(1):   Stream #0:0 -> #0:0 (h264 -> libx264)
    08:40:30,236 DEBUG ~ FFMPEG(1):   Stream #0:1 -> #0:1 (aac -> aac)

    [...]

    08:40:55,398 DEBUG ~ FFMPEG(1): video:3121kB audio:359kB subtitle:0 global headers:0kB muxing overhead 11.132085%
    08:40:55,407 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] frame I:21    Avg QP:21.57  size: 88153
    08:40:55,407 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] frame P:233   Avg QP:22.74  size:  5560
    08:40:55,407 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] frame B:351   Avg QP:27.45  size:   141
    08:40:55,407 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] consecutive B-frames: 21.7%  2.0%  3.0% 73.4%
    08:40:55,407 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] mb I  I16..4: 54.5%  0.0% 45.5%
    08:40:55,422 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] mb P  I16..4:  4.7%  0.0%  1.3%  P16..4: 24.6%  3.5%  0.8%  0.0%  0.0%    skip:65.1%
    08:40:55,422 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] mb B  I16..4:  0.1%  0.0%  0.1%  B16..8:  0.5%  0.1%  0.0%  direct: 0.6%  skip:98.6%  L0:32.3% L1:47.1% BI:20.6%
    08:40:55,422 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] coded y,uvDC,uvAC intra: 59.4% 5.8% 0.4% inter: 5.4% 3.0% 0.0%
    08:40:55,422 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] i16 v,h,dc,p: 58% 16% 21%  4%
    08:40:55,422 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 21% 17%  5% 10%  7%  5%  5% 10%
    08:40:55,422 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] i8c dc,h,v,p: 94%  3%  3%  0%
    08:40:55,422 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] Weighted P-Frames: Y:13.7% UV:3.4%
    08:40:55,422 DEBUG ~ FFMPEG(1): [libx264 @ 0x1be3cc0] kb/s:1056.61

    For segmenting is :

    ffmpeg, -i,[path]encoded.ts, -y, -c, copy, -flags, global_header, -map, 0, -f, segment, -segment_time, 10, -segment_list, [path]/fileList.txt, -segment_format, mpegts, [path]/segment_%05d.ts]

    Any help would really be appreciated !

  • Error converting .flv to .avi with ffmpeg

    5 juillet 2012, par user1504396

    When i try the 2d code, with a 5 minutes 7 second video, I get a 28 minutes 29 seconds video, What did I do wrong ?

    Here is the ffmpeg output :

    [Me@Hewlett-Packard Downloads]$ ffmpeg -i "0042473.flv" -s 400x240 -aspect 2:1 -r 20 -vcodec mjpeg -qscale 1 -acodec adpcm_ima_wav -ac 2 "VID_0001.AVI"
    ffmpeg version 0.8.10, Copyright © 2000-2011 the FFmpeg developers
    built on Feb 29 2012 16:30:44 with gcc 4.6.2 20111027 (Red Hat 4.6.2-1)
    configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --enable-bzlib --enable-libcelt --enable-libdc1394 --enable-libdirac --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
    libavutil 51. 9. 1 / 51. 9. 1
    libavcodec 53. 8. 0 / 53. 8. 0
    libavformat 53. 5. 0 / 53. 5. 0
    libavdevice 53. 1. 1 / 53. 1. 1
    libavfilter 2. 23. 0 / 2. 23. 0
    libswscale 2. 0. 0 / 2. 0. 0
    libpostproc 51. 2. 0 / 51. 2. 0
    [flv @ 0x2165600] Estimating duration from bitrate, this may be inaccurate

    Seems stream 0 codec frame rate differs from container frame rate: 59.94 (2997/50) -> 29.97 (30000/1001)
    Input #0, flv, from '0042473.flv':
    Metadata:
    minor_version : 1
    stereo : true
    videocodecid : 7
    audiodatarate : 62
    audiosamplerate : 44100
    audiosize : 2476815
    canSeekToEnd : true
    creation_time : 2011-05-01 18:06:43
    copyright :
    compatible_brands: isomavc1
    datasize : 16589374
    duration : 308
    copyright-eng :
    encoder : Lavf52.104.0
    videodatarate : 351
    hasAudio : true
    hasCuePoints : false
    hasKeyframes : true
    hasMetadata : true
    hasVideo : true
    width : 480
    lasttimestamp : 308
    audiocodecid : 10
    metadatacreator : flvtool++ (Facebook, Motion project, dweatherford)
    major_brand : isom
    audiosamplesize : 16
    totalframes : 9225
    framerate : 30
    height : 272
    videosize : 13863389
    filesize : 16587742
    Duration: 00:05:07.94, start: 0.000000, bitrate: 423 kb/s
    Stream #0.0: Video: h264 (High), yuv420p, 480x272 [PAR 1:1 DAR 30:17], 359 kb/s, 29.97 tbr, 1k tbn, 59.94 tbc
    Stream #0.1: Audio: aac, 44100 Hz, stereo, s16, 63 kb/s
    Incompatible pixel format 'yuv420p' for codec 'mjpeg', auto-selecting format 'yuvj420p'
    [buffer @ 0x216b180] w:480 h:272 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
    [scale @ 0x216bf40] w:480 h:272 fmt:yuv420p -> w:400 h:240 fmt:yuvj420p flags:0x4
    Output #0, avi, to 'VID_0001.AVI':
    Metadata:
    minor_version : 1
    stereo : true
    videocodecid : 7
    audiodatarate : 62
    audiosamplerate : 44100
    audiosize : 2476815
    canSeekToEnd : true
    creation_time : 2011-05-01 18:06:43
    ICOP :
    compatible_brands: isomavc1
    datasize : 16589374
    duration : 308
    copyright-eng :
    filesize : 16587742
    videodatarate : 351
    hasAudio : true
    hasCuePoints : false
    hasKeyframes : true
    hasMetadata : true
    hasVideo : true
    width : 480
    lasttimestamp : 308
    audiocodecid : 10
    metadatacreator : flvtool++ (Facebook, Motion project, dweatherford)
    major_brand : isom
    audiosamplesize : 16
    totalframes : 9225
    framerate : 30
    height : 272
    videosize : 13863389
    ISFT : Lavf53.5.0
    Stream #0.0: Video: mjpeg, yuvj420p, 400x240 [PAR 6:5 DAR 2:1], q=2-31, 200 kb/s, 20 tbn, 20 tbc
    Stream #0.1: Audio: adpcm_ima_wav, 44100 Hz, stereo, s16, 352 kb/s
    Stream mapping:
    Stream #0.0 -> #0.0
    Stream #0.1 -> #0.1
    Press [q] to stop, [?] for help
    frame= 43 fps= 0 q=1.0 size= 1330kB time=00:00:02.12 bitrate=5135.7kbits/sframe= 87 fps= 86 q=1.0 size= 2712kB time=00:00:04.35 bitrate=5097.2kbits/sframe= 135 fps= 89 q=1.0 size= 3579kB time=00:00:06.78 bitrate=4324.9kbits/sframe= 185 fps= 92 q=1.0 size= 4307kB time=00:00:09.27 bitrate=3805.9kbits/sframe= 231 fps= 92 q=1.0 size= 5208kB time=00:00:11.55 bitrate=3692.4kbits/sframe= 276 fps= 91 q=1.0 size= 6129kB time=00:00:13.83 bitrate=3628.5kbits/sframe= 318 fps= 90 q=1.0 size= 6978kB time=00:00:15.91 bitrate=3592.6kbits/sframe= 366 fps= 91 q=1.0 size= 7990kB time=00:00:18.33 bitrate=3570.2kbits/sframe= 408 fps= 90 q=1.0 size= 8912kB time=00:00:20.43 bitrate=3573.2kbits/sframe= 451 fps= 90 q=1.0 size= 9831kB time=00:00:22.55 bitrate=3570.9kbits/sframe= 495 fps= 89 q=1.0 size= 10827kB time=00:00:24.74 bitrate=3584.4kbits/sframe= 539 fps= 89 q=1.0 size= 11845kB time=00:00:26.91 bitrate=3605.5kbits/sframe= 583 fps= 89 q=1.0 size= 12939kB time=00:00:29.14 bitrate=3636.2kbits/sframe= 630 fps= 89 q=1.0 size= 13790kB time=00:00:31.52 bitrate=3583.5kbits/sframe= 676 fps= 89 q=1.0 size= 14710kB time=00:00:33.80 bitrate=3564.4kbits/sframe= 723 fps= 90 q=1.0 size= 15651kB time=00:00:36.16 bitrate=3545.7kbits/sframe= 767 fps= 90 q=1.0 size= 16589kB time=00:00:38.35 bitrate=3543.6kbits/sframe= 809 fps= 89 q=1.0 size= 17576kB time=00:00:40.42 bitrate=3561.7kbits/sframe= 852 fps= 89 q=1.0 size= 18598kB time=00:00:42.61 bitrate=3575.0kbits/sframe= 898 fps= 89 q=1.0 size= 19548kB time=00:00:44.90 bitrate=3566.6kbits/sframe= 940 fps= 89 q=1.0 size= 20666kB time=00:00:46.97 bitrate=3603.9kbits/sframe= 982 fps= 89 q=1.0 size= 21739kB time=00:00:49.12 bitrate=3625.5kbits/sframe= 1024 fps= 88 q=1.0 size= 22711kB time=00:00:51.25 bitrate=3630.2kbits/sframe= 1070 fps= 88 q=1.0 size= 23769kB time=00:00:53.47 bitrate=3640.9kbits/sframe= 1118 fps= 89 q=1.0 size= 24935kB time=00:00:55.90 bitrate=3654.2kbits/sframe= 1165 fps= 89 q=1.0 size= 26047kB time=00:00:58.22 bitrate=3664.3kbits/sframe= 1213 fps= 89 q=1.0 size= 27187kB time=00:01:00.62 bitrate=3673.5kbits/sframe= 1265 fps= 90 q=1.0 size= 27935kB time=00:01:03.23 bitrate=3619.0kbits/sframe= 1315 fps= 90 q=1.0 size= 28590kB time=00:01:05.79 bitrate=3559.7kbits/sframe= 1366 fps= 90 q=1.0 size= 29229kB time=00:01:08.30 bitrate=3505.3kbits/sframe= 1415 fps= 91 q=1.0 size= 29928kB time=00:01:10.75 bitrate=3465.2kbits/sframe= 1464 fps= 91 q=1.0 size= 30612kB time=00:01:13.25 bitrate=3423.5kbits/sframe= 1512 fps= 91 q=1.0 size= 31309kB time=00:01:15.64 bitrate=3390.8kbits/sframe= 1561 fps= 91 q=1.0 size= 31997kB time=00:01:18.06 bitrate=3357.8kbits/sframe= 1608 fps= 91 q=1.0 size= 32760kB time=00:01:20.36 bitrate=3339.3kbits/sframe= 1654 fps= 91 q=1.0 size= 33563kB time=00:01:22.69 bitrate=3324.7kbits/sframe= 1700 fps= 91 q=1.0 size= 34318kB time=00:01:24.98 bitrate=3308.2kbits/sframe= 1745 fps= 91 q=1.0 size= 35041kB time=00:01:27.24 bitrate=3290.4kbits/sframe= 1791 fps= 91 q=1.0 size= 35749kB time=00:01:29.56 bitrate=3269.6kbits/sframe= 1837 fps= 91 q=1.0 size= 36442kB time=00:01:31.85 bitrate=3250.1kbits/sframe= 1884 fps= 91 q=1.0 size= 37121kB time=00:01:34.20 bitrate=3228.0kbits/sframe= 1931 fps= 91 q=1.0 size= 37840kB time=00:01:36.53 bitrate=3211.1kbits/sframe= 1978 fps= 91 q=1.0 size= 38561kB time=00:01:38.90 bitrate=3193.8kbits/sframe= 2025 fps= 91 q=1.0 size= 39279kB time=00:01:41.28 bitrate=3176.9kbits/sframe= 2072 fps= 91 q=1.0 size= 40005kB time=00:01:43.59 bitrate=3163.6kbits/sframe= 2117 fps= 91 q=1.0 size= 40833kB time=00:01:45.87 bitrate=3159.5kbits/sframe= 2158 fps= 91 q=1.0 size= 41561kB time=00:01:47.90 bitrate=3155.3kbits/sframe= 2202 fps= 91 q=1.0 size= 42407kB time=00:01:50.14 bitrate=3154.1kbits/sframe= 2248 fps= 91 q=1.0 size= 43201kB time=00:01:52.42 bitrate=3147.9kbits/sframe= 2295 fps= 91 q=1.0 size= 43975kB time=00:01:54.75 bitrate=3139.3kbits/sframe= 2342 fps= 91 q=1.0 size= 44739kB time=00:01:57.10 bitrate=3129.7kbits/sframe= 2388 fps= 91 q=1.0 size= 45532kB time=00:01:59.43 bitrate=3123.0kbits/sframe= 2435 fps= 91 q=1.0 size= 46306kB time=00:02:01.80 bitrate=3114.5kbits/sframe= 2481 fps= 91 q=1.0 size= 47095kB time=00:02:04.02 bitrate=3110.7kbits/sframe= 2530 fps= 91 q=1.0 size= 47778kB time=00:02:06.49 bitrate=3094.3kbits/sframe= 2578 fps= 91 q=1.0 size= 48507kB time=00:02:08.91 bitrate=3082.5kbits/sframe= 2622 fps= 91 q=1.0 size= 49169kB time=00:02:11.08 bitrate=3072.9kbits/sframe= 2670 fps= 91 q=1.0 size= 49851kB time=00:02:13.54 bitrate=3057.9kbits/sframe= 2718 fps= 91 q=1.0 size= 50531kB time=00:02:15.92 bitrate=3045.5kbits/sframe= 2764 fps= 91 q=1.0 size= 51242kB time=00:02:18.18 bitrate=3037.8kbits/sframe= 2810 fps= 92 q=1.0 size= 51959kB time=00:02:20.51 bitrate=3029.3kbits/sframe= 2835 fps= 90 q=1.0 size= 52376kB time=00:02:21.78 bitrate=3026.2kbits/sframe= 2879 fps= 90 q=1.0 size= 53093kB time=00:02:23.94 bitrate=3021.5kbits/sframe= 2923 fps= 90 q=1.0 size= 53853kB time=00:02:26.18 bitrate=3017.8kbits/sframe= 2968 fps= 90 q=1.0 size= 54594kB time=00:02:28.39 bitrate=3013.7kbits/sframe= 3012 fps= 90 q=1.0 size= 55444kB time=00:02:30.63 bitrate=3015.2kbits/sframe= 3056 fps= 90 q=1.0 size= 56495kB time=00:02:32.78 bitrate=3029.2kbits/sframe= 3098 fps= 90 q=1.0 size= 57463kB time=00:02:34.90 bitrate=3039.0kbits/sframe= 3141 fps= 90 q=1.0 size= 58433kB time=00:02:37.04 bitrate=3048.0kbits/sframe= 3186 fps= 90 q=1.0 size= 59457kB time=00:02:39.33 bitrate=3057.0kbits/sframe= 3232 fps= 90 q=1.0 size= 60471kB time=00:02:41.59 bitrate=3065.6kbits/sframe= 3277 fps= 90 q=1.0 size= 61485kB time=00:02:43.82 bitrate=3074.5kbits/sframe= 3322 fps= 90 q=1.0 size= 62297kB time=00:02:46.11 bitrate=3072.3kbits/sframe= 3365 fps= 90 q=1.0 size= 63043kB time=00:02:48.27 bitrate=3069.0kbits/sframe= 3409 fps= 90 q=1.0 size= 63752kB time=00:02:50.46 bitrate=3063.7kbits/sframe= 3455 fps= 90 q=1.0 size= 64529kB time=00:02:52.75 bitrate=3060.0kbits/sframe= 3499 fps= 90 q=1.0 size= 65306kB time=00:02:54.96 bitrate=3057.7kbits/sframe= 3545 fps= 90 q=1.0 size= 66070kB time=00:02:57.24 bitrate=3053.6kbits/sframe= 3594 fps= 90 q=1.0 size= 66804kB time=00:02:59.71 bitrate=3045.1kbits/sframe= 3644 fps= 90 q=1.0 size= 67554kB time=00:03:02.18 bitrate=3037.6kbits/sframe= 3690 fps= 90 q=1.0 size= 68436kB time=00:03:04.48 bitrate=3038.8kbits/sframe= 3740 fps= 90 q=1.0 size= 69121kB time=00:03:07.00 bitrate=3028.0kbits/sframe= 3787 fps= 90 q=1.0 size= 69953kB time=00:03:09.33 bitrate=3026.7kbits/sframe= 3832 fps= 90 q=1.0 size= 70857kB time=00:03:11.59 bitrate=3029.7kbits/sframe= 3878 fps= 90 q=1.0 size= 71622kB time=00:03:13.92 bitrate=3025.6kbits/sframe= 3925 fps= 90 q=1.0 size= 72343kB time=00:03:16.25 bitrate=3019.8kbits/sframe= 3973 fps= 90 q=1.0 size= 73100kB time=00:03:18.64 bitrate=3014.5kbits/sframe= 4021 fps= 90 q=1.0 size= 73867kB time=00:03:21.07 bitrate=3009.5kbits/sframe= 4070 fps= 90 q=1.0 size= 74643kB time=00:03:23.53 bitrate=3004.2kbits/sframe= 4119 fps= 90 q=1.0 size= 75363kB time=00:03:25.95 bitrate=2997.6kbits/sframe= 4167 fps= 90 q=1.0 size= 76077kB time=00:03:28.35 bitrate=2991.1kbits/sframe= 4216 fps= 91 q=1.0 size= 76751kB time=00:03:30.77 bitrate=2983.0kbits/sframe= 4263 fps= 91 q=1.0 size= 77432kB time=00:03:33.15 bitrate=2975.9kbits/sframe= 4315 fps= 91 q=1.0 size= 78087kB time=00:03:35.73 bitrate=2965.1kbits/sframe= 4367 fps= 91 q=1.0 size= 78795kB time=00:03:38.34 bitrate=2956.3kbits/sframe= 4418 fps= 91 q=1.0 size= 79475kB time=00:03:40.90 bitrate=2947.2kbits/sframe= 4469 fps= 91 q=1.0 size= 80174kB time=00:03:43.46 bitrate=2939.1kbits/sframe= 4519 fps= 91 q=1.0 size= 80865kB time=00:03:45.90 bitrate=2932.4kbits/sframe= 4567 fps= 91 q=1.0 size= 81621kB time=00:03:48.32 bitrate=2928.4kbits/sframe= 4611 fps= 91 q=1.0 size= 82613kB time=00:03:50.56 bitrate=2935.2kbits/sframe= 4655 fps= 91 q=1.0 size= 83653kB time=00:03:52.80 bitrate=2943.7kbits/sframe= 4699 fps= 91 q=1.0 size= 84646kB time=00:03:54.97 bitrate=2951.1kbits/sframe= 4743 fps= 91 q=1.0 size= 85543kB time=00:03:57.20 bitrate=2954.3kbits/sframe= 4789 fps= 91 q=1.0 size= 86344kB time=00:03:59.42 bitrate=2954.3kbits/sframe= 4836 fps= 91 q=1.0 size= 87090kB time=00:04:01.79 bitrate=2950.6kbits/sframe= 4883 fps= 91 q=1.0 size= 87821kB time=00:04:04.17 bitrate=2946.4kbits/sframe= 4930 fps= 91 q=1.0 size= 88571kB time=00:04:06.50 bitrate=2943.5kbits/sframe= 4977 fps= 91 q=1.0 size= 89318kB time=00:04:08.85 bitrate=2940.3kbits/sframe= 5024 fps= 91 q=1.0 size= 90014kB time=00:04:11.18 bitrate=2935.7kbits/sframe= 5070 fps= 91 q=1.0 size= 90743kB time=00:04:13.55 bitrate=2931.8kbits/sframe= 5120 fps= 91 q=1.0 size= 91438kB time=00:04:16.00 bitrate=2926.0kbits/sframe= 5165 fps= 91 q=1.0 size= 92265kB time=00:04:18.28 bitrate=2926.4kbits/sframe= 5211 fps= 91 q=1.0 size= 93079kB time=00:04:20.56 bitrate=2926.3kbits/sframe= 5258 fps= 91 q=1.0 size= 93913kB time=00:04:22.87 bitrate=2926.6kbits/sframe= 5304 fps= 91 q=1.0 size= 94739kB time=00:04:25.20 bitrate=2926.4kbits/sframe= 5351 fps= 91 q=1.0 size= 95565kB time=00:04:27.60 bitrate=2925.5kbits/sframe= 5398 fps= 91 q=1.0 size= 96368kB time=00:04:29.90 bitrate=2924.9kbits/sframe= 5444 fps= 91 q=1.0 size= 97176kB time=00:04:32.16 bitrate=2924.9kbits/sframe= 5490 fps= 91 q=1.0 size= 98049kB time=00:04:34.54 bitrate=2925.6kbits/sframe= 5538 fps= 91 q=1.0 size= 98914kB time=00:04:36.91 bitrate=2926.1kbits/sframe= 5587 fps= 91 q=1.0 size= 99817kB time=00:04:39.36 bitrate=2927.0kbits/sframe= 5636 fps= 91 q=1.0 size= 100709kB time=00:04:41.83 bitrate=2927.3kbits/sframe= 5682 fps= 91 q=1.0 size= 101490kB time=00:04:44.11 bitrate=2926.3kbits/sframe= 5732 fps= 91 q=1.0 size= 102230kB time=00:04:46.60 bitrate=2922.0kbits/sframe= 5781 fps= 91 q=1.0 size= 102991kB time=00:04:49.07 bitrate=2918.6kbits/sframe= 5827 fps= 91 q=1.0 size= 103918kB time=00:04:51.35 bitrate=2921.8kbits/sframe= 5874 fps= 92 q=1.0 size= 104873kB time=00:04:53.73 bitrate=2924.9kbits/sframe= 5921 fps= 92 q=1.0 size= 105844kB time=00:04:56.08 bitrate=2928.5kbits/sframe= 5970 fps= 92 q=1.0 size= 106670kB time=00:04:58.50 bitrate=2927.4kbits/sframe= 6028 fps= 92 q=1.0 size= 108198kB time=00:05:01.43 bitrate=2940.5kbits/sframe= 6080 fps= 91 q=1.0 size= 109527kB time=00:05:03.99 bitrate=2951.5kbits/sframe= 6138 fps= 92 q=1.0 size= 110623kB time=00:05:06.85 bitrate=2953.3kbits/sframe= 6156 fps= 92 q=1.0 Lsize= 111017kB time=00:05:07.85 bitrate=2954.2kbits/s dup=0 drop=3067

    video:97193kB audio:13354kB global headers:0kB muxing overhead 0.425158%

    Where is my problem ?

  • Extract Video Frames In Python

    22 avril 2017, par TheNone

    I want to extract video frames and save them as image.

    import os, sys
    from PIL import Image

    a, b, c = os.popen3("ffmpeg -i test.avi")
    out = c.read()
    dp = out.index("Duration: ")
    duration = out[dp+10:dp+out[dp:].index(",")]
    hh, mm, ss = map(float, duration.split(":"))
    total = (hh*60 + mm)*60 + ss
    for i in xrange(9):
       t = (i + 1) * total / 10
       os.system("ffmpeg -i test.avi -ss %0.3fs frame%i.png" % (t, i))

    But I have this error :

    FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
    Mac OSX universal build for ffmpegX
     configuration:  --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264
     libavutil version: 49.0.0
     libavcodec version: 51.9.0
     libavformat version: 50.4.0
     built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
    Input #0, avi, from 'test.avi':
     Duration: 00:00:30.5, start: 0.000000, bitrate: 465 kb/s
     Stream #0.0, 25.00 fps(r): Video: mpeg4, yuv420p, 640x480
     Stream #0.1: Audio: mp3, 32000 Hz, mono, 32 kb/s
    Unable for find a suitable output format for 'frame0.png'

    Edit : ffmpeg -formats

    FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
    Mac OSX universal build for ffmpegX
     configuration:  --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264
     libavutil version: 49.0.0
     libavcodec version: 51.9.0
     libavformat version: 50.4.0
     built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc. build 5250)
    File formats:
     E 3g2             3gp2 format
     E 3gp             3gp format
    D  4xm             4X Technologies format
    D  RoQ             Id RoQ format
    D  aac             ADTS AAC
    DE ac3             raw ac3
     E adts            ADTS AAC
    DE aiff            Audio IFF
    DE alaw            pcm A law format
    DE amr             3gpp amr file format
    DE asf             asf format
     E asf_stream      asf format
    DE au              SUN AU Format
    DE avi             avi format
    D  avs             avs format
     E crc             crc testing format
    D  daud            D-Cinema audio format
    D  dts             raw dts
    DE dv              DV video format
     E dvd             MPEG2 PS format (DVD VOB)
    D  ea              Electronic Arts Multimedia Format
    DE ffm             ffm format
    D  film_cpk        Sega FILM/CPK format
    D  flic            FLI/FLC/FLX animation format
    DE flv             flv format
     E framecrc        framecrc testing format
    DE gif             GIF Animation
    DE h261            raw h261
    DE h263            raw h263
    DE h264            raw H264 video format
    D  idcin           Id CIN format
    DE image           image sequence
    DE image2          image2 sequence
    DE image2pipe      piped image2 sequence
    DE imagepipe       piped image sequence
    D  ingenient       Ingenient MJPEG
    D  ipmovie         Interplay MVE format
    DE m4v             raw MPEG4 video format
    D  matroska        Matroska file format
    DE mjpeg           MJPEG video
    D  mm              American Laser Games MM format
    DE mmf             mmf format
     E mov             mov format
    D  mov,mp4,m4a,3gp,3g2,mj2 QuickTime/MPEG4/Motion JPEG 2000 format
     E mp2             MPEG audio layer 2
    DE mp3             MPEG audio layer 3
     E mp4             mp4 format
    DE mpeg            MPEG1 System format
     E mpeg1video      MPEG video
     E mpeg2video      MPEG2 video
    DE mpegts          MPEG2 transport stream format
    D  mpegvideo       MPEG video
     E mpjpeg          Mime multipart JPEG format
    DE mulaw           pcm mu law format
    D  nsv             NullSoft Video format
     E null            null video format
    DE nut             nut format
    D  nuv             NuppelVideo format
    D  ogg             Ogg
     E psp             psp mp4 format
    D  psxstr          Sony Playstation STR format
    DE rawvideo        raw video format
    D  redir           Redirector format
    DE rm              rm format
     E rtp             RTP output format
    D  rtsp            RTSP input format
    DE s16be           pcm signed 16 bit big endian format
    DE s16le           pcm signed 16 bit little endian format
    DE s8              pcm signed 8 bit format
    D  sdp             SDP
    D  shn             raw shorten
    D  smk             Smacker Video
    D  sol             Sierra SOL Format
     E svcd            MPEG2 PS format (VOB)
    DE swf             Flash format
    D  tta             true-audio
    DE u16be           pcm unsigned 16 bit big endian format
    DE u16le           pcm unsigned 16 bit little endian format
    DE u8              pcm unsigned 8 bit format
     E vcd             MPEG1 System format (VCD)
    D  vmd             Sierra VMD format
     E vob             MPEG2 PS format (VOB)
    DE voc             Creative Voice File format
    DE wav             wav format
    D  wc3movie        Wing Commander III movie format
    D  wsaud           Westwood Studios audio format
    D  wsvqa           Westwood Studios VQA format
    DE yuv4mpegpipe    YUV4MPEG pipe format

    Image formats (filename extensions, if any, follow):
    DE gif    gif

    Codecs:
    D V    4xm
    D V D  8bps
    DEA    aac
    D V D  aasc
    DEA    ac3
    DEA    adpcm_4xm
    DEA    adpcm_adx
    DEA    adpcm_ct
    DEA    adpcm_ea
    DEA    adpcm_ima_dk3
    DEA    adpcm_ima_dk4
    DEA    adpcm_ima_qt
    DEA    adpcm_ima_smjpeg
    DEA    adpcm_ima_wav
    DEA    adpcm_ima_ws
    DEA    adpcm_ms
    DEA    adpcm_sbpro_2
    DEA    adpcm_sbpro_3
    DEA    adpcm_sbpro_4
    DEA    adpcm_swf
    DEA    adpcm_xa
    DEA    adpcm_yamaha
    D A    alac
    DEA    amr_nb
    DEA    amr_wb
    DEV D  asv1
    DEV D  asv2
    D V D  avs
    D V    bmp
    D V D  camstudio
    D V D  camtasia
    D V D  cinepak
    D V D  cljr
    D A    cook
    D V D  cyuv
    DES    dvbsub
    DES    dvdsub
    DEV D  dvvideo
    DEV D  ffv1
    DEVSD  ffvhuff
    D A    flac
    D V D  flic
    DEVSD  flv
    D V D  fraps
    DEA    g726
    DEV D  h261
    DEVSDT h263
    D VSD  h263i
     EV    h263p
    DEV DT h264
    DEVSD  huffyuv
    D V D  idcinvideo
    D V D  indeo2
    D V    indeo3
    D A    interplay_dpcm
    D V D  interplayvideo
     EV    jpegls
    D V    kmvc
     EV    ljpeg
    D V D  loco
    D A    mace3
    D A    mace6
    D V D  mdec
    DEV D  mjpeg
    D V D  mjpegb
    D V D  mmvideo
    DEA    mp2
    DEA    mp3
    D A    mp3adu
    D A    mp3on4
    DEVSDT mpeg1video
    DEVSDT mpeg2video
    DEVSDT mpeg4
    D A    mpeg4aac
    D VSDT mpegvideo
    DEVSD  msmpeg4
    DEVSD  msmpeg4v1
    DEVSD  msmpeg4v2
    D V D  msrle
    D V D  msvideo1
    D V D  mszh
    D V D  nuv
    DEV    pam
    DEV    pbm
    DEA    pcm_alaw
    DEA    pcm_mulaw
    DEA    pcm_s16be
    DEA    pcm_s16le
    DEA    pcm_s24be
    DEA    pcm_s24daud
    DEA    pcm_s24le
    DEA    pcm_s32be
    DEA    pcm_s32le
    DEA    pcm_s8
    DEA    pcm_u16be
    DEA    pcm_u16le
    DEA    pcm_u24be
    DEA    pcm_u24le
    DEA    pcm_u32be
    DEA    pcm_u32le
    DEA    pcm_u8
    DEV    pgm
    DEV    pgmyuv
    DEV    png
    DEV    ppm
    D A    qdm2
    D V D  qdraw
    D V D  qpeg
    D V D  qtrle
    DEV    rawvideo
    D A    real_144
    D A    real_288
    D A    roq_dpcm
    D V D  roqvideo
    D V D  rpza
    DEV D  rv10
    DEV D  rv20
    D A    shorten
    D A    smackaud
    D V    smackvid
    D V D  smc
    DEV    snow
    D A    sol_dpcm
    DEA    sonic
     EA    sonicls
    D V D  sp5x
    DEV D  svq1
    D VSD  svq3
    D V    theora
    D V D  truemotion1
    D V D  truemotion2
    D A    truespeech
    D A    tta
    D V D  ultimotion
    D V    vc9
    D V D  vcr1
    D A    vmdaudio
    D V D  vmdvideo
    D A    vorbis
    D V    vp3
    D V D  vqavideo
    D A    wmav1
    D A    wmav2
    DEVSD  wmv1
    DEVSD  wmv2
    D V D  wnv1
    D A    ws_snd1
    D A    xan_dpcm
    D V D  xan_wc3
    D V D  xl
     EV    xvid
    DEV D  zlib
    D V    zmbv

    Supported file protocols:
    file: pipe: udp: rtp: tcp: http:
    Frame size, frame rate abbreviations:
    ntsc pal qntsc qpal sntsc spal film ntsc-film sqcif qcif cif 4cif
    Motion estimation methods:
    zero(fastest) full(slowest) log phods epzs(default) x1 hex umh iter

    Note, the names of encoders and decoders dont always match, so there are
    several cases where the above table shows encoder only or decoder only entries
    even though both encoding and decoding are supported for example, the h263
    decoder corresponds to the h263 and h263p encoders, for file formats its even
    worse

    What is wrong in my code ? Thanks in advance