{5} Open Tickets by Owner (Full Description) (495 matches)

List open tickets, group by ticket owner. This report demonstrates the use of full-row display.

Results (1 - 100 of 495)

1 2 3 4 5
Ticket Summary Component Milestone Type Created
Description
#3674 WMP does not accept sample aspect ratio close to 1 but != 1 in mov avcodec defect May 26, 2014

Summary of the bug: I have a screen recorded video with frame rate 15, video codec H.264 (MP4) and AAC as audio. The target via FFmpeg should contain frame rate 25, height of 720 pixel and the codecs without change.

After encoding, the file is playable in VLC player, Chrome browser (HTML5 video tag) and Firefox. In Windows Media player I just get the audio played (no video to see) and in Internet Explorer 11, I get an error ("Unknown source.")

How to reproduce:

% ffmpeg -i input_file.mp4 -vf "scale='(trunc((out_h*a)/2)*2):(min(720, in_h))'" output_file.mp4
VERSION: N-63439-g96470ca
N-63439-g96470ca

Strange is: If I encode the video with a height of 718 or 722 (or any other height I tried), the video is playable anywhere - without problems.

Test video file for input (short, length of 1 second): http://www.datafilehost.com/d/1ca920ac


#4888 62bd8deef causes a regression in HEVC decoding / hevc needs support to skip initial corrupt frames avcodec defect Sep 28, 2015

Summary of the bug: I'm trying to extract a thumb from the middle of a live TS, containing one HEVC-stream. Before this patch I would always get a good looking thumb, but with this patch I would for the most part get a mostly gray frame.

If I generates a few more thumbnails i see that it eventually spits out the same frame that ffmpeg before this patch produced as the first thumb, and it looks OK.

However it is much more blocky than what the previous ffmpeg produced.

How to reproduce (b7baebb75 is the commit just before the patch):

% ./ffmpeg.b7baebb75 -an -i hevc_fail.ts -vframes 1 before_patch%d.jpg
ffmpeg version N-74781-gb7baebb Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.7 (Debian 4.7.2-5)
  configuration: 
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
[NULL @ 0x1f74780] PPS id out of range: 0
[hevc @ 0x1f74780] PPS id out of range: 0
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
[hevc @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1f74780] Error parsing NAL unit #2.
Input #0, mpegts, from 'hevc_fail.ts':
  Duration: 00:00:02.50, start: 2237.360033, bitrate: 7740 kb/s
    Stream #0:0[0x1e1]: Video: hevc (Main 10), yuv420p10le(tv), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 23.98 tbc
[swscaler @ 0x1f9a140] deprecated pixel format used, make sure you did set range correctly
Output #0, image2, to 'before_patch%d.jpg':
  Metadata:
    encoder         : Lavf56.40.101
    Stream #0:0: Video: mjpeg, yuvj420p(pc), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 23.98 fps, 23.98 tbn, 23.98 tbc
    Metadata:
      encoder         : Lavc56.60.100 mjpeg
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[NULL @ 0x1f74780] PPS id out of range: 0
[hevc @ 0x2052600] PPS id out of range: 0
[hevc @ 0x2052600] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x20609a0] PPS id out of range: 0
[hevc @ 0x20609a0] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
[hevc @ 0x2072400] PPS id out of range: 0
[hevc @ 0x2072400] Error parsing NAL unit #2.
[hevc @ 0x2083e60] PPS id out of range: 0
[hevc @ 0x2083e60] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x20958c0] PPS id out of range: 0
[hevc @ 0x20958c0] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
[hevc @ 0x20a7320] PPS id out of range: 0
[hevc @ 0x20a7320] Error parsing NAL unit #2.
[hevc @ 0x20b8d80] PPS id out of range: 0
[hevc @ 0x20b8d80] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x20ca7e0] PPS id out of range: 0
[hevc @ 0x20ca7e0] Error parsing NAL unit #2.
Error while decoding stream #0:0: Invalid data found when processing input
[hevc @ 0x20dc240] PPS id out of range: 0
[hevc @ 0x20dc240] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
Error while decoding stream #0:0: Invalid data found when processing input
[hevc @ 0x2052600] PPS id out of range: 0
[hevc @ 0x2052600] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
Error while decoding stream #0:0: Invalid data found when processing input
[hevc @ 0x20609a0] PPS id out of range: 0
[hevc @ 0x20609a0] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
Error while decoding stream #0:0: Invalid data found when processing input
[hevc @ 0x2072400] PPS id out of range: 0
[hevc @ 0x2072400] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
Error while decoding stream #0:0: Invalid data found when processing input
[hevc @ 0x2083e60] PPS id out of range: 0
[hevc @ 0x2083e60] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
Error while decoding stream #0:0: Invalid data found when processing input
[hevc @ 0x20958c0] PPS id out of range: 0
[hevc @ 0x20958c0] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
Error while decoding stream #0:0: Invalid data found when processing input
[hevc @ 0x20a7320] PPS id out of range: 0
[hevc @ 0x20a7320] Error parsing NAL unit #2.
[NULL @ 0x1f74780] PPS id out of range: 0
Error while decoding stream #0:0: Invalid data found when processing input
[hevc @ 0x20b8d80] PPS id out of range: 0
[hevc @ 0x20b8d80] Error parsing NAL unit #2.
Error while decoding stream #0:0: Invalid data found when processing input
    Last message repeated 7 times
frame=    1 fps=0.0 q=7.5 Lsize=N/A time=00:00:00.75 bitrate=N/A    
video:108kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!

This gives me one image, before_patch1.jpg that looks completly fine. http://kolbu.ws/~chiller/ffmpeg_bug/before_patch1.jpg

Now I do the same with the patch:

ffmpeg version N-74782-g62bd8de Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.7 (Debian 4.7.2-5)
  configuration: 
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
[NULL @ 0x1dc2780] PPS id out of range: 0
[hevc @ 0x1dc2780] PPS id out of range: 0
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
[hevc @ 0x1dc2780] PPS id out of range: 0
    Last message repeated 1 times
[hevc @ 0x1dc2780] Error parsing NAL unit #2.
Input #0, mpegts, from 'hevc_fail.ts':
  Duration: 00:00:02.50, start: 2237.360033, bitrate: 7740 kb/s
    Stream #0:0[0x1e1]: Video: hevc (Main 10), yuv420p10le(tv), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 23.98 tbc
[swscaler @ 0x1dec4e0] deprecated pixel format used, make sure you did set range correctly
Output #0, image2, to 'with_patch%d.jpg':
  Metadata:
    encoder         : Lavf56.40.101
    Stream #0:0: Video: mjpeg, yuvj420p(pc), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 23.98 fps, 23.98 tbn, 23.98 tbc
    Metadata:
      encoder         : Lavc56.60.100 mjpeg
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[hevc @ 0x1ea0760] Could not find ref with POC 12
[hevc @ 0x1ea0760] Could not find ref with POC 15
frame=    1 fps=0.0 q=5.0 Lsize=N/A time=00:00:00.04 bitrate=N/A    
video:69kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

This gives me one file with_patch1.jpg that looks garbaged. http://kolbu.ws/~chiller/ffmpeg_bug/with_patch1.jpg

If I re-run the last command with -vframes 100 it generates 60 images, where image 18 is almost identical to the before_patch1.jpg, except a bit more blocky.

http://kolbu.ws/~chiller/ffmpeg_bug/with_patch18.jpg

Here is the link to the .ts-file: http://kolbu.ws/~chiller/ffmpeg_bug/hevc_fail.ts

and all files involved can be viewed here: http://kolbu.ws/~chiller/ffmpeg_bug/ (The most important ones are attached)


#5272 videotoolbox fails to initialize for mpeg2, mpeg4 codec avcodec defect Feb 25, 2016

Summary of the bug: ffmpeg 2.8 branch can decode mpeg2video, mpeg4 and h264, but 3.0 and master can only decode h264. videotoolbox_default_init returns AVERROR_UNKNOWN for mpeg2video and mpeg4. How to reproduce:

% ffmpeg version N-76033-g1a29804 Copyright (c) 2000-2016 the FFmpeg developers
  built with Apple LLVM version 7.0.2 (clang-700.1.81)
  configuration: --extra-version=QtAV --disable-doc --disable-debug --disable-shared --enable-pic --enable-runtime-cpudetect --enable-hwaccels --enable-avresample --disable-postproc --enable-videotoolbox --cc=clang --extra-cflags='-mmacosx-version-min=10.8' --extra-ldflags='-mmacosx-version-min=10.8'
  libavutil      55. 19.100 / 55. 19.100
  libavcodec     57. 25.101 / 57. 25.101
  libavformat    57. 26.100 / 57. 26.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 36.100 /  6. 36.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
Input #0, mpeg, from '/Volumes/Share/samples/big_buck_bunny_480p_MPEG2_MP2_25fps_1800K.MPG':
  Duration: 00:01:14.68, start: 0.240000, bitrate: 2123 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 854x480 [SAR 1:1 DAR 427:240], max. 2496 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x1c0]: Audio: mp2, 44100 Hz, stereo, s16p, 160 kb/s
File '/tmp/t.ts' already exists. Overwrite ? [y/N] Output #0, mpegts, to '/tmp/t.ts':
  Metadata:
    encoder         : Lavf57.26.100
    Stream #0:0: Video: mpeg2video (Main), yuv420p, 854x480 [SAR 1:1 DAR 427:240], q=2-31, 200 kb/s, 25 fps, 90k tbn, 25 tbc
    Metadata:
      encoder         : Lavc57.25.101 mpeg2video
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
    Stream #0:1: Audio: mp2, 44100 Hz, stereo, s16, 384 kb/s
    Metadata:
      encoder         : Lavc57.25.101 mp2
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> mpeg2video (native))
  Stream #0:1 -> #0:1 (mp2 (native) -> mp2 (native))
Press [q] to stop, [?] for help
Error creating Videotoolbox decoder.
videotoolbox hwaccel requested for input stream #0:0, but cannot be initialized.
[mpeg2video @ 0x7fa632804000] decoding to AV_PIX_FMT_NONE is not supported.
[mpeg2video @ 0x7fa632804000] mpeg_decode_postinit() failure
Error while decoding stream #0:0: Operation not permitted
Error creating Videotoolbox decoder.
videotoolbox hwaccel requested for input stream #0:0, but cannot be initialized.
[mpeg2video @ 0x7fa632804000] decoding to AV_PIX_FMT_NONE is not supported.
[mpeg2video @ 0x7fa632804000] mpeg_decode_postinit() failure
Error while decoding stream #0:0: Operation not permitted
Error creating Videotoolbox decoder.

#5718 ffmpeg not remapping channels for libopus automatically avcodec defect Jul 15, 2016
[libopus @ 00000000026ad020] Invalid channel layout 5.1(side) for specified mapping family -1.

Summary of the bug: Encode a 5.1 audio file with 5.1(side) channel map How to reproduce:

% ffmpeg -i movie-with-51side.mkv -c:a libopus -b:a 256k output.mkv
ffmpeg version N-81025-g25ca74d
built on July 15 2016

ffmpeg version N-80101-gd970f7b automatically remapped these to the rear channels since libopus doesn't seem to allow side channels. I now have to explicitly add:

-af "channelmap=channel_layout=5.1"

Not sure if this is expected behavior or not. Without this channelmap, it aborts. Command-line opusenc automatically remaps as well.


#128 svq1 decoder is somehow buggy avcodec defect Apr 27, 2011

ftp://ftp.pigwa.net/stuff/other/vcsclip.mov

please compare attached screenshot (left = ffplay / right = qt player)

I found this with google, maybe related?

[Ffmpeg-user] A small but disastrous bug in SVQ1 Decoder

Hi, I am using ffmpeg repository source code for developing Sorenson decoder and encountered a "break" statement missing in "avcodec_align_dimensions()" function under "switch case PIX_FMT_YUV410P" in file "utils.c". Due to this every time when controls come to "case PIX_FMT_YUV410P" instead of breaking after executing the required commands, it goes to the default case and reset the values of w_align & h_align to 1. Which eventually change the file size of output yuv file, resulting in corrupted output.

Please add the necessary "break" statement in appropriate switch case in the new version.

C:\>ffmpeg -i C:\vcsclip.mov
FFmpeg version git-N-29181-ga304071, Copyright (c) 2000-2011 the FFmpeg develope
rs
  built on Apr 18 2011 21:24:03 with gcc 4.5.2
  configuration: --enable-gpl --enable-version3 --enable-runtime-cpudetect --ena
ble-memalign-hack --enable-avisynth --enable-bzlib --enable-frei0r --enable-libo
pencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --
enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger
 --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enabl
e-libx264 --enable-libxavs --enable-libxvid --enable-zlib --cross-prefix=i686-w6
4-mingw32- --target-os=mingw32 --arch=x86_32 --extra-cflags=-I/home/kyle/softwar
e/ffmpeg/external-libraries/win32/include --extra-ldflags=-L/home/kyle/software/
ffmpeg/external-libraries/win32/lib --pkg-config=pkg-config
  libavutil    50. 40. 1 / 50. 40. 1
  libavcodec   52.120. 0 / 52.120. 0
  libavformat  52.108. 0 / 52.108. 0
  libavdevice  52.  4. 0 / 52.  4. 0
  libavfilter   1. 79. 0 /  1. 79. 0
  libswscale    0. 13. 0 /  0. 13. 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 01CEC000] max_analyze_duration reached

Seems stream 0 codec frame rate differs from container frame rate: 600.00 (600/1
) -> 12.00 (12/1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\vcsclip.mov':
  Metadata:
    creation_time   : 2000-08-17 00:28:08
    album           : Digital 2600
    album-eng       : Digital 2600
    artist          : Kevin Rodgers & Markus Karlus
    artist-eng      : Kevin Rodgers & Markus Karlus
    copyright-eng   : [C] 2000
    comment         : goldenshower@uia.com.br ]]]] www.goldenshower.gs
    copyright       : [C] 2000
    comment-eng     : goldenshower@uia.com.br ]]]] www.goldenshower.gs
  Duration: 00:02:52.53, start: 0.000000, bitrate: 338 kb/s
    Stream #0.0(eng): Video: svq1, yuv410p, 320x240, 289 kb/s, 12 fps, 12 tbr, 6
00 tbn, 600 tbc
    Metadata:
      creation_time   : 2000-08-17 00:28:08
    Stream #0.1(eng): Audio: qdm2, 44100 Hz, 1 channels, s16, 48 kb/s
    Metadata:
      creation_time   : 2000-08-17 00:28:08
At least one output file must be specified

#691 Errors while decoding wmav2 stream avcodec defect Nov 27, 2011

My file decoded incorrectly, but on my mobile phone this file plays correctly. I can upload it on ftp server: upload.ffmpeg.org, if you need.


#742 zygo video codec decodes with visible graphic corruption avcodec defect Dec 14, 2011
C:\>ffmpeg -i M3_E3TrailerMC56k7fps.mov
ffmpeg version N-35709-g7d531e8, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 12 2011 13:50:00 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil    51. 32. 0 / 51. 32. 0
  libavcodec   53. 43. 0 / 53. 43. 0
  libavformat  53. 24. 0 / 53. 24. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 53. 0 /  2. 53. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[h263 @ 020C9E20] illegal ac vlc code at 3x0
[h263 @ 020C9E20] Error at MB: 3
[h263 @ 020C9E20] concealing 180 DC, 180 AC, 180 MV errors

Seems stream 1 codec frame rate differs from container frame rate: 29.97 (30000/
1001) -> 7.50 (15/2)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'M3_E3TrailerMC56k7fps.mov':
  Metadata:
    creation_time   : 2004-07-06 16:29:59
  Duration: 00:02:35.73, start: 0.000000, bitrate: 55 kb/s
    Stream #0:0(eng): Audio: qdm2 (QDM2 / 0x324D4451), 44100 Hz, 1 channels, s16
, 10 kb/s
    Metadata:
      creation_time   : 2004-07-06 16:29:59
      handler_name    : ?Apple Alias Data Handler
    Stream #0:1(eng): Video: h263 (ZyGo / 0x6F47795A), yuv420p, 240x192 [SAR 12:
11 DAR 15:11], 45 kb/s, 7.50 fps, 7.50 tbr, 600 tbn, 29.97 tbc
    Metadata:
      creation_time   : 2004-07-06 16:29:59
      handler_name    : ?Apple Alias Data Handler
At least one output file must be specified

#946 ffplay: almost unreadable dvd subtitles due to wrong colors avcodec defect Jan 28, 2012

http://www.datafilehost.com/download-76a1c6a8.html

related to:

commit cf16104ad13f6c558ea386e5fa55a67e2b378f5e
Author: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Date:   Sat Apr 30 23:00:17 2011 +0200

    Change guess_palette so its output matches the most common palette.
    
    This means it uses full brightness range and brightness
    increasing instead of decreasing with index of non-opaque
    color.
    
    Based on patch by Alexandre Colucci [alexandre elgato com]

diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c
index bb3e124..6d5973c 100644
--- a/libavcodec/dvdsubdec.c
+++ b/libavcodec/dvdsubdec.c
@@ -120,6 +120,14 @@ static void guess_palette(uint32_t *rgba_palette,
                           uint8_t *alpha,
                           uint32_t subtitle_color)
 {
+    static const uint8_t level_map[4][4] = {
+        // this configuration (full range, lowest to highest) in tests
+        // seemed most common, so assume this
+        {0xff},
+        {0x00, 0xff},
+        {0x00, 0x80, 0xff},
+        {0x00, 0x55, 0xaa, 0xff},
+    };
     uint8_t color_used[16];
     int nb_opaque_colors, i, level, j, r, g, b;
 
@@ -138,18 +146,18 @@ static void guess_palette(uint32_t *rgba_palette,
     if (nb_opaque_colors == 0)
         return;
 
-    j = nb_opaque_colors;
+    j = 0;
     memset(color_used, 0, 16);
     for(i = 0; i < 4; i++) {
         if (alpha[i] != 0) {
             if (!color_used[colormap[i]])  {
-                level = (0xff * j) / nb_opaque_colors;
+                level = level_map[nb_opaque_colors][j];
                 r = (((subtitle_color >> 16) & 0xff) * level) >> 8;
                 g = (((subtitle_color >> 8) & 0xff) * level) >> 8;
                 b = (((subtitle_color >> 0) & 0xff) * level) >> 8;
                 rgba_palette[i] = b | (g << 8) | (r << 16) | ((alpha[i] * 17) << 24);
                 color_used[colormap[i]] = (i + 1);
-                j--;
+                j++;
             } else {
                 rgba_palette[i] = (rgba_palette[color_used[colormap[i]] - 1] & 0x00ffffff) |
                                     ((alpha[i] * 17) << 24);
C:\>ffmpeg -i dvdsub.vob
ffmpeg version N-36890-g67f5650 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jan 16 2012 21:57:13 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil      51. 34.100 / 51. 34.100
  libavcodec     53. 56.105 / 53. 56.105
  libavformat    53. 30.100 / 53. 30.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 59.100 /  2. 59.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    51.  2.100 / 51.  2.100
[mpeg @ 020F2320] max_analyze_duration 5000000 reached at 5000000
Input #0, mpeg, from 'dvdsub.vob':
  Duration: 00:00:07.96, start: 1556.319267, bitrate: 5263 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DA
R 16:9], 7500 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
    Stream #0:2[0x20]: Subtitle: dvd_subtitle
    Stream #0:3[0x22]: Subtitle: dvd_subtitle
    Stream #0:4[0x24]: Subtitle: dvd_subtitle
    Stream #0:5[0x25]: Subtitle: dvd_subtitle
    Stream #0:6[0x26]: Subtitle: dvd_subtitle
    Stream #0:7[0x28]: Subtitle: dvd_subtitle
    Stream #0:8[0x29]: Subtitle: dvd_subtitle
    Stream #0:9[0x21]: Subtitle: dvd_subtitle
    Stream #0:10[0x23]: Subtitle: dvd_subtitle
    Stream #0:11[0x27]: Subtitle: dvd_subtitle
    Stream #0:12[0x2a]: Subtitle: dvd_subtitle
At least one output file must be specified

#1282 VP6F Libavcodec decoding bug (slowly accumulating artifacts) avcodec defect May 8, 2012

Hello, Here's a report for a FLV4/VP6 Libavcodec decoding bug. A sample is here: http://videoff7.free.fr/sample_artefact.flv (also tentatively attached to this ticket).

As the video progresses, PQ becomes worse and worse, it can be seen easily on the newscaster's face 10 seconds in.

I tested with DShow based decoders (FFDShow/LAV) and also with mplayer2, all on Windows. The issue shows up with all of them.

No such issue happens when decoding with the original On2 VP6 directshow decoder [ http://videoff7.free.fr/On2_VP6_Decoder.zip ].

Thank you for your support.


#1614 AAC stream with SBR fails with "channel element 0.1 is not allocated" avcodec defect Aug 6, 2012

Summary of the bug: Getting the following message repeatedly when trying to play the AAC stream with ffplay from master: [aac @ 0x7ff1c2023800] channel element 0.1 is not allocated

Stream is http://3043.live.streamtheworld.com/SAM04AAC41_SC

This stream works fine in VideoLan? VLC player.

How to reproduce: ./ffplay http://3043.live.streamtheworld.com/SAM04AAC41_SC


#1737 ffmpeg detect aac stereo as mono avcodec defect Sep 14, 2012

How to reproduce:

ffprobe -v 9 -loglevel 99 ./audio_aac_stereo_as_mono.mp4
ffprobe version N-44445-ge332947 Copyright (c) 2007-2012 the FFmpeg developers
  built on Sep 14 2012 14:05:18 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration: --cc='gcc -O2 -m64 -mtune=core2 -pipe' --enable-version3 --enable-libfaac --enable-libx264 --enable-pthreads --enable-gpl --enable-nonfree --enable-librtmp --enable-shared --enable-filter=movie --enable-avfilter --enable-libspeex --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libaacplus --enable-libvo-aacenc
  libavutil      51. 73.100 / 51. 73.100
  libavcodec     54. 55.100 / 54. 55.100
  libavformat    54. 27.100 / 54. 27.100
  libavdevice    54.  2.100 / 54.  2.100
  libavfilter     3. 16.103 /  3. 16.103
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x17953c0] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x17953c0] ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x17953c0] File position before avformat_find_stream_info() is 1175362
[aac @ 0x179cc60] channel element 0.0 is not allocated
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x17953c0] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x17953c0] File position after avformat_find_stream_info() is 143323
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './audio_aac_stereo_as_mono.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title           : Teradek stream
    encoder         : Lavf54.27.100
    copyright       : Teradek
  Duration: 00:00:21.05, start: 0.000000, bitrate: 446 kb/s
    Stream #0:0(und), 41, 1/1000: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 360x240 [SAR 32:27 DAR 16:9], 1/50, 407 kb/s, 23.86 fps, 25 tbr, 1k tbn, 50 tbc
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und), 120, 1/48000: Audio: aac (mp4a / 0x6134706D), 48000 Hz, mono, s16, 32 kb/s
    Metadata:
      handler_name    : SoundHandler
[h264 @ 0x179bc00] detected 8 logical cores
[AVIOContext @ 0x179da40] Statistics: 214912 bytes read, 2 seeks

Attach log for:

ffmpeg -v 9 -loglevel 99 -i ./audio_aac_stereo_as_mono.mp4 -vcodec copy -acodec libfaac -ar 22050 -report -f mp4 /tmp/aaa3.mp4

#1768 audio AAC fails at CCE avcodec defect Sep 27, 2012

get_che function of aacdec.c file doesn't handle CCE type, as a result, AAC decoder fails to continue decoding. I got "channel element 2.8 is not allocated" error message for my AAC audio.


#2035 DVD subtitle from VOB does not contain CodecPrivate data avcodec defect Dec 16, 2012

Summary of the bug:

When copying DVD subtitles from vob files into the matroska container the subtitles do not contain CodecPrivate? data.

The subtitles play fine in vlc but mkvtoolnix has problems with editing the file. The header editor recognizes all tracks but mkvextract fails to extract the subtitles because of the missing data (Error: Track 5 with the CodecID 'S_VOBSUB' is missing the "codec private" element and cannot be extracted.). Also editing the file with mmg/mkvmerge does not work because the existing subtitles are ignored and not written to the output file because of the same reason (Warning: matroska_reader: The CodecID for track 5 is 'S_VOBSUB', but there was no private data found).

While I understand that the CodecPrivate? data is not direct available when reading from VOB files as this information normally comes from the IDX part of extracted subtitles in vobsub format. However it would be nice if this information could be acquired somehow and written to the codec initialization part for the files to be editable by mkvtoolnix. This would save the additional step of extracting the subtitles to IDX/SUB. I guess that the ultimate solution would be to add a DVD reader who understands the dvd structure as I this information is stored in the IFO file.

How to reproduce:

% ffmpeg -i concat:VTS_01_1.VOB\|VTS_01_2.VOB\|VTS_01_3.VOB\|VTS_01_4.VOB \
-map 0:0 -map 0:1 -map 0:2 -map 0:6 -map 0:5 -map 0:4 \
-c:v libx264 -preset fast -crf 18 \
-c:a copy -metadata:s:a:0 language=ger \
-c:a copy -metadata:s:a:1 language=eng \
-c:s copy -metadata:s:s:0 language=eng \
-c:s copy -metadata:s:s:1 language=ger \
-c:s copy -metadata:s:s:2 language=ger \
-f matroska movie.mkv

ffmpeg version N-47903-gde89dff
built on Dec 16 2012 15:51:01

#3087 Suspicion that valid random access point is not marked as keyframe in AVCHD samples from Panasonic Lumix GH1 (1080i material) avcodec defect Oct 27, 2013

This is a follow-up to #3083.

The issue is very similar here, that I-frames that work as random access points (checked by cutting off the beginning of the file until the packet start of such a frame and it decodes fine) are not marked as keyframes by the parser.

The heuristic introduced to fix #3083

if(h->sps.ref_frame_count <= 1 && h->pps.ref_count[0] <= 1 && s->pict_type == AV_PICTURE_TYPE_I)

s->key_frame = 1;

fails here because both, h->sps.ref_frame_count and h->pps.ref_count[0] are 2.

I understand too little of h264 internals to say how that may be changed but maybe the heuristic does not cover the interlaced case.

I don't know if it has anything to do with it but this material is progressive segmented frame (i.e. progressively scanned but encoded as field pictures).


#3262 Interlaced VC-1 flat spots on static scenes. avcodec defect Dec 31, 2013

When playing interlaced VC-1 video (Doctor Who episodes 1080p) the video playback is now smooth, but the longer a scene goes with out alot of motion the more flat spots start to form. Can be verified by playing in any video player in software decode mode that is built with ffmpeg (yes I rebuilt after doing a git build)

version: ffmpeg version N-59422-g828ac6d


#3408 ffmpeg fails to decode aac in mpeg-ts avcodec defect Feb 22, 2014

ffmpeg does not want to play my audio in that video stream while vlc works fine to read the original stream using faad command:

ffmpeg -i dump.ts -map 0 -c:v rawvideo -c:a pcm_s16le -f null -

ffmpeg version N-60700-g07b4b0c built on Feb 17 2014 08:35:59

ffmpeg output:

[h264 @ 0x36e7b60] mmco: unref short failure [aac @ 0x36e85c0] channel element 0.0 is not allocated

Last message repeated 6 times

[h264 @ 0x36e7b60] mmco: unref short failure [aac @ 0x36e85c0] channel element 0.0 is not allocated

Last message repeated 209 times

[mpegts @ 0x36e39c0] decoding for stream 1 failed [mpegts @ 0x36e39c0] PES packet size mismatch [mpegts @ 0x36e39c0] Could not find codec parameters for stream 1 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp, 95 kb/s): unspecified sample rate Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, mpegts, from 'dump.ts':

Duration: 00:00:51.84, start: 33732.762167, bitrate: 933 kb/s Program 26

Metadata:

service_name : my video service_provider:

Stream #0:0[0x33d]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, smpte170m), 544x480 [SAR 40:33 DAR 136:99], 29.75 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x335](spa): Audio: aac ([15][0][0][0] / 0x000F), 0 channels, fltp, 95 kb/s

[abuffer @ 0x37177a0] Value inf for parameter 'time_base' out of range [0 - 2.14748e+09]

Last message repeated 1 times

[abuffer @ 0x37177a0] Error setting option time_base to value 1/0. [graph 1 input from stream 0:1 @ 0x3716a20] Error applying options to the filter


#3442 h264 decoder decodes complete GOP wrong / skips one GOP if stream does not start with SPS/PPS avcodec defect Mar 7, 2014

Summary of the bug:

I recorded a DVB TS stream. It contains an H264 video stream which first NALU is a B slice, followed by the SPS, PPS NALUs and an IDR frame.

If this stream is played with ffplay (either the TS or the demuxed elementary stream), the decoder seems to get so much confused by the leading B slice that the following valid GOP is completely decoded erroneous until the next GOP arrives. ffplay skips the broken frames and starts playing at the second GOP by default. One has to specify -flags2 +showall to see the GOP of broken frames.

If the B slice is removed from the stream, playing starts fine from the first frame/GOP on.

I see that it is intended that ffmpeg tries to decode and conceal every frame coming in, but that should effect only one frame (the B slice) and not the following GOP.

However, I'm not so sure why the B slice is concealed as there is no valid SPS/PPS yet which is mandatory to decode the slice. But that might be a different problem.

Take a h264 stream starting with a B slice, followed by the SPS/PPS/IDR. I uploaded a sample TS file to ftp://upload.ffmpeg.org/MPlayer/incoming/ called DVB_testvideo.ts. One can either play that file or extract the H264 elementary stream and use it directly.

The stream is using PAFF/MBAFF, but I don't know if this is related.

How to reproduce:

% ffplay DVB_testvideo.ts
skips the first valid GOP completely and starts playing from frame 16 onwards.

% ffplay DVB_testvideo.ts -flags2 +showall
starts playing 16 broken frames, then recovers and plays fine.

Now remove the first B slice (skip 17756 from the H264 bitstream or 20304 bytes from the whole TS file).

% ffplay DVB_testvideo.ts
plays fine from the first frame on (15 frames valid frames more then before)

% ffplay DVB_testvideo.ts -flags2 +showall
shows no broken frames anymore


ffmpeg version N-42015-g64e4bd7
built on openSUSE 13.1 (gcc 4.8.1)

#4372 VC-1 decoding results is blockiness avcodec defect Mar 18, 2015

Summary of the bug: When decoding the following VC-1 sample, white blocks appear in the sky: http://forum.videohelp.com/attachments/30774-1426548008/title00%20(1)-002%20(1)-001%20-%20Copy.mkv

No blocks in Microsoft's decoder How to reproduce (no errors in the log):

ffplay "title00%20(1)-002%20(1)-001%20-%20Copy.mkv"
ffplay version N-70148-g418be7c Copyright (c) 2003-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
  libavutil      54. 19.100 / 54. 19.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 23.104 / 56. 23.104
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.101 /  5. 11.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
    nan    :  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
[matroska,webm @ 0000000002cd78e0] Could not find codec parameters for stream 6 (Subtitle: hdmv_pgs_subtitle): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0000000002cd78e0] Could not find codec parameters for stream 7 (Subtitle: hdmv_pgs_subtitle): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0000000002cd78e0] Could not find codec parameters for stream 8 (Subtitle: hdmv_pgs_subtitle): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from 'vc-1_blocks_decoding_error.mkv':
  Metadata:
    encoder         : libebml v1.3.1 + libmatroska v1.4.2
    creation_time   : 2015-03-16 23:17:03
  Duration: 00:00:10.14, start: 0.002000, bitrate: 21597 kb/s
    Chapter #0:0: start 0.000000, end 8.007875
    Metadata:
      title           : Chapter 16
    Chapter #0:1: start 8.007875, end 10.125000
    Metadata:
      title           : Chapter 17
    Stream #0:0(eng): Video: vc1 (Advanced) (WVC1 / 0x31435657), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Metadata:
      _STATISTICS_WRITING_APP: mkvmerge v7.5.0 ('Glass Culture') 32bit built on Jan  4 2015 16:37:25
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.5.0 ('Glass Culture') 32bit built on Jan  4 2015 16:37:25
      _STATISTICS_WRITING_DATE_UTC: 2015-03-16 23:17:03
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-03-16 23:17:03
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      BPS             : 14290400
      BPS-eng         : 14290400
      DURATION        : 00:00:10.135000000
      DURATION-eng    : 00:00:10.135000000
      NUMBER_OF_FRAMES: 243
      NUMBER_OF_FRAMES-eng: 243
      NUMBER_OF_BYTES : 18104151
      NUMBER_OF_BYTES-eng: 18104151
    Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), fltp, 1536 kb/s (default)
    Metadata:
      title           : Surround 7.1
      _STATISTICS_WRITING_APP: mkvmerge v7.5.0 ('Glass Culture') 32bit built on Jan  4 2015 16:37:25
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.5.0 ('Glass Culture') 32bit built on Jan  4 2015 16:37:25
      _STATISTICS_WRITING_DATE_UTC: 2015-03-16 23:17:03
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-03-16 23:17:03
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      BPS             : 5021578
      BPS-eng         : 5021578
      DURATION        : 00:00:10.134000000
      DURATION-eng    : 00:00:10.134000000
      NUMBER_OF_FRAMES: 950
      NUMBER_OF_FRAMES-eng: 950
      NUMBER_OF_BYTES : 6361084
      NUMBER_OF_BYTES-eng: 6361084
    Stream #0:2(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
    Metadata:
      title           : Surround 5.1
      _STATISTICS_WRITING_APP: mkvmerge v7.5.0 ('Glass Culture') 32bit built on Jan  4 2015 16:37:25
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.5.0 ('Glass Culture') 32bit built on Jan  4 2015 16:37:25
      _STATISTICS_WRITING_DATE_UTC: 2015-03-16 23:17:03
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-03-16 23:17:03
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      BPS             : 1508900
      BPS-eng         : 1508900
      DURATION        : 00:00:10.134000000
      DURATION-eng    : 00:00:10.134000000
      NUMBER_OF_FRAMES: 950
      NUMBER_OF_FRAMES-eng: 950
      NUMBER_OF_BYTES : 1911400
      NUMBER_OF_BYTES-eng: 1911400
    Stream #0:3(eng): Audio: dts (DTS), 48000 Hz, stereo, fltp, 256 kb/s
    Metadata:
      title           : Stereo
      _STATISTICS_WRITING_APP: mkvmerge v7.5.0 ('Glass Culture') 32bit built on Jan  4 2015 16:37:25
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.5.0 ('Glass Culture') 32bit built on Jan  4 2015 16:37:25
      _STATISTICS_WRITING_DATE_UTC: 2015-03-16 23:17:03
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-03-16 23:17:03
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      BPS             : 254983
      BPS-eng         : 254983
      DURATION        : 00:00:10.134000000
      DURATION-eng    : 00:00:10.134000000
      NUMBER_OF_FRAMES: 950
      NUMBER_OF_FRAMES-eng: 950
      NUMBER_OF_BYTES : 323000
      NUMBER_OF_BYTES-eng: 323000
    Stream #0:4(eng): Audio: dts (DTS), 48000 Hz, stereo, fltp, 256 kb/s
    Metadata:
      title           : Stereo
      _STATISTICS_WRITING_APP: mkvmerge v7.5.0 ('Glass Culture') 32bit built on Jan  4 2015 16:37:25
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.5.0 ('Glass Culture') 32bit built on Jan  4 2015 16:37:25
      _STATISTICS_WRITING_DATE_UTC: 2015-03-16 23:17:03
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-03-16 23:17:03
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      BPS             : 254983
      BPS-eng         : 254983
      DURATION        : 00:00:10.134000000
      DURATION-eng    : 00:00:10.134000000
      NUMBER_OF_FRAMES: 950
      NUMBER_OF_FRAMES-eng: 950
      NUMBER_OF_BYTES : 323000
      NUMBER_OF_BYTES-eng: 323000
    Stream #0:5(eng): Audio: dts (DTS), 48000 Hz, stereo, fltp, 256 kb/s
    Metadata:
      title           : Stereo
      _STATISTICS_WRITING_APP: mkvmerge v7.5.0 ('Glass Culture') 32bit built on Jan  4 2015 16:37:25
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.5.0 ('Glass Culture') 32bit built on Jan  4 2015 16:37:25
      _STATISTICS_WRITING_DATE_UTC: 2015-03-16 23:17:03
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-03-16 23:17:03
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      BPS             : 254983
      BPS-eng         : 254983
      DURATION        : 00:00:10.134000000
      DURATION-eng    : 00:00:10.134000000
      NUMBER_OF_FRAMES: 950
      NUMBER_OF_FRAMES-eng: 950
      NUMBER_OF_BYTES : 323000
      NUMBER_OF_BYTES-eng: 323000
    Stream #0:6(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      _STATISTICS_WRITING_APP: mkvmerge v7.5.0 ('Glass Culture') 32bit built on Jan  4 2015 16:37:25
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.5.0 ('Glass Culture') 32bit built on Jan  4 2015 16:37:25
      _STATISTICS_WRITING_DATE_UTC: 2015-03-16 23:17:03
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-03-16 23:17:03
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      BPS             : 0
      BPS-eng         : 0
      DURATION        : 00:00:00.000000000
      DURATION-eng    : 00:00:00.000000000
      NUMBER_OF_FRAMES: 0
      NUMBER_OF_FRAMES-eng: 0
      NUMBER_OF_BYTES : 0
      NUMBER_OF_BYTES-eng: 0
    Stream #0:7(spa): Subtitle: hdmv_pgs_subtitle
    Metadata:
      _STATISTICS_WRITING_APP: mkvmerge v7.5.0 ('Glass Culture') 32bit built on Jan  4 2015 16:37:25
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.5.0 ('Glass Culture') 32bit built on Jan  4 2015 16:37:25
      _STATISTICS_WRITING_DATE_UTC: 2015-03-16 23:17:03
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-03-16 23:17:03
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      BPS             : 0
      BPS-eng         : 0
      DURATION        : 00:00:00.000000000
      DURATION-eng    : 00:00:00.000000000
      NUMBER_OF_FRAMES: 0
      NUMBER_OF_FRAMES-eng: 0
      NUMBER_OF_BYTES : 0
      NUMBER_OF_BYTES-eng: 0
    Stream #0:8(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      _STATISTICS_WRITING_APP: mkvmerge v7.5.0 ('Glass Culture') 32bit built on Jan  4 2015 16:37:25
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.5.0 ('Glass Culture') 32bit built on Jan  4 2015 16:37:25
      _STATISTICS_WRITING_DATE_UTC: 2015-03-16 23:17:03
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-03-16 23:17:03
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      BPS             : 0
      BPS-eng         : 0
      DURATION        : 00:00:00.000000000
      DURATION-eng    : 00:00:00.000000000
      NUMBER_OF_FRAMES: 0
      NUMBER_OF_FRAMES-eng: 0
      NUMBER_OF_BYTES : 0
      NUMBER_OF_BYTES-eng: 0
SDL_OpenAudio (6 channels, 48000 Hz): DirectSound CreateSoundBuffer: Invalid parameter
SDL_OpenAudio (4 channels, 48000 Hz): DirectSound CreateSoundBuffer: Invalid parameter
    nan A-V:    nan fd=   0 aq= 1041KB vq= 3453KB sq=    0B f=0/0   

#4544 Problem transcoding 5.1 AAC LATM audio streams avcodec defect May 8, 2015

Summary of the bug: I´ve captured some AAC LATM streams that are being broadcasted (DVB-T) here in Brazil and tried to transcode them using FFmpeg. The stereo streams work fine but the 5.1 streams are generating some error messages during transcode.

Besides that, the resulting file is always a little smaller in duration than the original (when there´s music, you can more easily notice that the resulting audio seems to be playing "faster", due to missed samples I guess).

I´ve found some old tickets related to AAC streams (ticket:1694 and ticket:2335) with similar error messages, and testing the samples provided there also got me the same behaviour.

How to reproduce:

% ffmpeg -report -v 9 -loglevel 99 -i problem_transcoding_5dot1_aac_latm_audio.aac out.wav
ffmpeg version N-71959-g9253cc4
built on 2015-05-07

I have uploaded the problem_transcoding_5dot1_aac_latm_audio.aac file to the "incoming" folder of the FTP. I´ve also uploaded the complete report generated by FFmpeg under the name problem_transcoding_5dot1_aac_latm_audio.log.

Here´s is part of the full report:

ffmpeg started on 2015-05-08 at 15:41:24
Report written to "ffmpeg-20150508-154124.log"
Command line:
ffmpeg -report -v 9 -loglevel 99 -i problem_transcoding_5dot1_aac_latm_audio.aac out.wav
ffmpeg version N-71959-g9253cc4 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
  libavutil      54. 23.101 / 54. 23.101
  libavcodec     56. 37.102 / 56. 37.102
  libavformat    56. 32.100 / 56. 32.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 16.101 /  5. 16.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Splitting the commandline.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option '-v' ... matched as option 'v' (set logging level) with argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
Reading option '-i' ... matched as input file with argument 'problem_transcoding_5dot1_aac_latm_audio.aac'.
Reading option 'out.wav' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Applying option v (set logging level) with argument 9.
Applying option loglevel (set logging level) with argument 99.
Successfully parsed a group of options.
Parsing a group of options: input file problem_transcoding_5dot1_aac_latm_audio.aac.
Successfully parsed a group of options.
Opening an input file: problem_transcoding_5dot1_aac_latm_audio.aac.
[loas @ 0000000002e10200] Format loas probed with size=4096 and score=51
[loas @ 0000000002e10200] Before avformat_find_stream_info() pos: 0 bytes read:32768 seeks:0
[aac_latm @ 0000000002e23000] no decoder config found
[aac_latm @ 0000000002e23000] no decoder config found
[aac_latm @ 0000000002e23000] no decoder config found
[aac_latm @ 0000000002e23000] initializing latmctx
[aac_latm @ 0000000002e23000] channel element 0.2 is not allocated
[aac_latm @ 0000000002e23000] This stream seems to incorrectly report its last channel as LFE[5], mapping to LFE[0]
[aac_latm @ 0000000002e23000] ChannelElement 3.5 missing 
[aac_latm @ 0000000002e23000] ChannelElement 1.2 missing 
[aac_latm @ 0000000002e23000] ChannelElement 1.4 missing 
[loas @ 0000000002e10200] All info found
[loas @ 0000000002e10200] After avformat_find_stream_info() pos: 60416 bytes read:65536 seeks:0 frames:50
Input #0, loas, from 'problem_transcoding_5dot1_aac_latm_audio.aac':
  Duration: N/A, bitrate: N/A
    Stream #0:0, 50, 1/28224000: Audio: aac_latm (HE-AAC), 48000 Hz, 5.1, fltp
Successfully opened the file.
Parsing a group of options: output file out.wav.
Successfully parsed a group of options.
Opening an output file: out.wav.
Successfully opened the file.
detected 8 logical cores
[graph 0 input from stream 0:0 @ 0000000002e2f920] Setting 'time_base' to value '1/48000'
[graph 0 input from stream 0:0 @ 0000000002e2f920] Setting 'sample_rate' to value '48000'
[graph 0 input from stream 0:0 @ 0000000002e2f920] Setting 'sample_fmt' to value 'fltp'
[graph 0 input from stream 0:0 @ 0000000002e2f920] Setting 'channel_layout' to value '0x3f'
[graph 0 input from stream 0:0 @ 0000000002e2f920] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x3f
[audio format for output stream 0:0 @ 0000000002e2eda0] Setting 'sample_fmts' to value 's16'
[audio format for output stream 0:0 @ 0000000002e2eda0] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:0'
[AVFilterGraph @ 0000000002e336e0] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed
[auto-inserted resampler 0 @ 00000000055e0720] ch:6 chl:5.1 fmt:fltp r:48000Hz -> ch:6 chl:5.1 fmt:s16 r:48000Hz
Output #0, wav, to 'out.wav':
  Metadata:
    ISFT            : Lavf56.32.100
    Stream #0:0, 0, 1/48000: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 5.1, s16, 4608 kb/s
    Metadata:
      encoder         : Lavc56.37.102 pcm_s16le
Stream mapping:
  Stream #0:0 -> #0:0 (aac_latm (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
[aac_latm @ 0000000005956020] This stream seems to incorrectly report its last channel as LFE[5], mapping to LFE[0]
[aac_latm @ 0000000005956020] channel element 0.2 is not allocated
Error while decoding stream #0:0: Invalid data found when processing input
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] channel element 0.2 is not allocated
Error while decoding stream #0:0: Invalid data found when processing input
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] channel element 0.2 is not allocated
Error while decoding stream #0:0: Invalid data found when processing input
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
Guessed Channel Layout for  Input Stream #0.0 : 5.1
Input stream #0:0 frame changed from rate:48000 fmt:fltp ch:6 chl:5.1 to rate:48000 fmt:fltp ch:6 chl:5.1
[graph 0 input from stream 0:0 @ 0000000002e2f080] Setting 'time_base' to value '1/48000'
[graph 0 input from stream 0:0 @ 0000000002e2f080] Setting 'sample_rate' to value '48000'
[graph 0 input from stream 0:0 @ 0000000002e2f080] Setting 'sample_fmt' to value 'fltp'
[graph 0 input from stream 0:0 @ 0000000002e2f080] Setting 'channel_layout' to value '0x3f'
[graph 0 input from stream 0:0 @ 0000000002e2f080] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x3f
[audio format for output stream 0:0 @ 0000000002e2fc00] Setting 'sample_fmts' to value 's16'
[audio format for output stream 0:0 @ 0000000002e2fc00] Setting 'sample_rates' to value '48000'
[audio format for output stream 0:0 @ 0000000002e2fc00] Setting 'channel_layouts' to value '0x3f'
[audio format for output stream 0:0 @ 0000000002e2fc00] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:0'
[AVFilterGraph @ 0000000002e336e0] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed
[auto-inserted resampler 0 @ 00000000055e0a00] ch:6 chl:5.1 fmt:fltp r:48000Hz -> ch:6 chl:5.1 fmt:s16 r:48000Hz
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] channel element 0.2 is not allocated
Error while decoding stream #0:0: Invalid data found when processing input
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
Guessed Channel Layout for  Input Stream #0.0 : 5.1
Input stream #0:0 frame changed from rate:48000 fmt:fltp ch:6 chl:5.1 to rate:48000 fmt:fltp ch:6 chl:5.1
[graph 0 input from stream 0:0 @ 0000000002e2f080] Setting 'time_base' to value '1/48000'
[graph 0 input from stream 0:0 @ 0000000002e2f080] Setting 'sample_rate' to value '48000'
[graph 0 input from stream 0:0 @ 0000000002e2f080] Setting 'sample_fmt' to value 'fltp'
[graph 0 input from stream 0:0 @ 0000000002e2f080] Setting 'channel_layout' to value '0x3f'
[graph 0 input from stream 0:0 @ 0000000002e2f080] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x3f
[audio format for output stream 0:0 @ 00000000055e0a00] Setting 'sample_fmts' to value 's16'
[audio format for output stream 0:0 @ 00000000055e0a00] Setting 'sample_rates' to value '48000'
[audio format for output stream 0:0 @ 00000000055e0a00] Setting 'channel_layouts' to value '0x3f'
[audio format for output stream 0:0 @ 00000000055e0a00] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:0'
[AVFilterGraph @ 0000000002e336e0] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed
[auto-inserted resampler 0 @ 0000000002e2fc00] ch:6 chl:5.1 fmt:fltp r:48000Hz -> ch:6 chl:5.1 fmt:s16 r:48000Hz
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] channel element 0.2 is not allocated
Error while decoding stream #0:0: Invalid data found when processing input
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
Guessed Channel Layout for  Input Stream #0.0 : 5.1
Input stream #0:0 frame changed from rate:48000 fmt:fltp ch:6 chl:5.1 to rate:48000 fmt:fltp ch:6 chl:5.1
[graph 0 input from stream 0:0 @ 0000000002e2f640] Setting 'time_base' to value '1/48000'
[graph 0 input from stream 0:0 @ 0000000002e2f640] Setting 'sample_rate' to value '48000'
[graph 0 input from stream 0:0 @ 0000000002e2f640] Setting 'sample_fmt' to value 'fltp'
[graph 0 input from stream 0:0 @ 0000000002e2f640] Setting 'channel_layout' to value '0x3f'
[graph 0 input from stream 0:0 @ 0000000002e2f640] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x3f
[audio format for output stream 0:0 @ 00000000055e0a00] Setting 'sample_fmts' to value 's16'
[audio format for output stream 0:0 @ 00000000055e0a00] Setting 'sample_rates' to value '48000'
[audio format for output stream 0:0 @ 00000000055e0a00] Setting 'channel_layouts' to value '0x3f'
[audio format for output stream 0:0 @ 00000000055e0a00] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:0'
[AVFilterGraph @ 0000000002e336e0] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed
[auto-inserted resampler 0 @ 0000000002e2fc00] ch:6 chl:5.1 fmt:fltp r:48000Hz -> ch:6 chl:5.1 fmt:s16 r:48000Hz
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
[aac_latm @ 0000000005956020] channel element 0.2 is not allocated
Error while decoding stream #0:0: Invalid data found when processing input
[aac_latm @ 0000000005956020] ChannelElement 3.5 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.2 missing 
[aac_latm @ 0000000005956020] ChannelElement 1.4 missing 
Guessed Channel Layout for  Input Stream #0.0 : 5.1
Input stream #0:0 frame changed from rate:48000 fmt:fltp ch:6 chl:5.1 to rate:48000 fmt:fltp ch:6 chl:5.1
[graph 0 input from stream 0:0 @ 0000000002e2fc00] Setting 'time_base' to value '1/48000'
[graph 0 input from stream 0:0 @ 0000000002e2fc00] Setting 'sample_rate' to value '48000'
[graph 0 input from stream 0:0 @ 0000000002e2fc00] Setting 'sample_fmt' to value 'fltp'
[graph 0 input from stream 0:0 @ 0000000002e2fc00] Setting 'channel_layout' to value '0x3f'
[graph 0 input from stream 0:0 @ 0000000002e2fc00] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x3f
[audio format for output stream 0:0 @ 0000000002e0dec0] Setting 'sample_fmts' to value 's16'
[audio format for output stream 0:0 @ 0000000002e0dec0] Setting 'sample_rates' to value '48000'
[audio format for output stream 0:0 @ 0000000002e0dec0] Setting 'channel_layouts' to value '0x3f'
[audio format for output stream 0:0 @ 0000000002e0dec0] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:0'
[AVFilterGraph @ 0000000002e336e0] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed
[auto-inserted resampler 0 @ 0000000002e0df80] ch:6 chl:5.1 fmt:fltp r:48000Hz -> ch:6 chl:5.1 fmt:s16 r:48000Hz

... snipped


#4641 Error decoding SILK frame avcodec defect Jun 18, 2015

When I reproduce the attached MKV file with VP8/Opus it lost audio. FFplay logs the following errors several times:

[opus @ 0x7f952101f400] LBRR frames present; this is unsupported
[opus @ 0x7f952101f400] Error decoding a SILK frame.
[opus @ 0x7f952101f400] Error decoding an Opus frame.

The file was generated live recording a Webrtc session.

Any help welcome, thanks.


#4861 E-AC3 audio glitch : exponent out-of-range avcodec defect Sep 17, 2015

I'm trying to decode an AC3 file extracted from live French TV stream. 3 audio glitches can be heard in the sample file.

During conversion, error logs are returned.

$ ffmpeg -i audio_ac3_glitch.ac3 audio_test.wav
ffmpeg version 2.7 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: 
  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 41.100 / 56. 41.100
  libavformat    56. 36.100 / 56. 36.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 16.101 /  5. 16.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
[eac3 @ 0xa387a00] Estimating duration from bitrate, this may be inaccurate
Input #0, eac3, from 'audio_ac3_glitch.ac3':
  Duration: 00:00:45.57, start: 0.000000, bitrate: 127 kb/s
    Stream #0:0: Audio: eac3, 48000 Hz, stereo, fltp, 128 kb/s
Output #0, wav, to 'audio_test.wav':
  Metadata:
    ISFT            : Lavf56.36.100
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s
    Metadata:
      encoder         : Lavc56.41.100 pcm_s16le
Stream mapping:
  Stream #0:0 -> #0:0 (eac3 (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
[eac3 @ 0xa388be0] exponent out-of-range
[eac3 @ 0xa388be0] error decoding the audio block
[eac3 @ 0xa388be0] exponent out-of-range
[eac3 @ 0xa388be0] error decoding the audio block
[eac3 @ 0xa388be0] exponent out-of-range
[eac3 @ 0xa388be0] error decoding the audio block
[eac3 @ 0xa388be0] incomplete frame
size=    8550kB time=00:00:45.60 bitrate=1536.0kbits/s    
video:0kB audio:8550kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000891%

Same errors occur when trying to stream this file using a GSTreamer pipeline :

gst-launch-1.0 -v --gst-debug-level=3 filesrc location=./audio_ac3_glitch.ac3 ! ac3parse ! avdec_eac3 ! audioconvert ! playsink

We can notice that the errors seem related to audio glitches heard.

I've tried to modify the code in file libavcodec/ac3dec.c in function ac3_decode_frame() where trying to decode the audio blocks generates the log "error decoding the audio block\n". Without success.


#5105 MPEG-4 asp corrupted after bitstream error avcodec defect Dec 24, 2015

Summary of the bug:

mplayer/ffplay plays the down below video - but I can ffmpeg the video to a valid video.

How to reproduce: Transcoding to anything (wmv/h264/...) produces a corrupt result.

wget http://doppelbauer.name/3LaSaletteLeSecret.mp4
/usr/local/bin/ffmpeg -i 3LaSaletteLeSecret.mp4 -r 0.1 -c:v mjpeg /tmp/images/%d.jpg

The first error is not an issue. The problem is the second one - which permantly repeats and produces corrupt pictures. Full output has about ~30 MB, so it is cuted. Maybe the problem is a color change in the middle of the video.

ffmpeg version 2.8.4 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
  configuration: --prefix=/usr/local --enable-gpl --enable-version3 --enable-nonfree --enable-bzlib --enable-zlib --enable-openssl --enable-libx264 --enable-libfdk-aac --enable-libmp3lame --enable-libvpx --enable-libopus
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3497440] stream 0, timescale not set
[mjpeg @ 0x349d620] ignoring invalid SAR: 64/45                                                                                                                                                             
[mjpeg @ 0x349d620] Changeing bps to 8
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'queue-nu3yMP8yxFK-1.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    track           : 1
    comment         : www.dvdvideosoft.com
    date            : 2014
    encoder         : Lavf54.59.107
  Duration: 01:16:12.08, start: 0.023022, bitrate: 1696 kb/s
    Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 800x600 [SAR 4:3 DAR 16:9], 1500 kb/s, 24 fps, 24 tbr, 12288 tbn, 24 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 192 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
    Stream #0:2: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 720x576, 90k tbr, 90k tbn, 90k tbc
[swscaler @ 0x34c5b80] deprecated pixel format used, make sure you did set range correctly
Output #0, image2, to '/tmp/images/%d.jpg':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    track           : 1
    comment         : www.dvdvideosoft.com
    date            : 2014
    encoder         : Lavf56.40.101
    Stream #0:0(und): Video: mjpeg, yuvj420p(pc), 800x600 [SAR 4:3 DAR 16:9], q=2-31, 200 kb/s, 0.10 fps, 0.10 tbn, 0.10 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      encoder         : Lavc56.60.100 mjpeg
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg4 (native) -> mjpeg (native))
Press [q] to stop, [?] for help
[mpeg4 @ 0x3517640] Error at MB: 833ime=00:02:50.00 bitrate=N/A dup=0 drop=3620    
[mpeg4 @ 0x3517640] marker does not match f_code
    Last message repeated 7 times
[mpeg4 @ 0x3517640] I cbpc damaged at 19 15
[mpeg4 @ 0x3517640] Error at MB: 784
[mpeg4 @ 0x3517640] marker does not match f_code
    Last message repeated 1 times
[mpeg4 @ 0x3517640] I cbpc damaged at 37 30
[mpeg4 @ 0x3517640] Error at MB: 1567
Marker bit missing at 266309 of 372200 before time_increment in video packed header
Marker bit missing at 266315 of 372200 before vop_coding_type in video packed header
[mpeg4 @ 0x3517640] I cbpy damaged at 42 35
[mpeg4 @ 0x3517640] Error at MB: 1827
[mpeg4 @ 0x3517640] marker does not match f_code
    Last message repeated 10 times
[mpeg4 @ 0x3517640] illegal mb_num in video packet (2019 1900) 
[mpeg4 @ 0x3517640] marker does not match f_code
Marker bit missing at 333128 of 372200 before time_increment in video packed header
Marker bit missing at 333134 of 372200 before vop_coding_type in video packed header
[mpeg4 @ 0x3517640] 1. marker bit missing in 3. esc
[mpeg4 @ 0x3517640] Error at MB: 89
[mpeg4 @ 0x3517640] marker does not match f_code
    Last message repeated 12 times
Marker bit missing at 360667 of 372200 before time_increment in video packed header
[mpeg4 @ 0x3517640] ac-tex damaged at 24 27
[mpeg4 @ 0x3517640] Error at MB: 1401
[mpeg4 @ 0x3517640] concealing 1900 DC, 1900 AC, 1900 MV errors in I frame
[mpeg4 @ 0x351a860] header damaged
[mpeg4 @ 0x351da60] header damaged
[mpeg4 @ 0x3520d80] header damaged
Error while decoding stream #0:0: Operation not permitted
    Last message repeated 2 times
[mpeg4 @ 0x3520d80] illegal chroma format0:22:00.00 bitrate=N/A dup=0 drop=31052    
[mpeg4 @ 0x3520d80] only rectangular vol supported
Marker bit missing at 5044 of 20120 before time_increment_resolution
[mpeg4 @ 0x3520d80] 18 sprite_warping_points
[mpeg4 @ 0x3520d80] header damaged
[mpeg4 @ 0x3516ea0] header damaged
[mpeg4 @ 0x3517640] header damaged
[mpeg4 @ 0x351a860] header damaged
Error while decoding stream #0:0: Invalid data found when processing input
[mpeg4 @ 0x351da60] header damaged
Error while decoding stream #0:0: Operation not permitted
[mpeg4 @ 0x3520d80] only rectangular vol supported
Marker bit missing at 26825 of 28280 before fixed_vop_rate
[mpeg4 @ 0x3520d80] N-bit not supported
[mpeg4 @ 0x3520d80] quant precision 1
Marker bit missing at 26865 of 28280 in complexity estimation part 1
[mpeg4 @ 0x3520d80] reduced resolution VOP not supported
[mpeg4 @ 0x3520d80] header damaged
Error while decoding stream #0:0: Operation not permitted
[mpeg4 @ 0x3516ea0] only rectangular vol supported
Marker bit missing at 1762 of 554696 before fixed_vop_rate
Marker bit missing at 9858 of 554696 before fixed_vop_rate
Marker bit missing at 9873 of 554696 before width
Marker bit missing at 9901 of 554696 after height
[mpeg4 @ 0x3516ea0] Static Sprites not supported
Marker bit missing at 9918 of 554696 after sprite_width
Marker bit missing at 9932 of 554696 after sprite_height
Marker bit missing at 9946 of 554696 after sprite_left
Marker bit missing at 9960 of 554696 after sprite_top
[mpeg4 @ 0x3516ea0] 57 sprite_warping_points
[mpeg4 @ 0x3516ea0] Reverting picture dimensions change due to header decoding failure
[mpeg4 @ 0x3516ea0] header damaged
Error while decoding stream #0:0: Operation not permitted
    Last message repeated 1 times
[mpeg4 @ 0x3517640] Error at MB: 348
[mpeg4 @ 0x3517640] marker does not match f_code
    Last message repeated 1 times
[mpeg4 @ 0x3517640] concealing 1900 DC, 1900 AC, 1900 MV errors in P frame
Error while decoding stream #0:0: Operation not permitted
Error while decoding stream #0:0: Invalid data found when processing input
[mpeg4 @ 0x3520d80] marker missing after first P partition at 0 38
[mpeg4 @ 0x3520d80] concealing 1900 DC, 1900 AC, 1900 MV errors in P frame
[mpeg4 @ 0x349bd20] has_b_frames is larger in decoder than demuxer 1 > 0.
If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)ac-tex damaged at 43 8
[mpeg4 @ 0x351a860] Error at MB: 451
[mpeg4 @ 0x351a860] marker does not match f_code
    Last message repeated 1 times
[mpeg4 @ 0x351a860] concealing 1900 DC, 1900 AC, 1900 MV errors in P frame
[mpeg4 @ 0x351da60] ac-tex damaged at 37 7
[mpeg4 @ 0x351da60] Error at MB: 394
[mpeg4 @ 0x351da60] marker does not match f_code
    Last message repeated 1 times
[mpeg4 @ 0x351da60] concealing 1900 DC, 1900 AC, 1900 MV errors in P frame
[mpeg4 @ 0x349bd20] has_b_frames is larger in decoder than demuxer 1 > 0.
If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)has_b_frames is larger in decoder than demuxer 1 > 0.                                                                                                                                                                                                        
If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)ac-tex damaged at 13 3

#5128 null pointer passed as argument in av_packet_ref() avcodec defect Jan 7, 2016

Summary of the bug: UBSan: libavcodec/avpacket.c:566:32: runtime error: null pointer passed as argument 2, which is declared to never be null

How to reproduce:

% ffmpeg -f ivf -i <test_case> -f null -
ffmpeg version N-77718-g72673ad Copyright (c) 2000-2016 the FFmpeg developers
  built with Ubuntu clang version 3.7.1-svn253742-1~exp1 (branches/release_37) (based on LLVM 3.7.1)
  configuration: --cc=clang --cxx=clang++ --disable-libxcb --disable-xlib --disable-logging --disable-ffprobe --disable-ffplay --disable-sdl --disable-ffserver --disable-doc --disable-pthreads --disable-network --disable-d3d11va --disable-dxva2 --disable-vaapi --disable-vda --disable-vdpau --disable-stripping --disable-runtime-cpudetect --disable-securetransport --disable-iconv
  libavutil      55. 12.100 / 55. 12.100
  libavcodec     57. 22.100 / 57. 22.100
  libavformat    57. 21.101 / 57. 21.101
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 23.100 /  6. 23.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
[vp8 @ 0x619000005a80] Warning: not compiled with thread support, using thread emulation
Input #0, ivf, from '/home/user/Desktop/vpx/corpus/15d591cfc299e559f570fa445ba91fb768230159':
  Duration: 00:00:00.10, start: 0.000000, bitrate: 115 kb/s
    Stream #0:0: Video: vp8 (VP80 / 0x30385056), yuv420p, 5696x36, 30 tbr, 30 tbn, 30 tbc
[wrapped_avframe @ 0x619000003780] Warning: not compiled with thread support, using thread emulation
[vp8 @ 0x619000004180] Warning: not compiled with thread support, using thread emulation
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf57.21.101
    Stream #0:0: Video: wrapped_avframe, yuv420p, 5696x36, q=2-31, 200 kb/s, 30 fps, 30 tbn, 30 tbc
    Metadata:
      encoder         : Lavc57.22.100 wrapped_avframe
Stream mapping:
  Stream #0:0 -> #0:0 (vp8 (native) -> wrapped_avframe (native))
Press [q] to stop, [?] for help
Input stream #0:0 frame changed from size:5696x36 fmt:yuv420p to size:64x36 fmt:yuv420p
DTS -212200375451618, next:33333 st:0 invalid dropping
PTS -212200375451618, next:33333 invalid dropping st:0
[vp8 @ 0x619000004180] Invalid partitions
Error while decoding stream #0:0: Invalid data found when processing input
libavcodec/avpacket.c:566:32: runtime error: null pointer passed as argument 2, which is declared to never be null
/usr/include/string.h:47:28: note: nonnull attribute specified here
    #0 0xd11745 in av_packet_ref /home/user/code/ffmpeg/libavcodec/avpacket.c:566:9
    #1 0xc0bb7f in ff_read_packet /home/user/code/ffmpeg/libavformat/utils.c:702:19
    #2 0xc112dc in read_frame_internal /home/user/code/ffmpeg/libavformat/utils.c:1343:15
    #3 0xc1079a in av_read_frame /home/user/code/ffmpeg/libavformat/utils.c:1504:17
    #4 0x594311 in process_input /home/user/code/ffmpeg/ffmpeg.c:3758:11
    #5 0x5726c6 in transcode_step /home/user/code/ffmpeg/ffmpeg.c:4068:11
    #6 0x5726c6 in transcode /home/user/code/ffmpeg/ffmpeg.c:4122
    #7 0x56f73c in main /home/user/code/ffmpeg/ffmpeg.c:4314:9
    #8 0x7fce5cfe2ec4 in __libc_start_main /build/buildd/eglibc-2.19/csu/libc-start.c:287
    #9 0x466445 in _start (/home/user/Desktop/ffmpeg/ffmpeg_full+0x466445)

#5224 Excessive memory use in H.264 decoder with threading enabled avcodec defect Feb 9, 2016

Given a stream with gaps in frame_num, the threaded decoder may allocate many more frames than it should. (Up to thread count * num_ref_frames whole frame buffers.)

See attached stream.

This has parameters:

  • Baseline profile
  • num_ref_frames = 16
  • log2_max_frame_num_minus4 = 12
  • gaps_in_frame_num_value_allowed_flag = 1

The stream is then a single IDR frame of black, followed by all-skip P frames with frame_num decreasing by one each time (65535, 65534, ...).

Decode this stream with:

% ffmpeg -v 55 -vsync 0 -threads 8 -thread_type frame+slice -i large_frame_num_gaps.264 -f null -

Virtual memory use is much higher than expected, though this is rather hard to see. (Since the frames are never actually touched, the real memory use is not excessive.)

To see the problem more effectively, apply the following patch to instrument malloc/free:

diff --git a/libavutil/mem.c b/libavutil/mem.c
index 8dfaad8..bddb0d1 100644
--- a/libavutil/mem.c
+++ b/libavutil/mem.c
@@ -69,6 +69,7 @@ void  free(void *ptr);
  * Note that this will cost performance. */
 
 static size_t max_alloc_size= INT_MAX;
+static void *big_mem_list[100];
 
 void av_max_alloc(size_t max){
     max_alloc_size = max;
@@ -139,6 +140,18 @@ void *av_malloc(size_t size)
     if (ptr)
         memset(ptr, FF_MEMORY_POISON, size);
 #endif
+
+#if 1
+    if(size > 1000000) {
+        int i;
+        av_log(0, AV_LOG_DEBUG, "malloc(%zu) = %p\n", size, ptr);
+        for(i = 0; i < FF_ARRAY_ELEMS(big_mem_list) && big_mem_list[i]; i++);
+        if(i >= FF_ARRAY_ELEMS(big_mem_list))
+            av_assert0(0 && "Too many big allocations.");
+        big_mem_list[i] = ptr;
+    }
+#endif
+
     return ptr;
 }
 
@@ -227,6 +240,19 @@ int av_reallocp_array(void *ptr, size_t nmemb, size_t size)
 
 void av_free(void *ptr)
 {
+#if 1
+    if(ptr) {
+        int i;
+        for(i = 0; i < FF_ARRAY_ELEMS(big_mem_list); i++) {
+            if(big_mem_list[i] == ptr) {
+                av_log(0, AV_LOG_DEBUG, "free(%p)\n", ptr);
+                big_mem_list[i] = 0;
+                break;
+            }
+        }
+    }
+#endif
+
 #if CONFIG_MEMALIGN_HACK
     if (ptr) {
         int v= ((char *)ptr)[-1];

Now the first command will abort with threads = 8 (and not with threads = 1), because it tries to allocate more than 100 frame buffers.


#5243 MPEG1 decoding error avcodec defect Feb 18, 2016

Old mpeg1 file decoding error... Windows builtin decoder is fine.

Sample is.... https://www.dropbox.com/s/xsu1dt5zn31jpzs/FBOW05XX_broken.rar?dl=0

Error message is... MPEG motion vector out of boundary (314 217) MPEG motion vector out of boundary (330 217) ac-tex damaged at 16 12 MPEG motion vector out of boundary (315 130) MPEG motion vector out of boundary (315 124) end mismatch left=679 149A62 Header missing MPEG motion vector out of boundary (311 224) MPEG motion vector out of boundary (327 224) MPEG motion vector out of boundary (352 243) MPEG motion vector out of boundary (368 243) MPEG motion vector out of boundary (384 243) MPEG motion vector out of boundary (400 243) end mismatch left=222 4A4451 Warning MVs not available concealing 60 DC, 60 AC, 60 MV errors in B frame slice mismatch MPEG motion vector out of boundary (-5 82) mb incr damaged MPEG motion vector out of boundary (306 78) MPEG motion vector out of boundary (33023 32863) MPEG motion vector out of boundary (33023 32863) mb incr damaged MPEG motion vector out of boundary (270 32863) MPEG motion vector out of boundary (286 32863) MPEG motion vector out of boundary (302 32863) ac-tex damaged at 0 7 MPEG motion vector out of boundary (-2 129) MPEG motion vector out of boundary (-2 145) MPEG motion vector out of boundary (-2 160) .... ....


#5258 ffmpeg fails to decode opus test vectors correctly avcodec defect Feb 22, 2016

taken from https://trac.ffmpeg.org/ticket/5238#comment:3

ffmpeg fails to decode opus test vectors correctly, in especially: http://people.xiph.org/~greg/opus_testvectors/correctness_trimming_nobeeps.opus

even using ffmpeg git:

$ ./ffmpeg -i correctness_trimming_nobeeps.opus correctness_trimming_nobeeps.wav  
ffmpeg version N-78622-g2b5b001 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.1 (Debian 5.3.1-9) 20160220
  configuration: --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv --enable-version3 --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libvo_amrwbenc
  libavutil      55. 18.100 / 55. 18.100
  libavcodec     57. 24.105 / 57. 24.105
  libavformat    57. 26.100 / 57. 26.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 34.100 /  6. 34.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, ogg, from 'correctness_trimming_nobeeps.opus':
  Duration: 00:00:12.72, start: 0.000000, bitrate: 40 kb/s
    Stream #0:0: Audio: opus, 48000 Hz, mono, fltp
    Metadata:
      ENCODER         : Xiph.Org Opus testvectormaker
      TESTDESCRIPTION : Beeps at the beginning and end of this stream MUST be hidden by preskip and end-trimming.
                      : If the beeps are heard the decoder is broken.
Output #0, wav, to 'correctness_trimming_nobeeps.wav':
  Metadata:
    ISFT            : Lavf57.26.100
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, mono, s16, 768 kb/s
    Metadata:
      TESTDESCRIPTION : Beeps at the beginning and end of this stream MUST be hidden by preskip and end-trimming.
                      : If the beeps are heard the decoder is broken.
      encoder         : Lavc57.24.105 pcm_s16le
Stream mapping:
  Stream #0:0 -> #0:0 (opus (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
size=    1193kB time=00:00:11.35 bitrate= 860.4kbits/s speed= 211x    
video:0kB audio:1193kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.006388%

the resulting WAV files still contains the beep


#5405 ffv1 in 2 pass mode creates corrupted files when bit depth > 8 avcodec defect Apr 5, 2016

Summary of the bug: When source video has more than 8 bits per component and ffv1 codec is used in 2 pass mode, resulting file is corrupted.

ffmpeg started on 2016-04-05 at 21:14:34
Report written to "ffmpeg-20160405-211434.log"
Command line:
./ffmpeg-N-79243-g54c9146 -report -i zz.yuv420p10le.nut -c:v ffv1 -g 1 -slices 4 -coder 1 -context 1 -pass 1 -f null -
ffmpeg version N-79243-g54c9146 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
  configuration: --prefix=/home/xxxxxx/Programy/ffmpeg/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/xxxxxx/Programy/ffmpeg/ffmpeg_build/include --extra-ldflags=-L/home/xxxxxx/Programy/ffmpeg/ffmpeg_build/lib --bindir=/home/xxxxxx/Programy/ffmpeg/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --enable-x11grab --enable-libsoxr --disable-ffserver --enable-libschroedinger --enable-libopenjpeg
  libavutil      55. 20.100 / 55. 20.100
  libavcodec     57. 33.100 / 57. 33.100
  libavformat    57. 29.101 / 57. 29.101
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 40.102 /  6. 40.102
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Splitting the commandline.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option '-i' ... matched as input file with argument 'zz.yuv420p10le.nut'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'ffv1'.
Reading option '-g' ... matched as AVOption 'g' with argument '1'.
Reading option '-slices' ... matched as AVOption 'slices' with argument '4'.
Reading option '-coder' ... matched as AVOption 'coder' with argument '1'.
Reading option '-context' ... matched as AVOption 'context' with argument '1'.
Reading option '-pass' ... matched as option 'pass' (select the pass number (1 to 3)) with argument '1'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'null'.
Reading option '-' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file zz.yuv420p10le.nut.
Successfully parsed a group of options.
Opening an input file: zz.yuv420p10le.nut.
[file @ 0x32bd8a0] Setting default whitelist 'file,crypto'
[nut @ 0x32bd020] Format nut probed with size=2048 and score=100
[nut @ 0x32bd020] Before avformat_find_stream_info() pos: 261 bytes read:32953 seeks:3
[nut @ 0x32bd020] Probe buffer size limit of 5000000 bytes reached
[nut @ 0x32bd020] After avformat_find_stream_info() pos: 5530081 bytes read:5562773 seeks:3 frames:8
Input #0, nut, from 'zz.yuv420p10le.nut':
  Metadata:
    encoder         : Lavf57.25.100
  Duration: 00:00:00.97, start: 0.000000, bitrate: 171619 kb/s
    Stream #0:0, 8, 1/61440: Video: rawvideo (Y3[11][10] / 0xA0B3359), yuv420p10le, 640x360, 30 fps, 30 tbr, 61440 tbn, 61440 tbc
    Metadata:
      encoder         : Lavc57.24.102 rawvideo
Successfully opened the file.
Parsing a group of options: output file -.
Applying option c:v (codec name) with argument ffv1.
Applying option pass (select the pass number (1 to 3)) with argument 1.
Applying option f (force format) with argument null.
Successfully parsed a group of options.
Opening an output file: -.
Successfully opened the file.
detected 4 logical cores
[graph 0 input from stream 0:0 @ 0x32c0d60] Setting 'video_size' to value '640x360'
[graph 0 input from stream 0:0 @ 0x32c0d60] Setting 'pix_fmt' to value '72'
[graph 0 input from stream 0:0 @ 0x32c0d60] Setting 'time_base' to value '1/61440'
[graph 0 input from stream 0:0 @ 0x32c0d60] Setting 'pixel_aspect' to value '0/1'
[graph 0 input from stream 0:0 @ 0x32c0d60] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:0 @ 0x32c0d60] Setting 'frame_rate' to value '30/1'
[graph 0 input from stream 0:0 @ 0x32c0d60] w:640 h:360 pixfmt:yuv420p10le tb:1/61440 fr:30/1 sar:0/1 sws_param:flags=2
[format @ 0x32c26c0] compat: called with args=[yuv420p|yuva420p|yuva422p|yuv444p|yuva444p|yuv440p|yuv422p|yuv411p|yuv410p|bgr0|bgra|yuv420p16le|yuv422p16le|yuv444p16le|yuv444p9le|yuv422p9le|yuv420p9le|yuv420p10le|yuv422p10le|yuv444p10le|yuva444p16le|yuva422p16le|yuva420p16le|yuva444p10le|yuva422p10le|yuva420p10le|yuva444p9le|yuva422p9le|yuva420p9le|gray16le|gray|gbrp9le|gbrp10le|gbrp12le|gbrp14le|ya8]
[format @ 0x32c26c0] Setting 'pix_fmts' to value 'yuv420p|yuva420p|yuva422p|yuv444p|yuva444p|yuv440p|yuv422p|yuv411p|yuv410p|bgr0|bgra|yuv420p16le|yuv422p16le|yuv444p16le|yuv444p9le|yuv422p9le|yuv420p9le|yuv420p10le|yuv422p10le|yuv444p10le|yuva444p16le|yuva422p16le|yuva420p16le|yuva444p10le|yuva422p10le|yuva420p10le|yuva444p9le|yuva422p9le|yuva420p9le|gray16le|gray|gbrp9le|gbrp10le|gbrp12le|gbrp14le|ya8'
[AVFilterGraph @ 0x32c12c0] query_formats: 4 queried, 3 merged, 0 already done, 0 delayed
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf57.29.101
    Stream #0:0, 0, 1/30: Video: ffv1, yuv420p10le, 640x360, q=2-31, pass 1, 200 kb/s, 30 fps, 30 tbn, 30 tbc
    Metadata:
      encoder         : Lavc57.33.100 ffv1
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> ffv1 (native))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[rawvideo @ 0x32c41e0] PACKET SIZE: 691200, STRIDE: 1920
[output stream 0:0 @ 0x32c21e0] EOF on sink link output stream 0:0:default.
No more output streams to write to, finishing.
frame=   30 fps=0.0 q=-0.0 Lsize=N/A time=00:00:01.00 bitrate=N/A speed=2.57x    
video:6227kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Input file #0 (zz.yuv420p10le.nut):
  Input stream #0:0 (video): 30 packets read (20736000 bytes); 30 frames decoded; 
  Total: 30 packets (20736000 bytes) demuxed
Output file #0 (pipe:):
  Output stream #0:0 (video): 30 frames encoded; 30 packets muxed (6376408 bytes); 
  Total: 30 packets (6376408 bytes) muxed
30 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x32c5b40] Statistics: 20770003 bytes read, 3 seeks
ffmpeg started on 2016-04-05 at 21:14:39
Report written to "ffmpeg-20160405-211439.log"
Command line:
./ffmpeg-N-79243-g54c9146 -report -i zz.yuv420p10le.nut -c:v ffv1 -g 1 -slices 4 -coder 1 -context 1 -pass 2 zz.yuv420p10le.ffv1.2p.mkv
ffmpeg version N-79243-g54c9146 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
  configuration: --prefix=/home/xxxxxx/Programy/ffmpeg/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/xxxxxx/Programy/ffmpeg/ffmpeg_build/include --extra-ldflags=-L/home/xxxxxx/Programy/ffmpeg/ffmpeg_build/lib --bindir=/home/xxxxxx/Programy/ffmpeg/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree --enable-x11grab --enable-libsoxr --disable-ffserver --enable-libschroedinger --enable-libopenjpeg
  libavutil      55. 20.100 / 55. 20.100
  libavcodec     57. 33.100 / 57. 33.100
  libavformat    57. 29.101 / 57. 29.101
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 40.102 /  6. 40.102
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Splitting the commandline.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option '-i' ... matched as input file with argument 'zz.yuv420p10le.nut'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'ffv1'.
Reading option '-g' ... matched as AVOption 'g' with argument '1'.
Reading option '-slices' ... matched as AVOption 'slices' with argument '4'.
Reading option '-coder' ... matched as AVOption 'coder' with argument '1'.
Reading option '-context' ... matched as AVOption 'context' with argument '1'.
Reading option '-pass' ... matched as option 'pass' (select the pass number (1 to 3)) with argument '2'.
Reading option 'zz.yuv420p10le.ffv1.2p.mkv' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file zz.yuv420p10le.nut.
Successfully parsed a group of options.
Opening an input file: zz.yuv420p10le.nut.
[file @ 0x3be5740] Setting default whitelist 'file,crypto'
[nut @ 0x3be4fa0] Format nut probed with size=2048 and score=100
[nut @ 0x3be4fa0] Before avformat_find_stream_info() pos: 261 bytes read:32953 seeks:3
[nut @ 0x3be4fa0] Probe buffer size limit of 5000000 bytes reached
[nut @ 0x3be4fa0] After avformat_find_stream_info() pos: 5530081 bytes read:5562773 seeks:3 frames:8
Input #0, nut, from 'zz.yuv420p10le.nut':
  Metadata:
    encoder         : Lavf57.25.100
  Duration: 00:00:00.97, start: 0.000000, bitrate: 171619 kb/s
    Stream #0:0, 8, 1/61440: Video: rawvideo (Y3[11][10] / 0xA0B3359), yuv420p10le, 640x360, 30 fps, 30 tbr, 61440 tbn, 61440 tbc
    Metadata:
      encoder         : Lavc57.24.102 rawvideo
Successfully opened the file.
Parsing a group of options: output file zz.yuv420p10le.ffv1.2p.mkv.
Applying option c:v (codec name) with argument ffv1.
Applying option pass (select the pass number (1 to 3)) with argument 2.
Successfully parsed a group of options.
Opening an output file: zz.yuv420p10le.ffv1.2p.mkv.
[file @ 0x3be90c0] Setting default whitelist 'file,crypto'
[AVIOContext @ 0x3be9320] Statistics: 1246868 bytes read, 0 seeks
[file @ 0x3be9320] Setting default whitelist 'file,crypto'
Successfully opened the file.
detected 4 logical cores
[graph 0 input from stream 0:0 @ 0x3bea5e0] Setting 'video_size' to value '640x360'
[graph 0 input from stream 0:0 @ 0x3bea5e0] Setting 'pix_fmt' to value '72'
[graph 0 input from stream 0:0 @ 0x3bea5e0] Setting 'time_base' to value '1/61440'
[graph 0 input from stream 0:0 @ 0x3bea5e0] Setting 'pixel_aspect' to value '0/1'
[graph 0 input from stream 0:0 @ 0x3bea5e0] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:0 @ 0x3bea5e0] Setting 'frame_rate' to value '30/1'
[graph 0 input from stream 0:0 @ 0x3bea5e0] w:640 h:360 pixfmt:yuv420p10le tb:1/61440 fr:30/1 sar:0/1 sws_param:flags=2
[format @ 0x3beb400] compat: called with args=[yuv420p|yuva420p|yuva422p|yuv444p|yuva444p|yuv440p|yuv422p|yuv411p|yuv410p|bgr0|bgra|yuv420p16le|yuv422p16le|yuv444p16le|yuv444p9le|yuv422p9le|yuv420p9le|yuv420p10le|yuv422p10le|yuv444p10le|yuva444p16le|yuva422p16le|yuva420p16le|yuva444p10le|yuva422p10le|yuva420p10le|yuva444p9le|yuva422p9le|yuva420p9le|gray16le|gray|gbrp9le|gbrp10le|gbrp12le|gbrp14le|ya8]
[format @ 0x3beb400] Setting 'pix_fmts' to value 'yuv420p|yuva420p|yuva422p|yuv444p|yuva444p|yuv440p|yuv422p|yuv411p|yuv410p|bgr0|bgra|yuv420p16le|yuv422p16le|yuv444p16le|yuv444p9le|yuv422p9le|yuv420p9le|yuv420p10le|yuv422p10le|yuv444p10le|yuva444p16le|yuva422p16le|yuva420p16le|yuva444p10le|yuva422p10le|yuva420p10le|yuva444p9le|yuva422p9le|yuva420p9le|gray16le|gray|gbrp9le|gbrp10le|gbrp12le|gbrp14le|ya8'
[AVFilterGraph @ 0x3be97a0] query_formats: 4 queried, 3 merged, 0 already done, 0 delayed
Output #0, matroska, to 'zz.yuv420p10le.ffv1.2p.mkv':
  Metadata:
    encoder         : Lavf57.29.101
    Stream #0:0, 0, 1/1000: Video: ffv1 (FFV1 / 0x31564646), yuv420p10le, 640x360, q=2-31, pass 2, 200 kb/s, 30 fps, 1k tbn, 30 tbc
    Metadata:
      encoder         : Lavc57.33.100 ffv1
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> ffv1 (native))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
Clipping frame in rate conversion by 0.000008
[matroska @ 0x3bec6c0] Writing block at offset 44549, size 197710, pts 0, dts 0, duration 33, keyframe 1
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
[matroska @ 0x3bec6c0] Starting new cluster at offset 242267 bytes, pts 33dts 33
[matroska @ 0x3bec6c0] Writing block at offset 242282, size 197638, pts 33, dts 33, duration 33, keyframe 1
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
[matroska @ 0x3bec6c0] Starting new cluster at offset 439928 bytes, pts 67dts 67
[matroska @ 0x3bec6c0] Writing block at offset 439943, size 197595, pts 67, dts 67, duration 33, keyframe 1
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
[matroska @ 0x3bec6c0] Starting new cluster at offset 637546 bytes, pts 100dts 100
[matroska @ 0x3bec6c0] Writing block at offset 637561, size 197594, pts 100, dts 100, duration 33, keyframe 1
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
[matroska @ 0x3bec6c0] Starting new cluster at offset 835163 bytes, pts 133dts 133
[matroska @ 0x3bec6c0] Writing block at offset 835178, size 197583, pts 133, dts 133, duration 33, keyframe 1
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
[matroska @ 0x3bec6c0] Starting new cluster at offset 1032769 bytes, pts 167dts 167
[matroska @ 0x3bec6c0] Writing block at offset 1032784, size 197666, pts 167, dts 167, duration 33, keyframe 1
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
[matroska @ 0x3bec6c0] Starting new cluster at offset 1230458 bytes, pts 200dts 200
[matroska @ 0x3bec6c0] Writing block at offset 1230473, size 197438, pts 200, dts 200, duration 33, keyframe 1
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
[matroska @ 0x3bec6c0] Starting new cluster at offset 1427919 bytes, pts 233dts 233
[matroska @ 0x3bec6c0] Writing block at offset 1427934, size 197692, pts 233, dts 233, duration 33, keyframe 1
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
[matroska @ 0x3bec6c0] Starting new cluster at offset 1625634 bytes, pts 267dts 267
[matroska @ 0x3bec6c0] Writing block at offset 1625650, size 197427, pts 267, dts 267, duration 33, keyframe 1
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
[matroska @ 0x3bec6c0] Starting new cluster at offset 1823085 bytes, pts 300dts 300
[matroska @ 0x3bec6c0] Writing block at offset 1823101, size 197370, pts 300, dts 300, duration 33, keyframe 1
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
[matroska @ 0x3bec6c0] Starting new cluster at offset 2020479 bytes, pts 333dts 333
[matroska @ 0x3bec6c0] Writing block at offset 2020495, size 197243, pts 333, dts 333, duration 33, keyframe 1
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
[matroska @ 0x3bec6c0] Starting new cluster at offset 2217746 bytes, pts 367dts 367
[matroska @ 0x3bec6c0] Writing block at offset 2217762, size 197125, pts 367, dts 367, duration 33, keyframe 1
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
[matroska @ 0x3bec6c0] Starting new cluster at offset 2414895 bytes, pts 400dts 400
[matroska @ 0x3bec6c0] Writing block at offset 2414911, size 197184, pts 400, dts 400, duration 33, keyframe 1
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
[matroska @ 0x3bec6c0] Starting new cluster at offset 2612103 bytes, pts 433dts 433
[matroska @ 0x3bec6c0] Writing block at offset 2612119, size 196930, pts 433, dts 433, duration 33, keyframe 1
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
[matroska @ 0x3bec6c0] Starting new cluster at offset 2809057 bytes, pts 467dts 467
[matroska @ 0x3bec6c0] Writing block at offset 2809073, size 197074, pts 467, dts 467, duration 33, keyframe 1
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
[matroska @ 0x3bec6c0] Starting new cluster at offset 3006155 bytes, pts 500dts 500
[matroska @ 0x3bec6c0] Writing block at offset 3006171, size 197049, pts 500, dts 500, duration 33, keyframe 1
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
[matroska @ 0x3bec6c0] Starting new cluster at offset 3203228 bytes, pts 533dts 533
[matroska @ 0x3bec6c0] Writing block at offset 3203244, size 197085, pts 533, dts 533, duration 33, keyframe 1
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
[matroska @ 0x3bec6c0] Starting new cluster at offset 3400337 bytes, pts 567dts 567
[matroska @ 0x3bec6c0] Writing block at offset 3400353, size 196944, pts 567, dts 567, duration 33, keyframe 1
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
[matroska @ 0x3bec6c0] Starting new cluster at offset 3597305 bytes, pts 600dts 600
[matroska @ 0x3bec6c0] Writing block at offset 3597321, size 196816, pts 600, dts 600, duration 33, keyframe 1
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
[matroska @ 0x3bec6c0] Starting new cluster at offset 3794145 bytes, pts 633dts 633
[matroska @ 0x3bec6c0] Writing block at offset 3794161, size 196795, pts 633, dts 633, duration 33, keyframe 1
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
[matroska @ 0x3bec6c0] Starting new cluster at offset 3990964 bytes, pts 667dts 667
[matroska @ 0x3bec6c0] Writing block at offset 3990980, size 196658, pts 667, dts 667, duration 33, keyframe 1
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
[matroska @ 0x3bec6c0] Starting new cluster at offset 4187646 bytes, pts 700dts 700
[matroska @ 0x3bec6c0] Writing block at offset 4187662, size 196425, pts 700, dts 700, duration 33, keyframe 1
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
[matroska @ 0x3bec6c0] Starting new cluster at offset 4384095 bytes, pts 733dts 733
[matroska @ 0x3bec6c0] Writing block at offset 4384111, size 196295, pts 733, dts 733, duration 33, keyframe 1
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
[matroska @ 0x3bec6c0] Starting new cluster at offset 4580414 bytes, pts 767dts 767
[matroska @ 0x3bec6c0] Writing block at offset 4580430, size 196140, pts 767, dts 767, duration 33, keyframe 1
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
[matroska @ 0x3bec6c0] Starting new cluster at offset 4776578 bytes, pts 800dts 800
[matroska @ 0x3bec6c0] Writing block at offset 4776594, size 196158, pts 800, dts 800, duration 33, keyframe 1
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
[matroska @ 0x3bec6c0] Starting new cluster at offset 4972760 bytes, pts 833dts 833
[matroska @ 0x3bec6c0] Writing block at offset 4972776, size 196099, pts 833, dts 833, duration 33, keyframe 1
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
[matroska @ 0x3bec6c0] Starting new cluster at offset 5168883 bytes, pts 867dts 867
[matroska @ 0x3bec6c0] Writing block at offset 5168899, size 195996, pts 867, dts 867, duration 33, keyframe 1
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
[matroska @ 0x3bec6c0] Starting new cluster at offset 5364903 bytes, pts 900dts 900
[matroska @ 0x3bec6c0] Writing block at offset 5364919, size 195813, pts 900, dts 900, duration 33, keyframe 1
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
[matroska @ 0x3bec6c0] Starting new cluster at offset 5560740 bytes, pts 933dts 933
[matroska @ 0x3bec6c0] Writing block at offset 5560756, size 195814, pts 933, dts 933, duration 33, keyframe 1
[rawvideo @ 0x3bec220] PACKET SIZE: 691200, STRIDE: 1920
[matroska @ 0x3bec6c0] Starting new cluster at offset 5756578 bytes, pts 967dts 967
[matroska @ 0x3bec6c0] Writing block at offset 5756594, size 195604, pts 967, dts 967, duration 33, keyframe 1
[output stream 0:0 @ 0x3beadc0] EOF on sink link output stream 0:0:default.
No more output streams to write to, finishing.
[matroska @ 0x3bec6c0] end duration = 1000
[matroska @ 0x3bec6c0] stream 0 end duration = 1000
frame=   30 fps=0.0 q=-0.0 Lsize=    5813kB time=00:00:01.00 bitrate=47622.2kbits/s speed=3.95x    
video:5769kB audio:0kB subtitle:0kB other streams:0kB global headers:43kB muxing overhead: 0.775678%
Input file #0 (zz.yuv420p10le.nut):
  Input stream #0:0 (video): 30 packets read (20736000 bytes); 30 frames decoded; 
  Total: 30 packets (20736000 bytes) demuxed
Output file #0 (zz.yuv420p10le.ffv1.2p.mkv):
  Output stream #0:0 (video): 30 frames encoded; 30 packets muxed (5906960 bytes); 
  Total: 30 packets (5906960 bytes) muxed
30 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x3be91a0] Statistics: 223 seeks, 355 writeouts
[AVIOContext @ 0x3beda20] Statistics: 20770003 bytes read, 3 seeks

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.


#5514 Interlaced HEVC Steam not Decoded Properly avcodec defect May 5, 2016

Summary of the bug:

I have a 480i interlaced HEVC elementary stream. The HM reference decoder decodes the stream and generates 720x480 interlaced frames. FFMPEG/FFPLAY decodes the stream and 720x240 progressive frames and FFPLAY plays them at half the frame rate with the first/second field/frames bouncing up and down a line because these are actually 2 different fields of the same frame.

How to reproduce:

ffmpeg -i src13_interlaced.265 src13_interaced.yuv
ffplay src13_interlaced.265


$ ffmpeg -i src13_interlaced.265 src13_interaced.yuv
ffmpeg version git-2016-04-27-7bccbee-VF Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-16)
  configuration: --extra-version=VF --prefix=/mnt/kermit/work/git/ort/build/linux64/stage/ffmpeg --ld=/usr/bin/cc --target-os=linux --arch=x86_64 --cpu=x86_64 --enable-pic --enable-static --enable-shared --enable-rpath --enable-avfilter --enable-pthreads --enable-zlib --enable-bzlib --enable-runtime-cpudetect --enable-hardcoded-tables --disable-stripping --disable-doc --disable-dxva2 --disable-vaapi --disable-vda --disable-vdpau --yasmexe=/mnt/kermit/work/git/ort/build/linux64/tools/yasm/bin/yasm --sdl-config=/mnt/kermit/work/git/ort/build/linux64/stage/sdl/lib/../bin/sdl-config --extra-cflags='-I/mnt/kermit/work/git/ort/build/linux64/stage/zlib/include -I/mnt/kermit/work/git/ort/build/linux64/stage/bzip2/include -I/mnt/kermit/work/git/ort/build/linux64/stage/lzma/include -I/mnt/kermit/work/git/ort/build/linux64/stage/sdl/include -DVFBUILD_DISABLE_INTMATH_OPTIMIZATIONS=1' --extra-ldflags='-L/mnt/kermit/work/git/ort/build/linux64/stage/zlib/lib -L/mnt/kermit/work/git/ort/build/linux64/stage/bzip2/lib -L/mnt/kermit/work/git/ort/build/linux64/stage/lzma/lib -L/mnt/kermit/work/git/ort/build/linux64/stage/sdl/lib'
  libavutil      55. 19.100 / 55. 19.100
  libavcodec     57. 28.203 / 57. 28.203
  libavformat    57. 29.200 / 57. 29.200
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 39.202 /  6. 39.202
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
VFAVUtil_MetaData_RunUnitTests() Completed Successfully.
Input #0, hevc, from 'src13_interlaced.265':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: hevc (Main), yuv420p(tv), 720x240, 30 fps, 30 tbr, 1200k tbn, 30 tbc
Output #0, rawvideo, to 'src13_interaced.yuv':
  Metadata:
    encoder         : Lavf57.29.200
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x240, q=2-31, 200 kb/s, 30 fps, 30 tbn, 30 tbc
    Metadata:
      encoder         : Lavc57.28.203 rawvideo
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> rawvideo (native))
Press [q] to stop, [?] for help
frame=  336 fps=0.0 q=-0.0 size=   85050kB time=00:00:11.20 bitrate=62208.0kbitsframe=  337 fps=263 q=-0.0 size=   85303kB time=00:00:11.23 bitrate=62208.0kbitsframe=  522 fps=337 q=-0.0 Lsize=  132131kB time=00:00:17.40 bitrate=62208.0kbits/s speed=11.2x    
video:132131kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%


#5533 Unable to decode some H.264 stream on seeking avcodec defect May 10, 2016

Link to file - ​https://yadi.sk/i/SwTnylRerayJL Summary of the bug: Unable decoding if seeking after opening file. How to reproduce:

ffplay.exe CSI.Cyber.S02E12.720p.HDTV.HamsterStudio.org.mkv
ffplay version N-79883-g38eeb85 Copyright (c) 2003-2016 the FFmpeg developers
  built with gcc 5.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
  libavutil      55. 24.100 / 55. 24.100
  libavcodec     57. 40.100 / 57. 40.100
  libavformat    57. 36.100 / 57. 36.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 45.100 /  6. 45.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Input #0, matroska,webm, from 'CSI.Cyber.S02E12.720p.HDTV.HamsterStudio.org.mkv':
  Metadata:
    encoder         : libebml v1.3.1 + libmatroska v1.4.2
    creation_time   : 2016-02-22 17:09:39
  Duration: 00:41:58.75, start: 0.000000, bitrate: 4666 kb/s
    Stream #0:0: Video: h264 (Main), yuv420p(tv), 1280x720 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default)
    Metadata:
      BPS             : 3896559
      BPS-eng         : 3896559
      DURATION        : 00:41:58.641000000
      DURATION-eng    : 00:41:58.641000000
      NUMBER_OF_FRAMES: 60387    nan    :  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0
      NUMBER_OF_FRAMES-eng: 60387
      NUMBER_OF_BYTES : 1226754179
      NUMBER_OF_BYTES-eng: 1226754179
      _STATISTICS_WRITING_APP: mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
      _STATISTICS_WRITING_DATE_UTC: 2016-02-22 17:09:39
      _STATISTICS_WRITING_DATE_UTC-eng: 2016-02-22 17:09:39
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1: Subtitle: ass (default) (forced)
    Metadata:
      BPS             : 2
      BPS-eng         : 2
      DURATION        : 00:40:39.000000000
      DURATION-eng    : 00:40:39.000000000
      NUMBER_OF_FRAMES: 3
      NUMBER_OF_FRAMES-eng: 3
      NUMBER_OF_BYTES : 645
      NUMBER_OF_BYTES-eng: 645
      _STATISTICS_WRITING_APP: mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
      _STATISTICS_WRITING_DATE_UTC: 2016-02-22 17:09:39
      _STATISTICS_WRITING_DATE_UTC-eng: 2016-02-22 17:09:39
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:2(rus): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default) (forced)
    Metadata:
      title           : HamsterStudio.org
      BPS             : 384000
      BPS-eng         : 384000
      DURATION        : 00:41:58.752000000
      DURATION-eng    : 00:41:58.752000000
      NUMBER_OF_FRAMES: 78711
      NUMBER_OF_FRAMES-eng: 78711
      NUMBER_OF_BYTES : 120900096
      NUMBER_OF_BYTES-eng: 120900096
      _STATISTICS_WRITING_APP: mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
      _STATISTICS_WRITING_DATE_UTC: 2016-02-22 17:09:39
      _STATISTICS_WRITING_DATE_UTC-eng: 2016-02-22 17:09:39
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:3(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
    Metadata:
      BPS             : 384000
      BPS-eng         : 384000
      DURATION        : 00:41:58.752000000
      DURATION-eng    : 00:41:58.752000000
      NUMBER_OF_FRAMES: 78711
      NUMBER_OF_FRAMES-eng: 78711
      NUMBER_OF_BYTES : 120900096
      NUMBER_OF_BYTES-eng: 120900096
      _STATISTICS_WRITING_APP: mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
      _STATISTICS_WRITING_DATE_UTC: 2016-02-22 17:09:39
      _STATISTICS_WRITING_DATE_UTC-eng: 2016-02-22 17:09:39
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
SDL_OpenAudio (6 channels, 48000 Hz): DirectSound CreateSoundBuffer: Invalid parameter
SDL_OpenAudio (4 channels, 48000 Hz): DirectSound CreateSoundBuffer: Invalid parameter
Seek to 37% ( 0:15:32) of total duration ( 0:41:58)       B f=0/0
[h264 @ 05e32c60] deblocking_filter_idc 19 out of range  0B f=0/0
[h264 @ 05e32c60] decode_slice_header error
[h264 @ 058130e0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 058130e0] illegal modification_of_pic_nums_idc 6
[h264 @ 058130e0] decode_slice_header error
[h264 @ 058134e0] mmco: unref short failure2939KB sq=    0B f=0/0
[h264 @ 058134e0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 058134e0] illegal modification_of_pic_nums_idc 31
[h264 @ 058134e0] decode_slice_header error
[h264 @ 0580c5a0] mmco: unref short failure
[h264 @ 0580c5a0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 0580c5a0] co located POCs unavailable
[h264 @ 0580c5a0] Reference 3 >= 3
[h264 @ 0580c5a0] error while decoding MB 48 1, bytestream 21219
[h264 @ 0580c5a0] concealing 3521 DC, 3521 AC, 3521 MV errors in B frame
[h264 @ 0580c9c0] Missing reference picture, default is 65568
    Last message repeated 4 times
[h264 @ 0580c9c0] co located POCs unavailable77KB sq=    0B f=0/0
[h264 @ 0580c9c0] concealing 3580 DC, 3580 AC, 3580 MV errors in B frame
[h264 @ 055cf9e0] illegal modification_of_pic_nums_idc 4
[h264 @ 055cf9e0] decode_slice_header error
[h264 @ 058b0220] illegal modification_of_pic_nums_idc 5
[h264 @ 058b0220] decode_slice_header error
[h264 @ 055dcea0] reference picture missing during reorder
    Last message repeated 1 times
[h264 @ 055dcea0] reference count overflow
[h264 @ 055dcea0] decode_slice_header error
[h264 @ 055dbe80] mmco: unref short failure2775KB sq=    0B f=0/0
[h264 @ 055dbe80] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 055dbe80] reference picture missing during reorder
    Last message repeated 1 times
[h264 @ 055dbe80] reference count overflow
[h264 @ 055dbe80] decode_slice_header error
[h264 @ 05e32c60] mmco: unref short failure
[h264 @ 05e32c60] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 05e32c60] illegal modification_of_pic_nums_idc 8
[h264 @ 05e32c60] decode_slice_header error
[h264 @ 058130e0] mmco: unref short failure4159KB sq=    0B f=0/0
[h264 @ 058130e0] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 058130e0] illegal modification_of_pic_nums_idc 8
[h264 @ 058130e0] decode_slice_header error
[h264 @ 058134e0] illegal memory management control operation 32
[h264 @ 058134e0] deblocking_filter_idc 4 out of range
[h264 @ 058134e0] decode_slice_header error
[h264 @ 0580c5a0] mmco: unref short failure
[h264 @ 0580c5a0] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 0580c5a0] Missing reference picture, default is 65365
    Last message repeated 5 times
[h264 @ 0580c5a0] co located POCs unavailable
[h264 @ 0580c9c0] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 0580c5a0] concealing 3538 DC, 3538 AC, 3538 MV errors in B frame
[h264 @ 0580c9c0] reference picture missing during reorder
    Last message repeated 3 times
[h264 @ 0580c9c0] reference count overflow
[h264 @ 0580c9c0] decode_slice_header error
[h264 @ 055cf9e0] reference picture missing during reorderB f=0/0
    Last message repeated 2 times
[h264 @ 055cf9e0] reference count overflow
[h264 @ 055cf9e0] decode_slice_header error
[h264 @ 058b0220] mmco: unref short failure4109KB sq=    0B f=0/0
[h264 @ 058b0220] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 058b0220] illegal long ref in memory management control operation 4
[h264 @ 058b0220] co located POCs unavailable
[h264 @ 058b0220] Reference 3 >= 3
[h264 @ 058b0220] error while decoding MB 12 0, bytestream 100676
[h264 @ 055dcea0] mmco: unref short failure
[h264 @ 058b0220] concealing 3600 DC, 3600 AC, 3600 MV errors in B frame
[h264 @ 055dcea0] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 055dcea0] illegal modification_of_pic_nums_idc 8
[h264 @ 055dcea0] decode_slice_header error
[h264 @ 055dbe80] illegal modification_of_pic_nums_idc 7 0B f=0/0
[h264 @ 055dbe80] decode_slice_header error
[h264 @ 05e32c60] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 05e32c60] reference count overflow
[h264 @ 05e32c60] decode_slice_header error
[h264 @ 058130e0] illegal modification_of_pic_nums_idc 31
[h264 @ 058130e0] decode_slice_header error
[h264 @ 058134e0] mmco: unref short failure
[h264 @ 058134e0] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 058134e0] reference picture missing during reorder
[h264 @ 058134e0] reference count overflow
[h264 @ 058134e0] decode_slice_header error
[h264 @ 0580c5a0] mmco: unref short failure
[h264 @ 0580c5a0] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 0580c5a0] illegal modification_of_pic_nums_idc 8 0B f=0/0
[h264 @ 0580c5a0] decode_slice_header error
[h264 @ 0580c9c0] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 0580c9c0] reference count overflow
[h264 @ 0580c9c0] decode_slice_header error
[h264 @ 055cf9e0] mmco: unref short failure
[h264 @ 055cf9e0] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 055cf9e0] reference count overflow
[h264 @ 055cf9e0] decode_slice_header error
[h264 @ 058b0220] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 058b0220] reference count overflow
[h264 @ 058b0220] decode_slice_header error
[h264 @ 055dcea0] mmco: unref short failure4017KB sq=    0B f=0/0
[h264 @ 055dcea0] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 055dcea0] illegal modification_of_pic_nums_idc 4
[h264 @ 055dcea0] decode_slice_header error
[h264 @ 055dbe80] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 055dbe80] reference count overflow
[h264 @ 055dbe80] decode_slice_header error
[h264 @ 05e32c60] mmco: unref short failure
[h264 @ 05e32c60] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 05e32c60] reference picture missing during reorder
[h264 @ 05e32c60] reference count overflow
[h264 @ 05e32c60] decode_slice_header error
[h264 @ 058130e0] mmco: unref short failure3949KB sq=    0B f=0/0
[h264 @ 058130e0] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 058130e0] illegal long ref in memory management control operation 4
[h264 @ 058130e0] co located POCs unavailable
[h264 @ 058134e0] mmco: unref short failure
[h264 @ 058134e0] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 058130e0] Reference 4 >= 3
[h264 @ 058130e0] error while decoding MB 50 0, bytestream 41419
[h264 @ 058134e0] illegal modification_of_pic_nums_idc 130B f=0/0
[h264 @ 058134e0] decode_slice_header error
[h264 @ 058130e0] concealing 3599 DC, 3599 AC, 3599 MV errors in B frame
[h264 @ 0580c5a0] illegal modification_of_pic_nums_idc 4
[h264 @ 0580c5a0] decode_slice_header error
[h264 @ 0580c9c0] illegal modification_of_pic_nums_idc 31
[h264 @ 0580c9c0] decode_slice_header error
[h264 @ 055cf9e0] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 055cf9e0] illegal memory management control operation 7
[h264 @ 055cf9e0] co located POCs unavailable
[h264 @ 058b0220] mmco: unref short failure
[h264 @ 058b0220] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 055cf9e0] concealing 3564 DC, 3564 AC, 3564 MV errors in B frame
[h264 @ 058b0220] reference picture missing during reorder
    Last message repeated 3 times
[h264 @ 058b0220] reference count overflow
[h264 @ 058b0220] decode_slice_header error
[h264 @ 055dcea0] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 055dcea0] reference count overflow
[h264 @ 055dcea0] decode_slice_header error
[h264 @ 055dbe80] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 055dbe80] illegal memory management control operation 7
[h264 @ 055dbe80] co located POCs unavailable
[h264 @ 05e32c60] mmco: unref short failure3783KB sq=    0B f=0/0
[h264 @ 055dbe80] concealing 3595 DC, 3595 AC, 3595 MV errors in B frame
[h264 @ 05e32c60] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 05e32c60] reference picture missing during reorder
    Last message repeated 3 times
[h264 @ 05e32c60] reference count overflow
[h264 @ 05e32c60] decode_slice_header error
[h264 @ 058130e0] reference picture missing during reorder
    Last message repeated 1 times
[h264 @ 058130e0] reference count overflow
[h264 @ 058130e0] decode_slice_header error
[h264 @ 058134e0] mmco: unref short failure3789KB sq=    0B f=0/0
[h264 @ 058134e0] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 058134e0] reference picture missing during reorder
[h264 @ 058134e0] reference count overflow
[h264 @ 058134e0] decode_slice_header error
[h264 @ 0580c5a0] mmco: unref short failure
[h264 @ 0580c5a0] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 0580c5a0] reference picture missing during reorder
[h264 @ 0580c5a0] reference count overflow
[h264 @ 0580c5a0] decode_slice_header error
[h264 @ 0580c9c0] mmco: unref short failure3832KB sq=    0B f=0/0
[h264 @ 0580c9c0] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 0580c9c0] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 0580c9c0] reference count overflow
[h264 @ 0580c9c0] decode_slice_header error
[h264 @ 055cf9e0] mmco: unref short failure
[h264 @ 055cf9e0] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 055cf9e0] illegal long ref in memory management control operation 4
[h264 @ 055cf9e0] co located POCs unavailable
[h264 @ 058b0220] mmco: unref short failure3803KB sq=    0B f=0/0
[h264 @ 058b0220] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 055cf9e0] Reference 4 >= 3
[h264 @ 055cf9e0] error while decoding MB 24 0, bytestream 63783
[h264 @ 058b0220] illegal modification_of_pic_nums_idc 8
[h264 @ 058b0220] decode_slice_header error
[h264 @ 055cf9e0] concealing 3600 DC, 3600 AC, 3600 MV errors in B frame
[h264 @ 055dcea0] reference count overflow
[h264 @ 055dcea0] decode_slice_header error
[h264 @ 055dbe80] illegal modification_of_pic_nums_idc 31
[h264 @ 055dbe80] decode_slice_header error
[h264 @ 05e32c60] mmco: unref short failure
[h264 @ 05e32c60] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 05e32c60] illegal long ref in memory management control operation 4
[h264 @ 05e32c60] co located POCs unavailable
[h264 @ 05e32c60] top block unavailable for requested intra mode
[h264 @ 05e32c60] error while decoding MB 8 0, bytestream 171920
[h264 @ 058130e0] mmco: unref short failure
[h264 @ 058130e0] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 05e32c60] concealing 3600 DC, 3600 AC, 3600 MV errors in B frame
[h264 @ 058130e0] illegal modification_of_pic_nums_idc 8 0B f=0/0
[h264 @ 058130e0] decode_slice_header error
[h264 @ 058134e0] illegal modification_of_pic_nums_idc 9
[h264 @ 058134e0] decode_slice_header error
[h264 @ 0580c5a0] illegal modification_of_pic_nums_idc 8
[h264 @ 0580c5a0] decode_slice_header error
[h264 @ 0580c9c0] illegal modification_of_pic_nums_idc 31
[h264 @ 0580c9c0] decode_slice_header error
[h264 @ 055cf9e0] mmco: unref short failure
[h264 @ 055cf9e0] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 055cf9e0] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 055cf9e0] reference count overflow
[h264 @ 055cf9e0] decode_slice_header error
[h264 @ 058b0220] mmco: unref short failure3712KB sq=    0B f=0/0
[h264 @ 058b0220] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 058b0220] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 058b0220] reference count overflow
[h264 @ 058b0220] decode_slice_header error
[h264 @ 055dcea0] mmco: unref short failure
[h264 @ 055dcea0] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 055dcea0] reference picture missing during reorderB f=0/0
    Last message repeated 2 times
[h264 @ 055dcea0] reference count overflow
[h264 @ 055dcea0] decode_slice_header error
[h264 @ 055dbe80] mmco: unref short failure
[h264 @ 055dbe80] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 055dbe80] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 055dbe80] reference count overflow
[h264 @ 055dbe80] decode_slice_header error
[h264 @ 05e32c60] mmco: unref short failure
[h264 @ 05e32c60] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 05e32c60] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 05e32c60] reference count overflow
[h264 @ 05e32c60] decode_slice_header error
[h264 @ 058130e0] mmco: unref short failure3692KB sq=    0B f=0/0
[h264 @ 058130e0] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one
[h264 @ 058130e0] illegal modification_of_pic_nums_idc 4
[h264 @ 058130e0] decode_slice_header error
[h264 @ 058134e0] top block unavailable for requested intra mode -1
[h264 @ 058134e0] error while decoding MB 0 0, bytestream 132421
[h264 @ 0580c5a0] illegal long ref in memory management control operation 3
[h264 @ 058134e0] concealing 3600 DC, 3600 AC, 3600 MV errors in I frame
[h264 @ 0580c9c0] mmco: unref short failure
[h264 @ 0580c9c0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 0580c5a0] top block unavailable for requested intra mode
[h264 @ 0580c9c0] illegal modification_of_pic_nums_idc 4
[h264 @ 0580c9c0] decode_slice_header error
[h264 @ 0580c5a0] error while decoding MB 16 0, bytestream 42174
[h264 @ 055cf9e0] mmco: unref short failure
[h264 @ 055cf9e0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 0580c5a0] concealing 3600 DC, 3600 AC, 3600 MV errors in P frame
[h264 @ 055cf9e0] illegal modification_of_pic_nums_idc 4
[h264 @ 055cf9e0] decode_slice_header error
[h264 @ 058b0220] illegal modification_of_pic_nums_idc 4 0B f=0/0
[h264 @ 058b0220] decode_slice_header error
[h264 @ 055dcea0] reference picture missing during reorder
[h264 @ 055dcea0] illegal modification_of_pic_nums_idc 4
[h264 @ 055dcea0] decode_slice_header error
[h264 @ 055dbe80] reference picture missing during reorder
[h264 @ 055dbe80] illegal modification_of_pic_nums_idc 4
[h264 @ 055dbe80] decode_slice_header error
[h264 @ 05e32c60] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 05e32c60] reference count overflow
[h264 @ 05e32c60] decode_slice_header error
[h264 @ 058130e0] mmco: unref short failure3652KB sq=    0B f=0/0
[h264 @ 058130e0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 058130e0] illegal memory management control operation 12
[h264 @ 058130e0] co located POCs unavailable
[h264 @ 058130e0] deblocking_filter_idc 4 out of range
[h264 @ 058130e0] decode_slice_header error
[h264 @ 058134e0] mmco: unref short failure
[h264 @ 058134e0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 058134e0] reference picture missing during reorder
[h264 @ 058134e0] illegal modification_of_pic_nums_idc 4
[h264 @ 058134e0] decode_slice_header error
[h264 @ 0580c5a0] reference picture missing during reorderB f=0/0
    Last message repeated 1 times
[h264 @ 0580c5a0] reference count overflow
[h264 @ 0580c5a0] decode_slice_header error
[h264 @ 0580c9c0] mmco: unref short failure
[h264 @ 0580c9c0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 0580c9c0] reference picture missing during reorder
[h264 @ 0580c9c0] illegal modification_of_pic_nums_idc 4
[h264 @ 0580c9c0] decode_slice_header error
[h264 @ 055cf9e0] reference count overflow
[h264 @ 055cf9e0] decode_slice_header error
[h264 @ 058b0220] mmco: unref short failure
[h264 @ 058b0220] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 058b0220] illegal modification_of_pic_nums_idc 7
[h264 @ 058b0220] decode_slice_header error
[h264 @ 055dcea0] mmco: unref short failure
[h264 @ 055dcea0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 055dcea0] illegal modification_of_pic_nums_idc 7 0B f=0/0
[h264 @ 055dcea0] decode_slice_header error
[h264 @ 055dbe80] illegal modification_of_pic_nums_idc 7
[h264 @ 055dbe80] decode_slice_header error
[h264 @ 05e32c60] reference picture missing during reorder
[h264 @ 05e32c60] illegal modification_of_pic_nums_idc 4
[h264 @ 05e32c60] decode_slice_header error
[h264 @ 058130e0] illegal modification_of_pic_nums_idc 4
[h264 @ 058130e0] decode_slice_header error
[h264 @ 058134e0] illegal modification_of_pic_nums_idc 31
[h264 @ 058134e0] decode_slice_header error
[h264 @ 0580c5a0] mmco: unref short failure3609KB sq=    0B f=0/0
[h264 @ 0580c5a0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 0580c5a0] reference picture missing during reorder
[h264 @ 0580c5a0] illegal modification_of_pic_nums_idc 4
[h264 @ 0580c5a0] decode_slice_header error
[h264 @ 0580c9c0] cabac_init_idc 4 overflow
[h264 @ 0580c9c0] decode_slice_header error
[h264 @ 055cf9e0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 055cf9e0] reference picture missing during reorder
    Last message repeated 1 times
[h264 @ 055cf9e0] reference count overflow
[h264 @ 055cf9e0] decode_slice_header error
[h264 @ 058b0220] mmco: unref short failure3491KB sq=    0B f=0/0
[h264 @ 058b0220] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 058b0220] reference picture missing during reorder
    Last message repeated 1 times
[h264 @ 058b0220] reference count overflow
[h264 @ 058b0220] decode_slice_header error
[h264 @ 055dcea0] mmco: unref short failure
[h264 @ 055dcea0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 055dcea0] reference picture missing during reorder
    Last message repeated 1 times
[h264 @ 055dcea0] reference count overflow
[h264 @ 055dcea0] decode_slice_header error
[h264 @ 055dbe80] mmco: unref short failure3501KB sq=    0B f=0/0
[h264 @ 055dbe80] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 055dbe80] reference picture missing during reorder
    Last message repeated 1 times
[h264 @ 055dbe80] reference count overflow
[h264 @ 055dbe80] decode_slice_header error
[h264 @ 05e32c60] mmco: unref short failure
[h264 @ 05e32c60] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 05e32c60] reference picture missing during reorderB f=0/0
[h264 @ 05e32c60] illegal modification_of_pic_nums_idc 4
[h264 @ 05e32c60] decode_slice_header error
[h264 @ 058130e0] illegal memory management control operation 32
[h264 @ 058130e0] cabac_init_idc 6 overflow
[h264 @ 058130e0] decode_slice_header error
[h264 @ 058134e0] mmco: unref short failure
[h264 @ 058134e0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 058134e0] reference picture missing during reorder
    Last message repeated 3 times
[h264 @ 058134e0] reference count overflow
[h264 @ 058134e0] decode_slice_header error
[h264 @ 0580c5a0] cabac_init_idc 32 overflow539KB sq=    0B f=0/0
[h264 @ 0580c5a0] decode_slice_header error
[h264 @ 0580c9c0] reference picture missing during reorder
    Last message repeated 1 times
[h264 @ 0580c9c0] reference count overflow
[h264 @ 0580c9c0] decode_slice_header error
[h264 @ 055cf9e0] mmco: unref short failure
[h264 @ 055cf9e0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 055cf9e0] Missing reference picture, default is 66199
[h264 @ 055cf9e0] co located POCs unavailable
[h264 @ 055cf9e0] deblocking_filter_idc 4 out of range
[h264 @ 055cf9e0] decode_slice_header error
[h264 @ 058b0220] top block unavailable for requested intra mode -1
[h264 @ 058b0220] error while decoding MB 0 0, bytestream 125232
[h264 @ 055dcea0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 058b0220] concealing 3600 DC, 3600 AC, 3600 MV errors in I frame
[h264 @ 055dcea0] top block unavailable for requested intra mode -1
[h264 @ 055dbe80] illegal modification_of_pic_nums_idc 8
[h264 @ 055dbe80] decode_slice_header error
[h264 @ 055dcea0] error while decoding MB 5 0, bytestream 60140
[h264 @ 05e32c60] mmco: unref short failure
[h264 @ 05e32c60] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 055dcea0] Cannot use next picture in error concealment
[h264 @ 05e32c60] illegal modification_of_pic_nums_idc 6
[h264 @ 05e32c60] decode_slice_header error
[h264 @ 055dcea0] concealing 3600 DC, 3600 AC, 3600 MV errors in P frame
[h264 @ 058130e0] illegal modification_of_pic_nums_idc 6 0B f=0/0
[h264 @ 058130e0] decode_slice_header error
[h264 @ 058134e0] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 058134e0] reference count overflow
[h264 @ 058134e0] decode_slice_header error
[h264 @ 0580c5a0] mmco: unref short failure
[h264 @ 0580c5a0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 0580c5a0] co located POCs unavailable
[h264 @ 0580c5a0] deblocking filter parameters -66 -6 out of range
[h264 @ 0580c5a0] decode_slice_header error
[h264 @ 0580c9c0] reference picture missing during reorder
[h264 @ 0580c9c0] illegal modification_of_pic_nums_idc 4
[h264 @ 0580c9c0] decode_slice_header error
[h264 @ 055cf9e0] reference picture missing during reorder
[h264 @ 055cf9e0] illegal modification_of_pic_nums_idc 4
[h264 @ 055cf9e0] decode_slice_header error
[h264 @ 058b0220] reference picture missing during reorderB f=0/0
    Last message repeated 2 times
[h264 @ 058b0220] reference count overflow
[h264 @ 058b0220] decode_slice_header error
[h264 @ 055dcea0] mmco: unref short failure
[h264 @ 055dcea0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 055dcea0] illegal modification_of_pic_nums_idc 5
[h264 @ 055dcea0] decode_slice_header error
[h264 @ 055dbe80] mmco: unref short failure
[h264 @ 055dbe80] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 055dbe80] illegal modification_of_pic_nums_idc 5
[h264 @ 055dbe80] decode_slice_header error
[h264 @ 05e32c60] illegal modification_of_pic_nums_idc 5
[h264 @ 05e32c60] decode_slice_header error
[h264 @ 058130e0] co located POCs unavailable
[h264 @ 058134e0] cabac_init_idc 32 overflow
[h264 @ 058134e0] decode_slice_header error
[h264 @ 058130e0] Reference 3 >= 3
[h264 @ 058130e0] error while decoding MB 32 2, bytestream 12023
[h264 @ 0580c5a0] Missing reference picture, default is 65175
    Last message repeated 1 times
[h264 @ 058130e0] concealing 3457 DC, 3457 AC, 3457 MV errors in B frame
[h264 @ 0580c5a0] co located POCs unavailable
[h264 @ 0580c5a0] deblocking_filter_idc 4 out of range
[h264 @ 0580c5a0] decode_slice_header error
[h264 @ 0580c9c0] illegal modification_of_pic_nums_idc 7
[h264 @ 0580c9c0] decode_slice_header error
[h264 @ 055cf9e0] illegal modification_of_pic_nums_idc 7
[h264 @ 055cf9e0] decode_slice_header error
[h264 @ 058b0220] illegal modification_of_pic_nums_idc 4
[h264 @ 058b0220] decode_slice_header error
[h264 @ 055dcea0] illegal modification_of_pic_nums_idc 31
[h264 @ 055dcea0] decode_slice_header error
[h264 @ 055dbe80] mmco: unref short failure
[h264 @ 055dbe80] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 055dbe80] co located POCs unavailable
[h264 @ 055dbe80] cabac_init_idc 18 overflow
[h264 @ 055dbe80] decode_slice_header error
[h264 @ 05e32c60] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 05e32c60] illegal modification_of_pic_nums_idc 7
[h264 @ 05e32c60] decode_slice_header error
[h264 @ 058130e0] illegal modification_of_pic_nums_idc 7
[h264 @ 058130e0] decode_slice_header error
[h264 @ 058134e0] illegal modification_of_pic_nums_idc 4
[h264 @ 058134e0] decode_slice_header error
[h264 @ 0580c5a0] illegal modification_of_pic_nums_idc 31
[h264 @ 0580c5a0] decode_slice_header error
[h264 @ 0580c9c0] mmco: unref short failure
[h264 @ 0580c9c0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 0580c9c0] co located POCs unavailable
[h264 @ 0580c9c0] cabac_init_idc 18 overflow
[h264 @ 0580c9c0] decode_slice_header error
[h264 @ 055cf9e0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 055cf9e0] illegal modification_of_pic_nums_idc 7
[h264 @ 055cf9e0] decode_slice_header error
[h264 @ 058b0220] illegal modification_of_pic_nums_idc 7
[h264 @ 058b0220] decode_slice_header error
[h264 @ 055dcea0] illegal modification_of_pic_nums_idc 4
[h264 @ 055dcea0] decode_slice_header error
[h264 @ 055dbe80] illegal modification_of_pic_nums_idc 31
[h264 @ 055dbe80] decode_slice_header error
[h264 @ 05e32c60] mmco: unref short failure
[h264 @ 05e32c60] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 05e32c60] reference picture missing during reorder
    Last message repeated 1 times
[h264 @ 05e32c60] reference count overflow
[h264 @ 05e32c60] decode_slice_header error
[h264 @ 058130e0] mmco: unref short failure
[h264 @ 058130e0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 058130e0] reference picture missing during reorder
    Last message repeated 1 times
[h264 @ 058130e0] reference count overflow
[h264 @ 058130e0] decode_slice_header error
[h264 @ 058134e0] mmco: unref short failure
[h264 @ 058134e0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 058134e0] reference picture missing during reorder
    Last message repeated 1 times
[h264 @ 058134e0] reference count overflow
[h264 @ 058134e0] decode_slice_header error
[h264 @ 0580c5a0] mmco: unref short failure
[h264 @ 0580c5a0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 0580c5a0] reference picture missing during reorder
    Last message repeated 1 times
[h264 @ 0580c5a0] reference count overflow
[h264 @ 0580c5a0] decode_slice_header error
[h264 @ 0580c9c0] mmco: unref short failure
[h264 @ 0580c9c0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 0580c9c0] reference picture missing during reorder
    Last message repeated 1 times
[h264 @ 0580c9c0] reference count overflow
[h264 @ 0580c9c0] decode_slice_header error
[h264 @ 055cf9e0] mmco: unref short failure
[h264 @ 055cf9e0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 055cf9e0] reference picture missing during reorder
    Last message repeated 1 times
[h264 @ 055cf9e0] reference count overflow
[h264 @ 055cf9e0] decode_slice_header error
[h264 @ 058b0220] mmco: unref short failure
[h264 @ 058b0220] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 058b0220] reference count overflow
[h264 @ 058b0220] decode_slice_header error
[h264 @ 055dcea0] cabac_init_idc 32 overflow
[h264 @ 055dcea0] decode_slice_header error
[h264 @ 055dbe80] illegal memory management control operation 8
[h264 @ 055dbe80] co located POCs unavailable
[h264 @ 055dbe80] cabac_init_idc 3 overflow
[h264 @ 055dbe80] decode_slice_header error
[h264 @ 05e32c60] mmco: unref short failure
[h264 @ 05e32c60] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 05e32c60] illegal modification_of_pic_nums_idc 8
[h264 @ 05e32c60] decode_slice_header error
[h264 @ 058130e0] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 058130e0] reference count overflow
[h264 @ 058130e0] decode_slice_header error
[h264 @ 058134e0] mmco: unref short failure
[h264 @ 058134e0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 058134e0] illegal memory management control operation 8
[h264 @ 058134e0] co located POCs unavailable
[h264 @ 058134e0] Reference 3 >= 3
[h264 @ 058134e0] error while decoding MB 69 0, bytestream 9138
[h264 @ 0580c5a0] mmco: unref short failure
[h264 @ 0580c5a0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 058134e0] concealing 3580 DC, 3580 AC, 3580 MV errors in B frame
[h264 @ 0580c5a0] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 0580c5a0] reference count overflow
[h264 @ 0580c5a0] decode_slice_header error
[h264 @ 0580c9c0] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 0580c9c0] reference count overflow
[h264 @ 0580c9c0] decode_slice_header error
[h264 @ 055cf9e0] mmco: unref short failure
[h264 @ 055cf9e0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 055cf9e0] reference picture missing during reorder
[h264 @ 055cf9e0] illegal modification_of_pic_nums_idc 4
[h264 @ 055cf9e0] decode_slice_header error
[h264 @ 058b0220] cabac_init_idc 4 overflow
[h264 @ 058b0220] decode_slice_header error
[h264 @ 055dcea0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 055dcea0] illegal memory management control operation 8
[h264 @ 055dcea0] co located POCs unavailable
[h264 @ 055dcea0] top block unavailable for requested intra mode -1
[h264 @ 055dcea0] error while decoding MB 0 0, bytestream 11197
[h264 @ 055dbe80] mmco: unref short failure
[h264 @ 055dbe80] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 055dcea0] concealing 3600 DC, 3600 AC, 3600 MV errors in B frame
[h264 @ 055dbe80] reference count overflow
[h264 @ 055dbe80] decode_slice_header error
[h264 @ 05e32c60] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 05e32c60] reference count overflow
[h264 @ 05e32c60] decode_slice_header error
[h264 @ 058130e0] mmco: unref short failure
[h264 @ 058130e0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 058130e0] illegal memory management control operation 13
[h264 @ 058130e0] co located POCs unavailable
[h264 @ 058130e0] deblocking_filter_idc 4 out of range
[h264 @ 058130e0] decode_slice_header error
[h264 @ 058134e0] mmco: unref short failure
[h264 @ 058134e0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 058134e0] Missing reference picture, default is 64606
    Last message repeated 3 times
[h264 @ 058134e0] co located POCs unavailable
[h264 @ 058134e0] Reference 7 >= 7
[h264 @ 058134e0] error while decoding MB 1 0, bytestream 12336
[h264 @ 0580c5a0] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 0580c5a0] reference count overflow
[h264 @ 0580c5a0] decode_slice_header error
[h264 @ 058134e0] concealing 3600 DC, 3600 AC, 3600 MV errors in B frame
[h264 @ 0580c9c0] mmco: unref short failure
[h264 @ 0580c9c0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 0580c9c0] illegal long ref in memory management control operation 4
[h264 @ 0580c9c0] co located POCs unavailable
[h264 @ 0580c9c0] top block unavailable for requested intra mode -1
[h264 @ 0580c9c0] error while decoding MB 7 0, bytestream 15864
[h264 @ 055cf9e0] mmco: unref short failure
[h264 @ 055cf9e0] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 0580c9c0] concealing 3600 DC, 3600 AC, 3600 MV errors in B frame
[h264 @ 055cf9e0] illegal modification_of_pic_nums_idc 10
[h264 @ 055cf9e0] decode_slice_header error
[h264 @ 058b0220] Missing reference picture, default is 64540
    Last message repeated 3 times
[h264 @ 058b0220] co located POCs unavailable
[h264 @ 058b0220] concealing 3600 DC, 3600 AC, 3600 MV errors in B frame
[h264 @ 055dcea0] illegal modification_of_pic_nums_idc 31
[h264 @ 055dcea0] decode_slice_header error
[h264 @ 055dbe80] mmco: unref short failure
[h264 @ 055dbe80] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 055dbe80] illegal memory management control operation 13
[h264 @ 055dbe80] co located POCs unavailable
[h264 @ 055dbe80] deblocking_filter_idc 4 out of range
[h264 @ 055dbe80] decode_slice_header error
[h264 @ 05e32c60] mmco: unref short failure
[h264 @ 05e32c60] number of reference frames (1+3) exceeds max (3; probably corrupt input), discarding one
[h264 @ 05e32c60] Missing reference picture, default is 64542
    Last message repeated 3 times
[h264 @ 05e32c60] co located POCs unavailable
[h264 @ 05e32c60] concealing 3440 DC, 3440 AC, 3440 MV errors in B frame
[h264 @ 058130e0] reference picture missing during reorder
    Last message repeated 2 times

But if skip reklama block - seeking/playback is normal.


#5548 FFV1 encoder creates invalid stream with -level 3 if width or height is between 1 and 3 avcodec defect May 12, 2016

Summary of the bug: FFV1 encoder creates an invalid stream if width or height is 1 or 2. technical description: is such scenario, num_v_slices has a value of 2 so slice_y should be maximum 1, but slices have slice_y = 2 everywhere (instead of = 0 or 1).

How to reproduce:

>ffmpeg -y -f lavfi -i testsrc -t 1 -filter:v scale="353:1" -vcodec ffv1 -level 3 353x1.mkv
ffmpeg version N-79630-g9ac154d Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
  libavutil      55. 22.101 / 55. 22.101
  libavcodec     57. 38.100 / 57. 38.100
  libavformat    57. 34.103 / 57. 34.103
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 44.100 /  6. 44.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Input #0, lavfi, from 'testsrc':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 320x240 [SAR 1:1 DAR 4:3], 25 fps, 25 tbr, 25 tbn
[matroska @ 0000000000f8e8e0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Output #0, matroska, to '353x1.mkv':
  Metadata:
    encoder         : Lavf57.34.103
    Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), bgr0, 353x1 [SAR 4:1059 DAR 4:3], q=2-31, 200 kb/s, 25 fps, 1k tbn
    Metadata:
      encoder         : Lavc57.38.100 ffv1
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> ffv1 (native))
Press [q] to stop, [?] for help
frame=   25 fps=0.0 q=-0.0 Lsize=      15kB time=00:00:00.96 bitrate= 130.4kbits/s speed=44.7x
video:14kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 7.009154%

>ffmpeg -i 353x1.mkv fake.mp4
ffmpeg version N-79630-g9ac154d Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
  libavutil      55. 22.101 / 55. 22.101
  libavcodec     57. 38.100 / 57. 38.100
  libavformat    57. 34.103 / 57. 34.103
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 44.100 /  6. 44.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
[ffv1 @ 00000000025245e0] slice count invalid
[matroska,webm @ 00000000001d6e60] Failed to open codec in av_find_stream_info
[ffv1 @ 00000000025245e0] slice count invalid
Input #0, matroska,webm, from '353x1.mkv':
  Metadata:
    ENCODER         : Lavf57.34.103
  Duration: 00:00:01.00, start: 0.000000, bitrate: 125 kb/s
    Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), none, 353x1, SAR 1:255 DAR 353:255, 25 fps, 25 tbr, 1k tbn (default)
    Metadata:
      ENCODER         : Lavc57.38.100 ffv1
      DURATION        : 00:00:01.000000000
[buffer @ 00000000025179e0] Unable to parse option value "-1" as pixel format
    Last message repeated 1 times
[buffer @ 00000000025179e0] Error setting option pix_fmt to value -1.
[graph 0 input from stream 0:0 @ 0000000002517500] Error applying options to the filter.
Error opening filters!

Same if you invert width and height.


#5746 LucasArts SANM/SMUSH video fails to decode avcodec defect Jul 31, 2016

Summary of the bug:

Decoding a LucasArts? SANM file fails with "Subcodec 48 is not implemented" and no output file is created.

How to reproduce:

% ffmpeg -i input.SAN output.mp4
...
[sanm @ 0x7fce49017000] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
Error while decoding stream #0:0: Not yet implemented in FFmpeg, patches welcome
frame=    0 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!

View output.txt for full output.

% ffmpeg -version
ffmpeg version 3.1.1 Copyright (c) 2000-2016 the FFmpeg developers
built with Apple LLVM version 7.3.0 (clang-703.0.31)
configuration: --prefix=/usr/local/Cellar/ffmpeg/3.1.1 --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-libx265 --disable-lzma --enable-vda
libavutil      55. 28.100 / 55. 28.100
libavcodec     57. 48.101 / 57. 48.101
libavformat    57. 41.100 / 57. 41.100
libavdevice    57.  0.101 / 57.  0.101
libavfilter     6. 47.100 /  6. 47.100
libavresample   3.  0.  0 /  3.  0.  0
libswscale      4.  1.100 /  4.  1.100
libswresample   2.  1.100 /  2.  1.100
libpostproc    54.  0.100 / 54.  0.100

#5802 Conversion from JPEG-SOF3(lossless) fails avcodec defect Aug 26, 2016

How to reproduce:

ffmpeg -y -i C:\Users\sknoll\Desktop\big.sof3 -vcodec jpegls -q:v 0 test.jls
ffmpeg version N-81342-gb93e223 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.4.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
  libavutil      55. 28.100 / 55. 28.100
  libavcodec     57. 51.102 / 57. 51.102
  libavformat    57. 46.101 / 57. 46.101
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 51.100 /  6. 51.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100
Input #0, jpeg_pipe, from 'C:\Users\sknoll\Desktop\big.sof3':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: mjpeg, gray16le(bt470bg/unknown/unknown), 512x512, lossless, 25 tbr, 25 tbn, 25 tbc
[image2 @ 00000000006a5600] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Output #0, image2, to 'test.jls':
  Metadata:
    encoder         : Lavf57.46.101
    Stream #0:0: Video: jpegls, gray16le, 512x512, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc57.51.102 jpegls
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg (native) -> jpegls (native))
Press [q] to stop, [?] for help
[mjpeg @ 00000000006a7060] mjpeg_decode_dc: bad vlc: 0:0 (00000000006a4f20)
frame=    1 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.04 bitrate=N/A speed= 8.8x
video:5kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown 

See attachments for samples.


#1901 cavs artefacts in B frames avcodec defect Nov 9, 2012

hi all,

i found a ffmpeg a bug, with play chinese cavs stream , there is video flicker strongly.


#5163 [aac @ 0x1c11420] element type mismatch 1 != 0 avcodec defect Jan 17, 2016

Summary of the bug:

Certain .mp4 files, when used as input, triggers this error.

The output file plays silent, no matter what encoding method is used for the output file.

An example of such file is uploaded to ftp://upload.ffmpeg.org and filename is aac_element_type_mismatch.mp4

How to reproduce:

> ffmpeg -i aac_element_type_mismatch.mp4 -c:v copy result.mp4
ffmpeg version 2.8.4 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.8 (SUSE Linux)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --incdir=/usr/include/ffmpeg --extra-cflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g' --optflags='-fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g' --disable-htmlpages --enable-pic --disable-stripping --enable-shared --disable-static --enable-runtime-cpudetect --enable-gpl --disable-openssl --enable-avresample --enable-libcdio --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libcelt --enable-libcdio --enable-libdc1394 --enable-libfreetype --enable-libgsm --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-pic --enable-pthreads --enable-vaapi --enable-vdpau --disable-decoder=dca --enable-libdcadec --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libtwolame --enable-libvo-aacenc --enable-libx264 --enable-libx265 --enable-libxvid --enable-x11grab
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
[aac @ 0x1c101c0] element type mismatch 1 != 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'aac_element_type_mismatch.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf56.40.101
  Duration: 00:00:30.02, start: 0.000000, bitrate: 2623 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 720x576 [SAR 1:1 DAR 5:4], 2492 kb/s, 25 fps, 25 tbr, 30k tbn, 20000k tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 96000 Hz, stereo, fltp, 127 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
[mp4 @ 0x1c49220] Codec for stream 0 does not use global headers but container format requires global headers
Output #0, mp4, to 'result.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf56.40.101
    Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 720x576 [SAR 1:1 DAR 5:4], q=2-31, 2492 kb/s, 25 fps, 25 tbr, 30k tbn, 30k tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 96000 Hz, stereo, s16, 128 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      encoder         : Lavc56.60.100 libvo_aacenc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (aac (native) -> aac (libvo_aacenc))
Press [q] to stop, [?] for help
[aac @ 0x1c11420] element type mismatch 1 != 0
    Last message repeated 316 times
[aac @ 0x1c11420] element type mismatch 1 != 0e=00:00:06.76 bitrate=1283.4kbits/s    
    Last message repeated 320 times
[aac @ 0x1c11420] element type mismatch 1 != 0e=00:00:13.59 bitrate=1946.4kbits/s    
    Last message repeated 307 times
[aac @ 0x1c11420] element type mismatch 1 != 0e=00:00:20.16 bitrate=2383.5kbits/s    
    Last message repeated 351 times
[aac @ 0x1c11420] element type mismatch 1 != 0e=00:00:27.68 bitrate=2581.3kbits/s    
    Last message repeated 108 times
frame=  750 fps=342 q=-1.0 Lsize=    9620kB time=00:00:30.02 bitrate=2625.0kbits/s    
video:9126kB audio:468kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.266198%


#5732 Display corruption on very high-bitrate H.264 files avcodec defect Jul 24, 2016

Hi,

I've discovered what I believe is a bug in the H.264 decoder of libavcodec. It concerns the following file, where the video is encoded using Intel Quick Sync Video (on a Haswell, via VA-API) at constant quantizer:

http://storage.sesse.net/through-the-cracks.mp4

Unfortunately, the file is very big (~5.1GB), and attempts to cut it using ffmpeg(1) resulted in something VLC wouldn't play, so I've left it alone save for remuxing (it was originally in NUT) and audio reencoding.

The corruption happens around 13:50, in the right-hand side of the picture. You can see it by decoding using ffmpeg(1):

ffmpeg -ss 13:50 -i /srv/storage.sesse.net/through-the-cracks.mp4 -vframes 50 out-%03d.png

and then looking at out-*.png. The errors persist from out-001.png to out-019.png; they disappear at out-020.png (perhaps new keyframe?) and come back at out-045.png. It looks like some kind of overflow to me, probably due to the extreme bitrate chosen (around 170 Mbit/sec; this content is super-hard to encode!).

The file plays perfectly in VLC if and only if I enable VA-API hardware acceleration, so that it's decoded in hardware instead of by libavcodec's H.264 decoder.


#5795 decoding with some pbm files avcodec defect Aug 24, 2016

Summary of the bug: How to reproduce:

% ffmpeg -i 002.pbm -f null -

ffmpeg version

N-81451-g8a78fc5 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.9.3 (Gentoo 4.9.3 p1.5, pie-0.6.4)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64
--docdir=/usr/share/doc/ffmpeg-9999/html --mandir=/usr/share/man --enable-shared
--cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++
--ar=x86_64-pc-linux-gnu-ar --optflags='-O2 -pipe' --disable-static
--enable-avfilter --enable-avresample --disable-stripping --disable-indev=v4l2
--disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack
--disable-outdev=oss --disable-outdev=sdl --enable-bzlib
--disable-runtime-cpudetect --disable-debug --disable-gcrypt --disable-gnutls
--disable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv
--disable-lzma --enable-network --disable-openssl --enable-postproc
--disable-libsmbclient --disable-ffplay --disable-sdl --disable-vaapi
--enable-vdpau --disable-xlib --enable-libxcb --enable-libxcb-shm
--enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883
--disable-libdc1394 --disable-libcaca --disable-openal --enable-opengl
--disable-libv4l2 --disable-libpulse --disable-libopencore-amrwb
--disable-libopencore-amrnb --disable-libfdk-aac --disable-libopenjpeg
--disable-libbluray --disable-libcelt --disable-libgme --disable-libgsm
--disable-mmal --disable-libmodplug --enable-libopus --disable-libilbc
--disable-librtmp --disable-libssh --disable-libschroedinger --disable-libspeex
--disable-libvorbis --disable-libvpx --disable-libzvbi --disable-libbs2b
--disable-chromaprint --disable-libebur128 --disable-libflite --disable-frei0r
--disable-libfribidi --disable-fontconfig --disable-ladspa --disable-libass
--disable-libfreetype --disable-librubberband --enable-libzimg --disable-libsoxr
--enable-pthreads --disable-libvo-amrwbenc --disable-libmp3lame
--disable-libfaac --disable-libkvazaar --disable-nvenc --enable-libopenh264
--disable-libsnappy --disable-libtheora --disable-libtwolame
--disable-libwavpack --disable-libwebp --disable-libx264 --disable-libx265
--disable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-aesni
--disable-avx --disable-avx2 --disable-fma3 --disable-fma4 --disable-xop
--disable-doc --disable-htmlpages --enable-manpages

libavutil      55. 29.100 / 55. 29.100
libavcodec     57. 54.100 / 57. 54.100
libavformat    57. 48.100 / 57. 48.100
libavdevice    57.  0.102 / 57.  0.102
libavfilter     6. 54.100 /  6. 54.100
libavresample   3.  0.  0 /  3.  0.  0
libswscale      4.  1.100 /  4.  1.100
libswresample   2.  1.100 /  2.  1.100
libpostproc    54.  0.100 / 54.  0.100

built on:

Linux darkstar 4.7.0-hardened #1 SMP
Wed Aug 17 14:01:06 2016 x86_64 Intel(R) Core(TM) i3-2130 CPU @ 3.40GHz GenuineIntel
GNU/Linux

#3955 native vorbis encoder produces noise avcodec defect Sep 17, 2014

Converted a 5.1 channel video into webm with latest ffmpeg (using native vorbis for audio encoder). But can hear noise not exists in source video.

Was able to reproduce this issue with 2 videos.

Below is the command used to convert.

$ ffmpeg.exe -i Stereotest.mp4 -acodec vorbis -strict -2 test.webm
ffmpeg version N-66289-gb76d613 Copyright (c) 2000-2014 the FFmpeg developers
  built on Sep 15 2014 22:02:10 with gcc 4.8.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib
  libavutil      54.  7.100 / 54.  7.100
  libavcodec     56.  1.100 / 56.  1.100
  libavformat    56.  4.101 / 56.  4.101
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  1.100 /  5.  1.100
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Stereotest.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2013-12-23 05:20:05
  Duration: 00:00:20.04, start: 0.000000, bitrate: 159 kb/s
    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 480x360, 60 kb/s, 29.97 fps, 29.97 tbr, 60k tbn, 59.94 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 95 kb/s (default)
    Metadata:
      creation_time   : 2013-12-23 05:20:05
      handler_name    : IsoMedia File Produced by Google, 5-11-2011
File 'test.webm' already exists. Overwrite ? [y/N] y
[libvpx @ 04404a60] v1.3.0
Output #0, webm, to 'test.webm':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    encoder         : Lavf56.4.101
    Stream #0:0(und): Video: vp8 (libvpx), yuv420p, 480x360, q=-1--1, 200 kb/s, 29.97 fps, 1k tbn, 29.97 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      encoder         : Lavc56.1.100 libvpx
    Stream #0:1(und): Audio: vorbis, 44100 Hz, stereo, fltp (default)
    Metadata:
      creation_time   : 2013-12-23 05:20:05
      handler_name    : IsoMedia File Produced by Google, 5-11-2011
      encoder         : Lavc56.1.100 vorbis
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> vp8 (libvpx))
  Stream #0:1 -> #0:1 (aac (native) -> vorbis (native))
Press [q] to stop, [?] for help
frame=  600 fps=145 q=0.0 Lsize=     560kB time=00:00:20.06 bitrate= 228.5kbits/s
video:130kB audio:416kB subtitle:0kB other streams:0kB global headers:3kB muxing overhead: 2.403836%



$ ffmpeg.exe -i Original51.mkv -acodec vorbis -strict -2 test.webm
ffmpeg version N-66289-gb76d613 Copyright (c) 2000-2014 the FFmpeg developers
  built on Sep 15 2014 22:02:10 with gcc 4.8.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib
  libavutil      54.  7.100 / 54.  7.100
  libavcodec     56.  1.100 / 56.  1.100
  libavformat    56.  4.101 / 56.  4.101
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  1.100 /  5.  1.100
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  0.100
Input #0, matroska,webm, from 'Original51.mkv':
  Metadata:
    ENCODER         : Lavf55.33.100
  Duration: 00:00:46.63, start: 0.000000, bitrate: 605 kb/s
    Stream #0:0: Video: h264 (High), yuv420p, 800x600 [SAR 1:1 DAR 4:3], 8 fps, 8 tbr, 1k tbn, 16 tbc (default)
    Stream #0:1: Audio: aac, 44100 Hz, stereo, fltp (default)
File 'test.webm' already exists. Overwrite ? [y/N] y
[libvpx @ 037d47e0] v1.3.0
Output #0, webm, to 'test.webm':
  Metadata:
    encoder         : Lavf56.4.101
    Stream #0:0: Video: vp8 (libvpx), yuv420p, 800x600 [SAR 1:1 DAR 4:3], q=-1--1, 200 kb/s, 8 fps, 1k tbn, 8 tbc (default)
    Metadata:
      encoder         : Lavc56.1.100 libvpx
    Stream #0:1: Audio: vorbis, 44100 Hz, stereo, fltp (default)
    Metadata:
      encoder         : Lavc56.1.100 vorbis
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> vp8 (libvpx))
  Stream #0:1 -> #0:1 (aac (native) -> vorbis (native))
Press [q] to stop, [?] for help
frame=  373 fps= 49 q=0.0 Lsize=     944kB time=00:00:46.62 bitrate= 165.8kbits/s
video:421kB audio:503kB subtitle:0kB other streams:0kB global headers:3kB muxing overhead: 2.077811%

#232 amrnb dec: dtx mode not implemented. avcodec enhancement May 23, 2011

I've just compiled the latest version of ffmpeg from the SVN on a CentOS machine and when I try to decode amr audio files I get this error (repeated a lot of times):

[amrnb @ 0x626e90] dtx mode not implemented. Update your FFmpeg version to the newest one from SVN. If the problem still occurs, it means that your file has a feature which has not been implemented.If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list.

On another box, an Ubuntu one, I have installed the ffmpeg package from the repositories and it works fine with the same files. Also, on yet another CentOS box I am using a several-year-old version of ffmpeg that was compiled ages ago which can decode the same amr files just fine.

So either the error message is completely wrong and the real problem with the files is different, or there has been some regression in that a feature that had already been implemented ages ago has been dropped.


#638 add support for tiled TIFF avcodec enhancement Nov 11, 2011
C:\>ffmpeg -i Tiled_NONE_8bpp.tif
ffmpeg version N-34549-g13b7781, Copyright (c) 2000-2011 the FFmpeg developers
  built on Nov  6 2011 22:02:08 with gcc 4.6.1
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil    51. 24. 0 / 51. 24. 0
  libavcodec   53. 28. 0 / 53. 28. 0
  libavformat  53. 19. 0 / 53. 19. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 47. 0 /  2. 47. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[tiff @ 02605B60] Image data is missing
[image2 @ 020A2320] Could not find codec parameters (Video: tiff)
Tiled_NONE_8bpp.tif: could not find codec parameters

#643 VAAPI dynamic loading avcodec enhancement Nov 11, 2011

Hi,

We have implemented VAAPI support in our video player and things are great so far. However, ffmpeg creates a hard dependency on libva when we compile it with --enable-vaapi. This means the library won't load if libva is not available. This was a big problem to us. We can't really force its installation on already deployed systems especially when they don't even support hardware acceleration. Instead, I created a patch to support VAAPI dynamic loading. This patch does not come without compromises. For example, the vaapi_context now requires additional function pointers. Still, if you think this could be useful, here is the patch.

Thanks, Gabi Julien


#747 Enable AMV encoding for audio avcodec enhancement Dec 14, 2011

The amv format is made for chinese s1mp3 hardware players, and is now part of the latest version of FFmpeg (0.9 - Harmony).

However, its underlying audio is adpcm_ima_amv, and this is unsupported by FFmpeg.

When I call ffmpeg -codecs, it contains the line D A D adpcm_ima_amv ADPCM IMA AMV, which means Decoding supported, Audio codec, Direct rendering, but it doesn't contain E which stands for Encoding.

I found the amv-codec-tools project, which supports this audio format automatically.

I think it would be easy to merge the outdated adpcm_ima_amv encoder from the amv-codec-tools into FFmpeg.

To be noted, compiling amv-codec-tools with the new FFmpeg version doesn't work, even I disable the amv and the adpcm_ima_amv encoders/decoders, I get this error:

[NULL @ 039a7860] Requested output format 'amv' is not a suitable output format
sample.amv: Invalid argument

Which is the same error that occurs when trying to use FFmpeg 0.9 for the AMV format - an issue that should be reported separately.

This issue is very urgent to me and I consider promoting a developer that will make it work.


#798 LEAD codecs not supported avcodec enhancement Dec 20, 2011

windows media player play such files fine

ffmpeg version N-35462-g61b1d85, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec  5 2011 14:28:46 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --e
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable
libxvid --enable-zlib
  libavutil    51. 30. 0 / 51. 30. 0
  libavcodec   53. 40. 0 / 53. 40. 0
  libavformat  53. 24. 0 / 53. 24. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 51. 0 /  2. 51. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[avi @ 000000000031D830] Format avi probed with size=2048 and score=100
[AVI demuxer @ 0000000001C20080] use odml:1
st:1 removing common factor 13 from timebase
[gsm_ms @ 000000000031F620] err{or,}_recognition separate: 1; 1
[gsm_ms @ 000000000031F620] err{or,}_recognition combined: 1; 65537
[avi @ 000000000031D830] parser not found for codec gsm_ms, packets or times may be invalid.
[avi @ 000000000031D830] parser not found for codec none, packets or times may be invalid.
[avi @ 000000000031D830] max_analyze_duration 5000000 reached at 5005000
Input #0, avi, from 'DaDa_CMP.avi':
  Duration: 00:00:07.54, start: 0.000000, bitrate: 2750 kb/s
    Stream #0:0, 152, 1001/30000: Video: none (LEAD / 0x4441454C), 480x320, 1001/30000, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc
    Stream #0:1, 703, 5/689: Audio: gsm_ms (1[0][0][0] / 0x0031), 44100 Hz, 1 channels, s16, 71 kb/s
Video pixel format is unknown, stream cannot be encoded

==================

ffmpeg version N-35462-g61b1d85, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec  5 2011 14:28:46 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --e
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable
libxvid --enable-zlib
  libavutil    51. 30. 0 / 51. 30. 0
  libavcodec   53. 40. 0 / 53. 40. 0
  libavformat  53. 24. 0 / 53. 24. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 51. 0 /  2. 51. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[avi @ 000000000200D7F0] Format avi probed with size=2048 and score=100
[AVI demuxer @ 0000000000330080] use odml:1
st:1 removing common factor 13 from timebase
[gsm_ms @ 000000000200F5E0] err{or,}_recognition separate: 1; 1
[gsm_ms @ 000000000200F5E0] err{or,}_recognition combined: 1; 65537
[avi @ 000000000200D7F0] parser not found for codec gsm_ms, packets or times may be invalid.
[avi @ 000000000200D7F0] parser not found for codec none, packets or times may be invalid.
[avi @ 000000000200D7F0] max_analyze_duration 5000000 reached at 5005000
Input #0, avi, from 'DaDa_CMW.avi':
  Duration: 00:00:07.54, start: 0.000000, bitrate: 2355 kb/s
    Stream #0:0, 152, 1001/30000: Video: none (LCW2 / 0x3257434C), 480x320, 1001/30000, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc
    Stream #0:1, 703, 5/689: Audio: gsm_ms (1[0][0][0] / 0x0031), 44100 Hz, 1 channels, s16, 71 kb/s
Video pixel format is unknown, stream cannot be encoded

#914 tiff: support "old style LZW" avcodec enhancement Jan 11, 2012

quad-lzw.tif 512x384 8-bit RGB (lzw) "quadric surfaces"

C:\>ffmpeg -i quad-lzw.tif out.bmp
ffmpeg version N-36635-gceb0dd9 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jan  9 2012 17:39:58 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil      51. 34.100 / 51. 34.100
  libavcodec     53. 54.100 / 53. 54.100
  libavformat    53. 29.100 / 53. 29.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 58.100 /  2. 58.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    51.  2.100 / 51.  2.100
[tiff @ 02645B60] Decoded only 3 bytes of 1536
Input #0, image2, from 'quad-lzw.tif':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: tiff, rgb24, 512x384, 25 tbr, 25 tbn, 25 tbc
Incompatible pixel format 'rgb24' for codec 'bmp', auto-selecting format 'bgr24'

[buffer @ 020F1760] w:512 h:384 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param:
[buffersink @ 020F19E0] auto-inserting filter 'auto-inserted scale 0' between th
e filter 'src' and the filter 'out'
[scale @ 020F1E60] w:512 h:384 fmt:rgb24 -> w:512 h:384 fmt:bgr24 flags:0x4
Output #0, image2, to 'out.bmp':
  Metadata:
    encoder         : Lavf53.29.100
    Stream #0:0: Video: bmp, bgr24, 512x384, q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (tiff -> bmp)
Press [q] to stop, [?] for help
[tiff @ 02645B60] Decoded only 3 bytes of 1536
frame=    1 fps=  0 q=0.0 Lsize=       0kB time=00:00:00.04 bitrate=   0.0kbits/
s
video:576kB audio:0kB global headers:0kB muxing overhead -100.000000%

#929 AAC decoder does not respect request_channels avcodec enhancement Jan 19, 2012

I tested AAC 5.1 channel audio on stereo output on arm-based beagleboard. sometimes there is audio output on left channel, other times on right channel. This issue doesn't happen on AC3 5.1 channel.


#1009 XvBA - AMD Hardware acceleration avcodec enhancement Feb 21, 2012

It would be nice if ffmpeg supports XvBA hardware acceleration because VA-API/XvBA fell into an unmaintained modus.

More Information about the hardware acceleration interface: http://en.wikipedia.org/wiki/X-Video_Bitstream_Acceleration

XvBA SDK: http://developer.amd.com/zones/opensource/Pages/default.aspx

An another project implements the XvBA interface: http://www.phoronix.com/scan.php?page=news_item&px=MTAyODU


#1087 support decoding the CineForm codec avcodec enhancement Mar 17, 2012

I found that ffmpeg can't read CineForm? CFHD files.

There are some samples available here: http://samples.mplayerhq.hu/V-codecs/CFHD/ I may be able to provide more samples if needed.

ffmpeg -y -i MT_BeartoothHighway_1min_Cineform.avi anything.mp4
ffmpeg version N-34835-g4a9f466 Copyright (c) 2000-2012 the FFmpeg developers
  built on Mar  4 2012 08:53:39 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-libfreetype --cc=/usr/bin/gcc-4.2 --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libass
  libavutil      51. 41.100 / 51. 41.100
  libavcodec     54.  7.100 / 54.  7.100
  libavformat    54.  2.100 / 54.  2.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 63.100 /  2. 63.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  7.100 /  0.  7.100
  libpostproc    52.  0.100 / 52.  0.100
[avi @ 0x7fb4c201ae00] decoding for stream 0 failed
[avi @ 0x7fb4c201ae00] Could not find codec parameters (Video: none (CFHD / 0x44484643), 1280x720)
Input #0, avi, from 'MT_BeartoothHighway_1min_Cineform.avi':
  Duration: 00:01:01.96, start: 0.000000, bitrate: 16472 kb/s
    Stream #0:0: Video: none (CFHD / 0x44484643), 1280x720, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc
    Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 2 channels, s16, 1536 kb/s
Video pixel format is unknown, stream cannot be encoded

#1258 Codec support request : MPEG Multichannel Audio avcodec enhancement Apr 28, 2012

Hi

Support for MPEG Multichannel audio seems to be missing. This is different to ac3. More information can be found here : http://en.wikipedia.org/wiki/MPEG_Multichannel

It's a method of encoding surround audio into stereo mpeg2 files. If the files are played back using software that doesn't support the extra channels, the data is dropped and only the first two channels are decoded.

This codec forms part of the HDV specification (specifically the 4 channel audio option on some HDV camcorders). The Canon XLH1, in particular, made use of this system.

I have found a very old project called mctoolamed : http://mctoolame.sourceforge.net which can decode this codec.

mctoolamed has several issues; it doesn't make provision for sample rates other than 44.1kHz and it also only supports 2,6 and 8 channel files (HDV cameras shoot 4 channels).


#1308 Decoding SAFA / Philips .ZVR files avcodec enhancement May 15, 2012

SAFA and Philips mobile recording devices create sound files with the extension .ZVR

I have checked whether this format can be read by ffmpeg and I believe that it can't.

There is a free very simple file converter for Windows, but there's nothing for Linux, apart from running the Windows file converter under Wine.

It would be useful if ffmpeg could read (but not write) these files.

I have no idea how much work it might be or how you would get the file specification.

I can supply sample files.


#1347 gif parser avcodec enhancement May 23, 2012

with the test image attached image2 works:

    ffmpeg -f image2 -vcodec gif -i test.gif -f null -

whereas image2pipe doesn't:

[pisto@pcpcpcpc Desktop]$ ffmpeg -f image2 -vcodec gif -i test.gif -f null -
ffmpeg version N-33891-g0e82d31 Copyright (c) 2000-2012 the FFmpeg developers
  built on May 19 2012 15:17:38 with gcc 4.6.3 20120306 (Red Hat 4.6.3-2)
  configuration: --enable-gpl --enable-pic --arch=amd64 --cpu=native --enable-libvpx --enable-libx264 --enable-libv4l2 --enable-libtheora --enable-libspeex --enable-libschroedinger --enable-libpulse --enable-libmp3lame --enable-libfaac --enable-nonfree
  libavutil      51. 53.100 / 51. 53.100
  libavcodec     54. 21.101 / 54. 21.101
  libavformat    54.  5.100 / 54.  5.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 74.102 /  2. 74.102
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 12.100 /  0. 12.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, image2, from 'test.gif':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: gif, pal8, 640x480, 25 tbr, 25 tbn, 25 tbc
[buffer @ 0x2a05d80] w:640 h:480 pixfmt:pal8 tb:1/1000000 sar:0/1 sws_param:flags=2
[buffersink @ 0x2a06260] No opaque field provided
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf54.5.100
    Stream #0:0: Video: rawvideo, pal8, 640x480, q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (gif -> rawvideo)
Press [q] to stop, [?] for help
[null @ 0x2a04e40] Encoder did not produce proper pts, making some up.
frame=    1 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.04 bitrate=   0.0kbits/s    
video:0kB audio:0kB global headers:0kB muxing overhead -nan%
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
[pisto@pcpcpcpc Desktop]$ cat test.gif | ffmpeg -f image2pipe -vcodec gif -i - -f null -
ffmpeg version N-33891-g0e82d31 Copyright (c) 2000-2012 the FFmpeg developers
  built on May 19 2012 15:17:38 with gcc 4.6.3 20120306 (Red Hat 4.6.3-2)
  configuration: --enable-gpl --enable-pic --arch=amd64 --cpu=native --enable-libvpx --enable-libx264 --enable-libv4l2 --enable-libtheora --enable-libspeex --enable-libschroedinger --enable-libpulse --enable-libmp3lame --enable-libfaac --enable-nonfree
  libavutil      51. 53.100 / 51. 53.100
  libavcodec     54. 21.101 / 54. 21.101
  libavformat    54.  5.100 / 54.  5.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 74.102 /  2. 74.102
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 12.100 /  0. 12.100
  libpostproc    52.  0.100 / 52.  0.100
lzw overread
    Last message repeated 352 times
[image2pipe @ 0x2ef0240] Estimating duration from bitrate, this may be inaccurate
Input #0, image2pipe, from 'pipe:':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: gif, pal8, 640x480, 25 fps, 25 tbr, 25 tbn, 25 tbc
[buffer @ 0x2f06020] w:640 h:480 pixfmt:pal8 tb:1/1000000 sar:0/1 sws_param:flags=2
[buffersink @ 0x2f064e0] No opaque field provided
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf54.5.100
    Stream #0:0: Video: rawvideo, pal8, 640x480, q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (gif -> rawvideo)
lzw overread
    Last message repeated 352 times
[null @ 0x2f04f60] Encoder did not produce proper pts, making some up.
Error while decoding stream #0:0
    Last message repeated 3 times
frame=    1 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.04 bitrate=   0.0kbits/s    
video:0kB audio:0kB global headers:0kB muxing overhead -nan%
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)

#1679 Ability to identify progressive segmented frame material in h.264 avcodec enhancement Aug 25, 2012

It is desirable to be able to identify progressive segmented frame (PsF) material (i.e. a progressively scanned frame encoded as two fields with the same timestamp) in an h.264 stream as that gives applications using libavcodec the possibility to correctly report to the user that the underlying material is really progressive and no deinterlacing makes sense.

From the h.264 spec: clock_timestamp_flag[ i ] equal to 1 indicates that a number of clock timestamp syntax elements are present and follow immediately. clock_timestamp_flag[ i ] equal to 0 indicates that the associated clock timestamp syntax elements are not present. When NumClockTS is greater than 1 and clock_timestamp_flag[ i ] is equal to 1 for more than one value of i, the value of clockTimestamp shall be non-decreasing with increasing value of i. ct_type indicates the scan type (interlaced or progressive) of the source material as follows: Two fields of a coded frame may have different values of ct_type. When clockTimestamp is equal for two fields of opposite parity that are consecutive in output order, both with ct_type equal to 0 (progressive) or ct_type equal to 2 (unknown), the two fields are indicated to have come from the same original progressive frame. Two consecutive fields in output order shall have different values of clockTimestamp when the value of ct_type for either field is 1 (interlaced).

AFAICS in the code in h264.c the information required to make that determination is not parsed, which should not be difficult to add. However, once one has that information, how do I give this back to the API user? Currently there is only the field top_field_first in AVFrame.

What would be the recommended/accepted way of modeling this? If no API change would be accepted for this, would it be ok to sets this as frame metadata via av_frame_set_metadata?


#1832 TrueHD Encoder? avcodec enhancement Oct 19, 2012

Could someone create a TrueHD encoder? If I knew how to code, I'd do it myself, and this is probably the most naive thing ever, but can't you just take the TrueHD decoder and basically reverse it? Regardless, a TrueHD encoder would be amazing.


#1882 Multi-threading wmv encoder avcodec enhancement Nov 3, 2012

I'm having issues using multiple cores when using the wmv encoder. It appears to be locked to a single core only.

Any chance we could get support for multiple threads?

Please refer to: http://forum.serviio.org/viewtopic.php?f=5&t=7698


#1887 wmv3: Old interlaced mode is not supported / Reserved RES_SM=2 is forbidden avcodec enhancement Nov 5, 2012

Summary of the bug: check ffmpeg supported codecs , it already support wmv3/wmav2 , but for some files , we can play it but can't decode it. How to reproduce:

for SVN-r22888:
ffmpeg -i huasi.asf  -y huasi.avi
FFmpeg version SVN-r22888, Copyright (c) 2000-2010 the FFmpeg developers
  built on Apr 23 2010 15:09:04 with gcc 4.1.2 20070925 (Red Hat 4.1.2-33)
  configuration: --prefix=/usr/local/enctools --enable-postproc --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libmp3lame --disable-shared --enable-libx264 --enable-pthreads --enable-libfaac --enable-libfaad --enable-nonfree --enable-gpl --enable-libgsm --enable-libnut --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libopenjpeg --enable-libxvid --enable-bzlib --enable-libschroedinger --enable-zlib --enable-small --extra-cflags=-I/usr/local/enctools/include --extra-ldflags=-L/usr/local/enctools/lib
  libavutil     50.14. 0 / 50.14. 0
  libavcodec    52.66. 0 / 52.66. 0
  libavformat   52.61. 0 / 52.61. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0.10. 0 /  0.10. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[wmv3 @ 0x9136a40]Reserved RES_SM=2 is forbidden

Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 25.00 (25/1)
Input #0, asf, from 'huasi.asf':
  Metadata:
    WM/ToolName     : TMPGEnc 4.0 XPress Version. 4.2.3.193
    WMFSDKVersion   : 9.00.00.2980
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
  Duration: 00:00:57.07, start: 3.000000, bitrate: 574 kb/s
    Stream #0.0(chi): Audio: wmav2, 48000 Hz, 2 channels, s16, 64 kb/s
    Stream #0.1(chi): Video: wmv3, yuv420p, 720x576, 500 kb/s, 25 tbr, 1k tbn, 1k tbc
[wmv3 @ 0x9136a40]Reserved RES_SM=2 is forbidden
Output #0, avi, to 'huasi.avi':
    Stream #0.0(chi): Video: mpeg4, yuv420p, 720x576, q=2-31, 200 kb/s, 90k tbn, 25 tbc
    Stream #0.1(chi): Audio: mp2, 48000 Hz, 2 channels, s16, 64 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.0 -> #0.1
Error while opening decoder for input stream #0.1

also failed on latest ffmpeg-1.0:

ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers
  built on Oct 15 2012 12:12:07 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4)
  configuration: --prefix=/usr/local/ffmpeg-1.0-new --enable-postproc --enable-avfilter --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libmp3lame --disable-shared --enable-libx264 --enable-pthreads --enable-libfaac --enable-nonfree --enable-gpl --enable-libgsm --enable-libnut --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libopenjpeg --enable-libxvid --enable-bzlib --enable-libschroedinger --enable-zlib --enable-small --enable-libcdio --enable-libvo-aacenc --enable-libfdk-aac --enable-libvo-amrwbenc --enable-libvpx --enable-libxavs --extra-cflags=-I/usr/local/enctools/include --extra-ldflags=-L/usr/local/enctools/lib
  libavutil      51. 73.101 / 51. 73.101
  libavcodec     54. 59.100 / 54. 59.100
  libavformat    54. 29.104 / 54. 29.104
  libavdevice    54.  2.101 / 54.  2.101
  libavfilter     3. 17.100 /  3. 17.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[wmv3 @ 0x1b2f7e0] Old interlaced mode is not supported
    Last message repeated 1 times
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, asf, from 'huasi.asf':
  Metadata:
    WM/ToolName     : TMPGEnc 4.0 XPress Version. 4.2.3.193
    WMFSDKVersion   : 9.00.00.2980
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
  Duration: 00:00:57.07, start: 0.000000, bitrate: 574 kb/s
    Stream #0:0(chi): Audio: wmav2 (a[1][0][0] / 0x0161), 48000 Hz, stereo, s16, 64 kb/s
    Stream #0:1(chi): Video: wmv3 (WMV3 / 0x33564D57), yuv420p, 720x576, 500 kb/s, 25 tbr, 1k tbn, 1k tbc
[wmv3 @ 0x1b2f7e0] Old interlaced mode is not supported
Output #0, avi, to 'test.avi':
  Metadata:
    WM/ToolName     : TMPGEnc 4.0 XPress Version. 4.2.3.193
    WMFSDKVersion   : 9.00.00.2980
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
    Stream #0:0(chi): Video: mpeg4, yuv420p, 720x576, q=2-31, 200 kb/s, 90k tbn, 25 tbc
    Stream #0:1(chi): Audio: mp3, 48000 Hz, stereo, s16
Stream mapping:
  Stream #0:1 -> #0:0 (wmv3 -> mpeg4)
  Stream #0:0 -> #0:1 (wmav2 -> libmp3lame)
Error while opening decoder for input stream #0:1


#1959 Support codec2 avcodec enhancement Nov 24, 2012

Summary of the bug: Codec2 is a voice compression codec aiming towards very low bandwiths (below 5000 bits per second). Profiles exist for 3200, 2400, 1400 and 1200 bps.

I would suggest adding Codec2 to the list of supported ffmpeg audio compression and decompression codecs.

Codec2 is LGPL licensed and was designed to avoid patent issues.

URL for more information: http://codec2.org/


#2377 Support lossless mp3HD avcodec enhancement Mar 19, 2013

FFmpeg does not support decoding the lossless layer of mp3HD

$ ffmpeg -i sample-128-and-lossless-mp3HD.mp3 ffmpeg version 0.10.6 Copyright (c) 2000-2012 the FFmpeg developers

built on Nov 13 2012 16:03:45 with gcc 4.6.3 configuration: --prefix=/usr --enable-shared --libdir=/usr/lib64 --shlibdir=/usr/lib64 --incdir=/usr/include --disable-stripping --enable-postproc --enable-gpl --enable-pthreads --enable-libtheora --enable-libvorbis --disable-encoder=vorbis --enable-libvpx --enable-x11grab --enable-runtime-cpudetect --enable-libdc1394 --enable-libschroedinger --enable-librtmp --enable-libspeex --enable-libfreetype --enable-libnut --enable-libgsm --enable-libcelt --enable-libopencv --enable-libopenjpeg --enable-libxavs --enable-frei0r --enable-libmodplug --enable-libass --enable-gnutls --enable-libcdio --enable-libpulse --enable-libdirac --enable-libv4l2 --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libx264 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libxvid libavutil 51. 35.100 / 51. 35.100 libavcodec 53. 61.100 / 53. 61.100 libavformat 53. 32.100 / 53. 32.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 61.100 / 2. 61.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 libpostproc 52. 0.100 / 52. 0.100

[mp3 @ 0x1efe840] Format mp3 detected only with low score of 24, misdetection possible! [mp3 @ 0x1efe840] max_analyze_duration 5000000 reached at 5015510 Input #0, mp3, from 'sample-128-and-lossless-mp3HD.mp3':

Duration: 00:03:39.35, start: 0.000000, bitrate: 666 kb/s

Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s

At least one output file must be specified


#2591 Feature Request: Add ability to use Quick Sync to transcode video files avcodec enhancement May 20, 2013

Hello,

Intel recently open sourced the necessary tools to be able to use hardware accelerated video encoding and decoding. This would be a valuable feature for FFmpeg to utilize this technology for transcoding workflows.

https://01.org/linuxgraphics/downloads/2013/2013q1-intel-graphics-stack-release


#2690 Red Cinema r3d files not supported avcodec enhancement Jun 20, 2013

Summary of the bug: I have tested it with more files from different sources, on fresh compiled git version of ffmpeg, on ffmpeg compiled without "libopenjpeg", but it doesn't work - R3d files from RED Cinema cannot be decoded.

[me@localhost modules]# ffmpeg -v 9 -loglevel 99 -i /me/Desktop/A002_C006_0205V7_001.R3D ffmpeg version 1.0.7 Copyright (c) 2000-2013 the FFmpeg developers

built on May 14 2013 21:59:35 with gcc 4.7.2 (GCC) 20121109 (Red Hat 4.7.2-8) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-frei0r --enable-gnutls --enable-libass --enable-libcdio --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --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. 73.101 / 51. 73.101 libavcodec 54. 59.100 / 54. 59.100 libavformat 54. 29.104 / 54. 29.104 libavdevice 54. 2.101 / 54. 2.101 libavfilter 3. 17.100 / 3. 17.100 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100

[r3d @ 0x7c8780] Format r3d probed with size=2048 and score=100 [r3d @ 0x7c8780] File position before avformat_find_stream_info() is 324 [libopenjpeg @ 0x7d6c80] Error decoding codestream.

Last message repeated 3 times

[r3d @ 0x7c8780] Probe buffer size limit 5000000 reached [r3d @ 0x7c8780] decoding for stream 0 failed [r3d @ 0x7c8780] Could not find codec parameters for stream 0 (Video: jpeg2000, 4096x2304, 1/240000): unspecified pixel format Consider increasing the value for the 'analyzeduration' and 'probesize' options [r3d @ 0x7c8780] File position after avformat_find_stream_info() is 6494364 /root/Desktop/A002_C006_0205V7_001.R3D: could not find codec parameters [AVIOContext @ 0x7d7e20] Statistics: 6529424 bytes read, 3 seeks


#3009 Support mvc avcodec enhancement Sep 28, 2013

Summary of the bug:Trying to analyze the AVC_codec_not_recognized_right_video_sample.m2ts. ffmpeg does not recognize the AVC codec in the m2ts file.

Was using the command $ ffmpeg -probesize 10240 -analyzeduration 1000 -i AVC_codec_not_recognized_right_video_sample.m2ts ffmpeg -probesize 10240 -analyzeduration 1000 -i right_video_sample.m2ts ffmpeg version N-56704-g3e0c78b Copyright (c) 2000-2013 the FFmpeg developers

built on Sep 27 2013 16:48:11 with gcc 4.7.3 (Gentoo 4.7.3 p1.2, pie-0.5.5) configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe -g' --extra-cflags='-march=native -O2 -pipe -g' --extra-cxxflags='-march=native -O2 -pipe -g' --disable-static --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-doc --disable-gnutls --enable-hardcoded-tables --enable-iconv --disable-network --disable-openssl --enable-ffplay --disable-vaapi --disable-vdpau --enable-zlib --enable-libvo-aacenc --disable-libvo-amrwbenc --enable-libmp3lame --disable-libfdk-aac --disable-libaacplus --disable-libfaac --enable-libtheora --disable-libtwolame --disable-libwavpack --enable-libx264 --enable-libxvid --disable-libcdio --disable-libiec61883 --enable-libdc1394 --disable-libcaca --enable-openal --disable-libv4l2 --disable-libpulse --enable-x11grab --disable-libflite --disable-frei0r --disable-fontconfig --disable-libass --enable-libfreetype --disable-libsoxr --enable-pthreads --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libopenjpeg --disable-libbluray --disable-libcelt --disable-libgme --disable-libgsm --disable-libmodplug --disable-libopus --disable-libquvi --disable-librtmp --disable-libschroedinger --disable-libspeex --enable-libvorbis --disable-libvpx --disable-amd3dnow --disable-amd3dnowext --disable-altivec --disable-vis --disable-neon --cpu=host libavutil 52. 46.100 / 52. 46.100 libavcodec 55. 33.101 / 55. 33.101 libavformat 55. 18.104 / 55. 18.104 libavdevice 55. 3.100 / 55. 3.100 libavfilter 3. 87.100 / 3. 87.100 libavresample 1. 1. 0 / 1. 1. 0 libswscale 2. 5.100 / 2. 5.100 libswresample 0. 17.103 / 0. 17.103 libpostproc 52. 3.100 / 52. 3.100

[mpegts @ 0x220a320] probed stream 0 failed [mpegts @ 0x220a320] Could not find codec parameters for stream 0 (Unknown: none (HDMV / 0x564D4448)): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options right_video_sample.m2ts: could not find codec parameters

mediainfo is able to recognize the AVC codec $ mediainfo AVC_codec_not_recognized_right_video_sample.m2ts General ID : 0 (0x0) Complete name : right_video_sample.m2ts Format : BDAV Format/Info? : Blu-ray Video File size : 9.77 MiB Duration : 4s 593ms Overall bit rate mode : Variable Overall bit rate : 17.7 Mbps Maximum Overall bit rate : 48.0 Mbps

Video ID : 4114 (0x1012) Menu ID : 1 (0x1) Format : AVC Format/Info? : Advanced Video Codec Format profile : Stereo High@L4.1 MultiView_Count : 2 Format settings, CABAC : Yes Format settings, ReFrames? : 4 frames Codec ID : 32 Duration : 4s 296ms Bit rate mode : Variable Bit rate : 17.0 Mbps Maximum bit rate : 22.6 Mbps Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate : 23.976 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.341 Stream size : 8.68 MiB (89%)

The output of $ ffmpeg -v 9 -loglevel 99 -i AVC_codec_not_recognized_right_video_sample.m2ts is show below

In comparison, the left video file from the same 3D source, is recognized

$ ffmpeg -i AVC_codec_recognized_left_video_sample.m2ts ffmpeg version N-56704-g3e0c78b Copyright (c) 2000-2013 the FFmpeg developers

built on Sep 27 2013 16:48:11 with gcc 4.7.3 (Gentoo 4.7.3 p1.2, pie-0.5.5) configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe -g' --extra-cflags='-march=native -O2 -pipe -g' --extra-cxxflags='-march=native -O2 -pipe -g' --disable-static --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-doc --disable-gnutls --enable-hardcoded-tables --enable-iconv --disable-network --disable-openssl --enable-ffplay --disable-vaapi --disable-vdpau --enable-zlib --enable-libvo-aacenc --disable-libvo-amrwbenc --enable-libmp3lame --disable-libfdk-aac --disable-libaacplus --disable-libfaac --enable-libtheora --disable-libtwolame --disable-libwavpack --enable-libx264 --enable-libxvid --disable-libcdio --disable-libiec61883 --enable-libdc1394 --disable-libcaca --enable-openal --disable-libv4l2 --disable-libpulse --enable-x11grab --disable-libflite --disable-frei0r --disable-fontconfig --disable-libass --enable-libfreetype --disable-libsoxr --enable-pthreads --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libopenjpeg --disable-libbluray --disable-libcelt --disable-libgme --disable-libgsm --disable-libmodplug --disable-libopus --disable-libquvi --disable-librtmp --disable-libschroedinger --disable-libspeex --enable-libvorbis --disable-libvpx --disable-amd3dnow --disable-amd3dnowext --disable-altivec --disable-vis --disable-neon --cpu=host libavutil 52. 46.100 / 52. 46.100 libavcodec 55. 33.101 / 55. 33.101 libavformat 55. 18.104 / 55. 18.104 libavdevice 55. 3.100 / 55. 3.100 libavfilter 3. 87.100 / 3. 87.100 libavresample 1. 1. 0 / 1. 1. 0 libswscale 2. 5.100 / 2. 5.100 libswresample 0. 17.103 / 0. 17.103 libpostproc 52. 3.100 / 52. 3.100

[mpegts @ 0x244e0a0] Stream #2: not enough frames to estimate rate; consider increasing probesize [NULL @ 0x2453540] start time is not set in estimate_timings_from_pts [mpegts @ 0x244e0a0] PES packet size mismatch [mpegts @ 0x244e0a0] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, mpegts, from 'AVC_codec_recognized_left_video_sample.m2ts':

Duration: 00:00:02.88, start: 11.608967, bitrate: 28465 kb/s Program 1

Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc Stream #0:1[0x1100]: Audio: dts (DTS-HD MA) ([134][0][0][0] / 0x0086), 48000 Hz, 5.1(side), fltp, 1536 kb/s Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)

$ mediainfo AVC_codec_recognized_left_video_sample.m2ts General ID : 0 (0x0) Complete name : AVC_codec_recognized_left_video_sample.m2ts Format : BDAV Format/Info? : Blu-ray Video File size : 9.77 MiB Duration : 2s 791ms Overall bit rate mode : Variable Overall bit rate : 28.8 Mbps Maximum Overall bit rate : 48.0 Mbps

Video ID : 4113 (0x1011) Menu ID : 1 (0x1) Format : AVC Format/Info? : Advanced Video Codec Format profile : High@L4.1 Format settings, CABAC : Yes Format settings, ReFrames? : 4 frames Codec ID : 27 Duration : 2s 878ms Bit rate mode : Variable Maximum bit rate : 33.9 Mbps Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate : 23.976 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive

Audio ID : 4352 (0x1100) Menu ID : 1 (0x1) Format : DTS Format/Info? : Digital Theater Systems Format profile : MA / Core Mode : 16 Format settings, Endianness : Big Muxing mode : Stream extension Codec ID : 134 Duration : 2s 763ms Bit rate mode : Variable Bit rate : Unknown / 1 509 Kbps Channel count : 6 channels Channel positions : Front: L C R, Side: L R, LFE Sampling rate : 48.0 KHz Bit depth : 24 bits Compression mode : Lossless / Lossy

Text ID : 4608 (0x1200) Menu ID : 1 (0x1) Format : PGS Codec ID : 144

All files have been submitted to the ftp server in incoming/AVC_codec_in_m2ts_not_recognized

How to reproduce:

Run 
$ ffmpeg -i AVC_codec_not_recognized_right_video_sample.m2ts

$ ffmpeg -v 9 -loglevel 99 -i AVC_codec_not_recognized_right_video_sample.m2ts 
ffmpeg version N-56704-g3e0c78b Copyright (c) 2000-2013 the FFmpeg developers
  built on Sep 27 2013 16:48:11 with gcc 4.7.3 (Gentoo 4.7.3 p1.2, pie-0.5.5)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe -g' --extra-cflags='-march=native -O2 -pipe -g' --extra-cxxflags='-march=native -O2 -pipe -g' --disable-static --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-doc --disable-gnutls --enable-hardcoded-tables --enable-iconv --disable-network --disable-openssl --enable-ffplay --disable-vaapi --disable-vdpau --enable-zlib --enable-libvo-aacenc --disable-libvo-amrwbenc --enable-libmp3lame --disable-libfdk-aac --disable-libaacplus --disable-libfaac --enable-libtheora --disable-libtwolame --disable-libwavpack --enable-libx264 --enable-libxvid --disable-libcdio --disable-libiec61883 --enable-libdc1394 --disable-libcaca --enable-openal --disable-libv4l2 --disable-libpulse --enable-x11grab --disable-libflite --disable-frei0r --disable-fontconfig --disable-libass --enable-libfreetype --disable-libsoxr --enable-pthreads --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libopenjpeg --disable-libbluray --disable-libcelt --disable-libgme --disable-libgsm --disable-libmodplug --disable-libopus --disable-libquvi --disable-librtmp --disable-libschroedinger --disable-libspeex --enable-libvorbis --disable-libvpx --disable-amd3dnow --disable-amd3dnowext --disable-altivec --disable-vis --disable-neon --cpu=host
  libavutil      52. 46.100 / 52. 46.100
  libavcodec     55. 33.101 / 55. 33.101
  libavformat    55. 18.104 / 55. 18.104
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 87.100 /  3. 87.100
  libavresample   1.  1.  0 /  1.  1.  0
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument '9'.                                               
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.                                
Reading option '-i' ... matched as input file with argument 'right_video_sample.m2ts'.                                             
Finished splitting the commandline.                                                                                                
Parsing a group of options: global .                                                                                               
Applying option v (set logging level) with argument 9.                                                                             
Successfully parsed a group of options.                                                                                            
Parsing a group of options: input file right_video_sample.m2ts.                                                                    
Successfully parsed a group of options.                                                                                            
Opening an input file: right_video_sample.m2ts.                                                                                    
[mpegts @ 0xffe0e0] Format mpegts probed with size=2048 and score=100                                                              
[mpegts @ 0xffe0e0] stream=0 stream_type=20 pid=1012 prog_reg_desc=HDMV                                                            
[mpegts @ 0xffe0e0] File position before avformat_find_stream_info() is 0
[mpegts @ 0xffe0e0] parser not found for codec none, packets or times may be invalid.
[mpegts @ 0xffe0e0] probing stream 0 pp:2500
[mpegts @ 0xffe0e0] probing stream 0 pp:2499
[mpegts @ 0xffe0e0] probing stream 0 pp:2498
[mpegts @ 0xffe0e0] probing stream 0 pp:2497
[mpegts @ 0xffe0e0] probing stream 0 pp:2496
[mpegts @ 0xffe0e0] probing stream 0 pp:2495
[mpegts @ 0xffe0e0] probing stream 0 pp:2494
[mpegts @ 0xffe0e0] probing stream 0 pp:2493
[mpegts @ 0xffe0e0] probing stream 0 pp:2492
[mpegts @ 0xffe0e0] probing stream 0 pp:2491
[mpegts @ 0xffe0e0] probing stream 0 pp:2490
[mpegts @ 0xffe0e0] probing stream 0 pp:2489
[mpegts @ 0xffe0e0] probing stream 0 pp:2488
[mpegts @ 0xffe0e0] probing stream 0 pp:2487
[mpegts @ 0xffe0e0] probing stream 0 pp:2486
[mpegts @ 0xffe0e0] probing stream 0 pp:2485
[mpegts @ 0xffe0e0] probing stream 0 pp:2484
[mpegts @ 0xffe0e0] probing stream 0 pp:2483
[mpegts @ 0xffe0e0] probing stream 0 pp:2482
[mpegts @ 0xffe0e0] probing stream 0 pp:2481
[mpegts @ 0xffe0e0] probing stream 0 pp:2480
[mpegts @ 0xffe0e0] probing stream 0 pp:2479
[mpegts @ 0xffe0e0] probing stream 0 pp:2478
[mpegts @ 0xffe0e0] probing stream 0 pp:2477
[mpegts @ 0xffe0e0] probing stream 0 pp:2476
[mpegts @ 0xffe0e0] probing stream 0 pp:2475
[mpegts @ 0xffe0e0] probing stream 0 pp:2474
[mpegts @ 0xffe0e0] probing stream 0 pp:2473
[mpegts @ 0xffe0e0] probing stream 0 pp:2472
[mpegts @ 0xffe0e0] probing stream 0 pp:2471
[mpegts @ 0xffe0e0] probing stream 0 pp:2470
[mpegts @ 0xffe0e0] probing stream 0 pp:2469
[mpegts @ 0xffe0e0] probing stream 0 pp:2468
[mpegts @ 0xffe0e0] probing stream 0 pp:2467
[mpegts @ 0xffe0e0] probing stream 0 pp:2466
[mpegts @ 0xffe0e0] probing stream 0 pp:2465
[mpegts @ 0xffe0e0] probing stream 0 pp:2464
[mpegts @ 0xffe0e0] probing stream 0 pp:2463
[mpegts @ 0xffe0e0] probing stream 0 pp:2462
[mpegts @ 0xffe0e0] probing stream 0 pp:2461
[mpegts @ 0xffe0e0] probing stream 0 pp:2460
[mpegts @ 0xffe0e0] probing stream 0 pp:2459
[mpegts @ 0xffe0e0] probed stream 0 failed
[mpegts @ 0xffe0e0] parser not found for codec none, packets or times may be invalid.
[mpegts @ 0xffe0e0] Probe buffer size limit of 5000000 bytes reached
[mpegts @ 0xffe0e0] Could not find codec parameters for stream 0 (Unknown: none (HDMV / 0x564D4448)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0xffe0e0] File position after avformat_find_stream_info() is 0
right_video_sample.m2ts: could not find codec parameters
[AVIOContext @ 0x10067a0] Statistics: 5558420 bytes read, 3 seeks

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.


#3085 Audio in broken transport stream can be decoded with other software avcodec enhancement Oct 26, 2013

Summary of the bug: When trying to convert a file I get the following error:

[aac @ 03254800] More than one AAC RDB per ADTS frame is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.

Is this something that is supported and need to be enabled or something which needs support?

Can one choose the library used for decoding?(fdk or libvo or aac)?

ffmpeg version N-54802-gfc6de70 Copyright (c) 2000-2013 the FFmpeg developers
built on Oct 14 2013 09:33:16 with gcc 4.8.0 (GCC)
 configuration: --arch=x86 --target-os=mingw32 --cross-prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264 --enable-avisynth --enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-libopus --disable-w32threads --enable-frei0r --enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-libxavs --extra-cflags=-DPTW32_STATIC_LIB --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx --enable-libilbc --enable-iconv --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC --enable-libmodplug --extra-libs=-lstdc++ --enable-libcaca --prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/i686-w64-mingw32 --enable-static --disable-shared --enable-libsoxr --enable-fontconfig --enable-libass   libavutil      52. 40.100 / 52. 40.100
libavcodec     55. 18.102 / 55. 18.102
libavformat    55. 12.102 / 55. 12.102
libavdevice    55.  3.100 / 55.  3.100
libavfilter     3. 81.101 /  3. 81.101
libswscale      2.  4.100 /  2.  4.100
libswresample   0. 17.102 /  0. 17.102
libpostproc    52.  3.100 / 52.  3.100

#3247 Transparent subtitle outlines (IDX/SUB) upon conversion to XSUB become solid, and colors become b&w avcodec enhancement Dec 26, 2013

Summary of the bug:

Transparent subtitle outlines (IDX/SUB) upon conversion to XSUB become solid, and colors become black and white.

How to reproduce:

ffmpeg -v 9 -loglevel 99 -report -i transpidx.avi -i t

ranspidx.idx -vcodec copy -an transpxsub.avi


#3392 FFmpeg does not show video bitrates for H.264 video avcodec enhancement Feb 17, 2014

When using ffmpeg -i file.mkv , FFmpegdoes not display the video bitrate of .mkv files All other containers seems to work fine.


#3577 add LAME tag for MP3s avcodec enhancement Apr 21, 2014

When creating MP3s using FFMPEG, the LAME tag doesn't get added. Normally, it looks like this:

Writing library  : LAME3.99r
Encoding settings: -m j -V 2 -q 0 -lowpass 18.5 --vbr-new -b 32

But with libmp3lame it looks like this only:

Writing library : LAME3.99.5

#3595 Support >6 channels in E-AC-3 audio avcodec enhancement Apr 27, 2014

E-AC-3 supports up to 15 full-bandwidth channels, but libavcodec's encoder currently doesn't support 6.1 and 7.1 channel layouts. Do these layouts just need to be added to ff_ac3_channel_layouts, or would this require additional work on the encoder?


#3651 UT Video Codec is inefficient compared to libutvideo avcodec enhancement May 18, 2014

Summary of the bug: Not really sure if i am supposed to write these things here, as it's not really a bug, but here goes.

LAV Filter use ffmpeg for Decoding, and hence i direct this here.

The performance in decoding Lagarith and UT Video Codec are extremely bad, most of the time it's over 100% slower.

Originally i thought it was faster, either i have been mistaken or something has happened.

However, worth noting, Lagarith is limited to 2 threads in it's original decoder, however comparing the performance make this insignificant as ffmpeg will use more and still not be at the same pace.

How to reproduce:

Pretty sure you can just use:

ffmpeg -i "lagarith.avi" -o "Raw.avi"

so just decode a lagarith file to raw, and you will see the performance, than compare it to using the original decoder.


#3854 Does hevc support ARM (VFP and NEON) optimization? avcodec enhancement Aug 15, 2014

Dear Sirs:

I downloaded the latest source code and I found the HEVC does not support ARM(NEON and VFP) optimization. Is there any plan to implement it?


#4141 HEVC: 1920x1080i file decoded as 1920x540p avcodec enhancement Nov 26, 2014

Summary of the bug: It seems ffmpeg is decoding this sample as 1920x540 progressive instead of 1920x1080 interlaced.

How to reproduce:

ffmpeg version N-67999-gd0879a9 Copyright (c) 2000-2014 the FFmpeg developers
  built on Nov 25 2014 11:37:18 with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib
  libavutil      54. 15.100 / 54. 15.100
  libavcodec     56. 13.100 / 56. 13.100
  libavformat    56. 15.100 / 56. 15.100
  libavdevice    56.  3.100 / 56.  3.100
  libavfilter     5.  2.103 /  5.  2.103
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
[hevc @ 02a52aa0] Could not find ref with POC 72
[hevc @ 02a52aa0] Could not find ref with POC 68
[hevc @ 02a52aa0] Could not find ref with POC 64
Input #0, mpeg, from 'Service 5 (T2 Test) (2014-11-26 01-39-13-695).mpg':
  Duration: 00:00:04.69, start: 50223.448456, bitrate: 3204 kb/s
    Stream #0:0[0x1e0]: Video: hevc (Main), yuv420p(tv), 1920x540, 25 fps, 25 tbr, 90k tbn, 25 tbc
    Stream #0:1[0x80]: Audio: eac3, 48000 Hz, stereo, fltp, 192 kb/s

#4360 reencode mbs even at -mbd 0 when coeffs require cliping avcodec enhancement Mar 8, 2015

Summary of the bug:

A specific sample video experiences heavy artifacts when transcoded to MPEG-1 video using -mbd 0 (or leaving it as default), even at very high bit rates. -q:v 1 increases the severity.

How to reproduce:

Download this video: http://trailers.divx.com/divx_prod/profiles/Micayala_DivX1080p_ASP.divx

Run this (used Zoranoe git-9d7e42e 64-bit static build)

% ffmpeg -i Micayala_DivX1080p_ASP.divx -b:v 30000k -bf 5 -report -y artifacts.m1v

Notice artifacts on the DivX logo animations and both the start and end of the video.

Changing -b:v to 5000k or 30000k did not have any effect. -q:v 1 increased the severity. The problem does not occur when using -mbd 1 or -mbd 2.


#4409 Implement decoding for 10bit Grayscale (Y only) pixelformat from DPX avcodec enhancement Mar 30, 2015

Summary of the bug: Hello, we are using a Scanity HDR filmscanner which is able to create 10bit grayscale DPX files. Current ffmpeg versions are not able to decode/encode this pixelformat. I need just to decode this pixelformat from DPX files from a Scanity scanner. So, in fact, this is not a bug, it is an improvement ticket.

How to reproduce: just try to decode a DPX from the attached testbed (DPX_Samples_10Bit_Y_Only.zip).

C:\Users\gersti>ffmpegnew -i "I:\DPX\_DPX examples\Bojan\ffmpegticket\0090000.dpx"
ffmpeg version N-70803-g0f16dfd Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libblu
ray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw
b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --
enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enab
le-zlib
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 28.100 / 56. 28.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 12.100 /  5. 12.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
[dpx @ 0000000002d27840] Packing 2 is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been impl
emented.
[dpx_pipe @ 0000000002d16600] decoding for stream 0 failed
[dpx_pipe @ 0000000002d16600] Could not find codec parameters for stream 0 (Video: dpx, none, 2048x1520): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
I:\DPX\_DPX examples\Bojan\ffmpegticket\0090000.dpx: could not find codec parameters
Input #0, dpx_pipe, from 'I:\DPX\_DPX examples\Bojan\ffmpegticket\0090000.dpx':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: dpx, none, 2048x1520, 25 tbr, 25 tbn, 25 tbc
At least one output file must be specified

Additonal Information from SCANITY HDR: Supported Pixel Formats: *Bits per Component (Kodak Cineon, DPX): 8/10/16bit per Component *Color Components (DPX, TIFF): RGB / RGBA / Y only / Alpha only

10 Bit Y Only: SCANITY usually will generate a DPX V2.0 conform images in the 10 Bit Y only B image packing mode, which is used in the SPIRIT family. This switch allows to change the image packing to the DPX V2.0 conform 10 Bit Y only A mode.

I guess ffmpeg means with "[dpx @ 0000000002d27840] Packing 2 is not implemented" the B IMAGE PACKING MODE.

Best Regards Christoph Gerstbauer


#4638 Multithreaded FLAC encoding avcodec enhancement Jun 18, 2015

I found that FLAC encoding utilizes only 100% of CPU, instead, e.g. 1200% (I have 12-core computer). It takes so long when encoding large files at maximum compression level.

Could you add multithreading to FLAC encoding? Maybe, openCL would be help common users too. flaCCL, FlaCuda? are multithreaded and have better compression than that one of ffmpeg. Could you include them into ffmpeg?

I hope this request won't hang here 3-2 years like many others. :'(


#4799 audio codec conversion codec 0x0135 sipro lab kelvin avcodec enhancement Aug 24, 2015

I'm trying to convert codec 0x0135 sipro lab kelvin to mp3. I think ffmpeg currently doesn't support this conversion.

commandline - ffmpeg -i sipro_codec_wav.wav test.mp3 http://www.datafilehost.com/d/cef9a4d9 http://www.datafilehost.com/d/d87133da http://www.datafilehost.com/d/05a4dc9e - sample wav


#4907 Support decoding animated WebP images avcodec enhancement Oct 5, 2015

Summary of the bug: Currently, FFmpeg can encode animated WebPs?, but cannot decode them, which is inconvenient for users.

Decoding animated WebPs? right now generates "image data not found error" due to "unsupported chunk": https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/webp.c#L1504

How to reproduce: (example input image: https://www.gstatic.com/webp/animated/1.webp)

% ffmpeg -i 1.webp 1.gif
ffmpeg version N-75787-g1d4af04 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
  configuration: --enable-libwebp
  libavutil      55.  2.100 / 55.  2.100
  libavcodec     57.  4.100 / 57.  4.100
  libavformat    57.  3.100 / 57.  3.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 10.100 /  6. 10.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.100 /  2.  0.100
[webp @ 0x3782940] image data not found
[webp_pipe @ 0x3781360] decoding for stream 0 failed

< Rest of the output truncated >


#4947 libx264/265 encoder "parameter unknown" is a warning rather than an error avcodec enhancement Oct 20, 2015

Summary of the bug: A cyan-yellow warning is displayed when an invalid parameter is used for libx264/265 param options, which continues the encoding process, furthermore with the combined use of verbose messages the console output may scroll far enough for this error to be missed, it has created confusion that lead to assumption of a bug and has spent unnecessary effort and time spent in discussions.

The mistake in this case was of the use of "-" minus/dash which is a ffmpeg param, not the encoder option.

x265 case: Unknown option -crf.

x264 case: Error parsing option "-crf = 20".

As we can see, the x264 message is even closer, it is actually written as an error, but it still appears and behaves as a warning and the encoding process continues.

How to reproduce:

% ffmpeg -i input -x265-params -crf=20 ... output
ffmpeg version ... N/A
built on ... N/A

#5213 Change Flags for MPEG files without reencode avcodec enhancement Feb 2, 2016

Is it possible to implemente a feature in MPEG to change flags in MPEG files, without the need to reencode? This would greatly help in cases when it is needed to change aspect ratio, frame rate, encoding profiles, etc.


#5361 support for the options of decoding quality of videotoolbox avcodec enhancement Mar 22, 2016

thank ffmpeg team for the good app.

as i said in the ticket #5272, seeing "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/VideoToolbox.framework/Versions/A/Headers/VTDecompressionProperties.h" videotoolbox decoder has the options of decoding quality.

there is a commit of such a function in vlc player. [vlc-commits] videotoolbox: add temporal deinterlacer option ​https://mailman.videolan.org/pipermail/vlc-commits/2015-August/031929.html

i request supports for the below options. for denterlace kVTDecompressionPropertyKey_FieldMode kVTDecompressionPropertyKey_DeinterlaceMode

for scale kVTDecompressionPropertyKey_ReducedResolutionDecode

for frame drop kVTDecompressionPropertyKey_ReducedFrameDelivery kVTDecompressionPropertyKey_OnlyTheseFrames

for realtime playback kVTDecompressionPropertyKey_SuggestedQualityOfServiceTiers

though there are some options pixel formats and kVTDecompressionPropertyKey_ReducedCoefficientDecode, i don't evaluate these.


#5561 Implement a tiff parser avcodec enhancement May 16, 2016

when sending TIFF files to ffmpeg via piped input -> error:

[tiff_pipe @ 0000024d6abdcf40] Could not find codec parameters for stream 0 (Video: tiff, none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options

I successfully tested piped input with png and jpg files

ffmpeg started on 2016-05-16 at 00:41:45
Report written to "ffmpeg-20160516-004145.log"
Command line:
ffmpeg -v 9 -framerate 25 -i pipe:0 test.mp4 -y -report < file_1_test.tif
ffmpeg version N-79173-gbe746ae Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.0 (GCC)
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
  libavutil      55. 19.100 / 55. 19.100
  libavcodec     57. 32.100 / 57. 32.100
  libavformat    57. 29.101 / 57. 29.101
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 40.102 /  6. 40.102
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument '9'.
Reading option '-framerate' ... matched as AVOption 'framerate' with argument '25'.
Reading option '-i' ... matched as input file with argument 'pipe:0'.
Reading option 'test.mp4' ... matched as output file.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument 9.
Applying option y (overwrite output files) with argument 1.
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file pipe:0.
Successfully parsed a group of options.
Opening an input file: pipe:0.
[pipe @ 00000241e664f080] Setting default whitelist 'crypto'
[tiff_pipe @ 00000241e664e0e0] Format tiff_pipe probed with size=2048 and score=51
[tiff_pipe @ 00000241e664e0e0] Before avformat_find_stream_info() pos: 0 bytes read:32768 seeks:0
[tiff_pipe @ 00000241e664e0e0] parser not found for codec tiff, packets or times may be invalid.
[tiff_pipe @ 00000241e664e0e0] Could not find codec parameters for stream 0 (Video: tiff, none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[tiff_pipe @ 00000241e664e0e0] After avformat_find_stream_info() pos: 0 bytes read:32768 seeks:0 frames:0
pipe:0: could not find codec parameters
Input #0, tiff_pipe, from 'pipe:0':
  Duration: N/A, bitrate: N/A
    Stream #0:0, 0, 1/25: Video: tiff, none, 25 tbr, 25 tbn, 25 tbc
Successfully opened the file.
Parsing a group of options: output file test.mp4.
Successfully parsed a group of options.
Opening an output file: test.mp4.
Output #0, mp4, to 'test.mp4':
Output file #0 does not contain any stream
[AVIOContext @ 00000241e6657200] Statistics: 32768 bytes read, 0 seeks

for comparison, here I am using the same TIFF file with the -i option, which works fine:

ffmpeg started on 2016-05-16 at 00:43:15
Report written to "ffmpeg-20160516-004315.log"
Command line:
ffmpeg -v 9 -framerate 25 -i file_1_test.tif test.mp4 -y -report
ffmpeg version N-79173-gbe746ae Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.0 (GCC)
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
  libavutil      55. 19.100 / 55. 19.100
  libavcodec     57. 32.100 / 57. 32.100
  libavformat    57. 29.101 / 57. 29.101
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 40.102 /  6. 40.102
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument '9'.
Reading option '-framerate' ... matched as AVOption 'framerate' with argument '25'.
Reading option '-i' ... matched as input file with argument 'file_1_test.tif'.
Reading option 'test.mp4' ... matched as output file.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument 9.
Applying option y (overwrite output files) with argument 1.
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file file_1_test.tif.
Successfully parsed a group of options.
Opening an input file: file_1_test.tif.
[file @ 000002bc834af0a0] Setting default whitelist 'file,crypto'
[tiff_pipe @ 000002bc834ae100] Format tiff_pipe probed with size=2048 and score=51
[tiff_pipe @ 000002bc834ae100] Before avformat_find_stream_info() pos: 0 bytes read:32768 seeks:0
[tiff_pipe @ 000002bc834ae100] parser not found for codec tiff, packets or times may be invalid.
[tiff_pipe @ 000002bc834ae100] parser not found for codec tiff, packets or times may be invalid.
[tiff_pipe @ 000002bc834ae100] After avformat_find_stream_info() pos: 548628 bytes read:548628 seeks:0 frames:1
Input #0, tiff_pipe, from 'file_1_test.tif':
  Duration: N/A, bitrate: N/A
    Stream #0:0, 1, 1/25: Video: tiff, rgba, 480x270 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
Successfully opened the file.
Parsing a group of options: output file test.mp4.
Successfully parsed a group of options.
Opening an output file: test.mp4.
[file @ 000002bc83547a40] Setting default whitelist 'file,crypto'
Successfully opened the file.
detected 4 logical cores
[graph 0 input from stream 0:0 @ 000002bc8354aaa0] Setting 'video_size' to value '480x270'
[graph 0 input from stream 0:0 @ 000002bc8354aaa0] Setting 'pix_fmt' to value '28'
[graph 0 input from stream 0:0 @ 000002bc8354aaa0] Setting 'time_base' to value '1/25'
[graph 0 input from stream 0:0 @ 000002bc8354aaa0] Setting 'pixel_aspect' to value '1/1'
[graph 0 input from stream 0:0 @ 000002bc8354aaa0] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:0 @ 000002bc8354aaa0] Setting 'frame_rate' to value '25/1'
[graph 0 input from stream 0:0 @ 000002bc8354aaa0] w:480 h:270 pixfmt:rgba tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2
[format @ 000002bc8354b120] compat: called with args=[yuv420p|yuvj420p|yuv422p|yuvj422p|yuv444p|yuvj444p|nv12|nv16|nv21]
[format @ 000002bc8354b120] Setting 'pix_fmts' to value 'yuv420p|yuvj420p|yuv422p|yuvj422p|yuv444p|yuvj444p|nv12|nv16|nv21'
[auto-inserted scaler 0 @ 000002bc8354b1e0] Setting 'flags' to value 'bicubic'
[auto-inserted scaler 0 @ 000002bc8354b1e0] w:iw h:ih flags:'bicubic' interl:0
[format @ 000002bc8354b120] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed_null_0' and the filter 'format'
[AVFilterGraph @ 000002bc834adb80] query_formats: 4 queried, 2 merged, 1 already done, 0 delayed
[auto-inserted scaler 0 @ 000002bc8354b1e0] picking yuv444p out of 8 ref:rgba alpha:1
[auto-inserted scaler 0 @ 000002bc8354b1e0] w:480 h:270 fmt:rgba sar:1/1 -> w:480 h:270 fmt:yuv444p sar:1/1 flags:0x4
No pixel format specified, yuv444p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 000002bc83546fe0] using mv_range_thread = 24
[libx264 @ 000002bc83546fe0] using SAR=1/1
[libx264 @ 000002bc83546fe0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 000002bc83546fe0] profile High 4:4:4 Predictive, level 2.1, 4:4:4 8-bit
[libx264 @ 000002bc83546fe0] 264 - core 148 r2665 a01e339 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'test.mp4':
  Metadata:
    encoder         : Lavf57.29.101
    Stream #0:0, 0, 1/12800: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv444p, 480x270 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc
    Metadata:
      encoder         : Lavc57.32.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream mapping:
  Stream #0:0 -> #0:0 (tiff (native) -> h264 (libx264))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
Clipping frame in rate conversion by 0.000008
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[output stream 0:0 @ 000002bc8354ae00] EOF on sink link output stream 0:0:default.
No more output streams to write to, finishing.
[libx264 @ 000002bc83546fe0] frame=   0 QP=15.09 NAL=3 Slice:I Poc:0   I:510  P:0    SKIP:0    size=1209 bytes
frame=    1 fps=0.0 q=28.0 Lsize=       3kB time=00:00:00.04 bitrate= 539.6kbits/s speed=N/A    
video:2kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 42.224564%
Input file #0 (file_1_test.tif):
  Input stream #0:0 (video): 1 packets read (548628 bytes); 1 frames decoded; 
  Total: 1 packets (548628 bytes) demuxed
Output file #0 (test.mp4):
  Output stream #0:0 (video): 1 frames encoded; 1 packets muxed (1897 bytes); 
  Total: 1 packets (1897 bytes) muxed
1 frames successfully decoded, 0 decoding errors
[AVIOContext @ 000002bc83547b20] Statistics: 30 seeks, 24 writeouts
[libx264 @ 000002bc83546fe0] frame I:1     Avg QP:15.09  size:  1209
[libx264 @ 000002bc83546fe0] mb I  I16..4:  0.6% 89.2% 10.2%
[libx264 @ 000002bc83546fe0] 8x8 transform intra:89.2%
[libx264 @ 000002bc83546fe0] coded y,u,v intra: 4.6% 0.0% 0.0%
[libx264 @ 000002bc83546fe0] i16 v,h,dc,p:  0% 33% 67%  0%
[libx264 @ 000002bc83546fe0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  0%  0% 100%  0%  0%  0%  0%  0%  0%
[libx264 @ 000002bc83546fe0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 34% 24%  4%  2%  0%  1%  8%  2%
[libx264 @ 000002bc83546fe0] kb/s:241.80
[AVIOContext @ 000002bc834b7220] Statistics: 548628 bytes read, 0 seeks

#5733 Dolby-E decoding avcodec enhancement Jul 25, 2016

Hello,

Does FFmpeg support Dolby-E decoding ? I have attached 2 files:

a) Dolby-E data with SMPTE-337 b) Dolby-E data

Kind Regards,


#3815 libcdio only works with -ss 00 avdevice defect Jul 30, 2014

Summary of the bug: The (undocumented) libcdio device does not work directly. How to reproduce:

ffmpeg -f libcdio -i /dev/sr0 test.wav 

always end instantly and did not produce any valid file.

A possible workaround is:

ffmpeg -ss 00 -f libcdio -i /dev/sr0 test.wav 

I use git version.

(I tried on another computer with ffmpeg stable release and it didn't work, too.)

Here is the output: $ ffmpeg -f libcdio -i /dev/sr0 test.wav ffmpeg version N-65021-gc2ef844 Copyright (c) 2000-2014 the FFmpeg developers

built on Jul 27 2014 14:04:31 with gcc 4.8.2 (Gentoo 4.8.2 p1.3r1, pie-0.5.8r1) configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-O2 -pipe -march=native -fomit-frame-pointer' --extra-cflags='-O2 -pipe -march=native -fomit-frame-pointer' --extra-cxxflags='-O2 -pipe -march=native -fomit-frame-pointer' --disable-static --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --disable-stripping --enable-nonfree --enable-version3 --enable-nonfree --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=oss --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-doc --enable-gnutls --enable-hardcoded-tables --enable-iconv --enable-network --enable-openssl --disable-libsmbclient --enable-ffplay --enable-vaapi --enable-vdpau --enable-xlib --enable-zlib --enable-libvo-aacenc --disable-libvo-amrwbenc --enable-libmp3lame --enable-libaacplus --disable-libfaac --enable-libtheora --disable-libtwolame --enable-libwavpack --disable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --enable-opengl --disable-libv4l2 --disable-libpulse --enable-x11grab --disable-libbs2b --disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig --enable-ladspa --disable-libass --enable-libfreetype --disable-libsoxr --enable-pthreads --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libfdk-aac --disable-libopenjpeg --enable-libbluray --enable-libcelt --disable-libgme --disable-libgsm --disable-libmodplug --enable-libopus --enable-libquvi --disable-librtmp --disable-libssh --disable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-amd3dnow --disable-amd3dnowext --disable-avx --disable-avx2 --disable-fma3 --disable-fma4 --disable-sse3 --disable-sse4 --disable-sse42 --disable-xop --cpu=host libavutil 52. 92.101 / 52. 92.101 libavcodec 55. 69.100 / 55. 69.100 libavformat 55. 49.100 / 55. 49.100 libavdevice 55. 13.102 / 55. 13.102 libavfilter 4. 11.102 / 4. 11.102 libavresample 1. 3. 0 / 1. 3. 0 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100

Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, libcdio, from '/dev/sr0':

Duration: 00:39:21.61, bitrate: N/A

Chapter #0.0: start 0.000000, end 89.360000 Metadata:

title : track 01

Chapter #0.1: start 89.360000, end 100.453333 Metadata:

title : track 02

Chapter #0.2: start 100.453333, end 346.680000 Metadata:

title : track 03

Chapter #0.3: start 346.680000, end 414.746667 Metadata:

title : track 04

Chapter #0.4: start 414.746667, end 576.333333 Metadata:

title : track 05

Chapter #0.5: start 576.333333, end 631.093333 Metadata:

title : track 06

Chapter #0.6: start 631.093333, end 723.906667 Metadata:

title : track 07

Chapter #0.7: start 723.906667, end 771.813333 Metadata:

title : track 08

Chapter #0.8: start 771.813333, end 862.746667 Metadata:

title : track 09

Chapter #0.9: start 862.746667, end 940.346667 Metadata:

title : track 10

Chapter #0.10: start 940.346667, end 1079.186667 Metadata:

title : track 11

Chapter #0.11: start 1079.186667, end 1190.653333 Metadata:

title : track 12

Chapter #0.12: start 1190.653333, end 1238.746667 Metadata:

title : track 13

Chapter #0.13: start 1238.746667, end 1393.866667 Metadata:

title : track 14

Chapter #0.14: start 1393.866667, end 1467.586667 Metadata:

title : track 15

Chapter #0.15: start 1467.586667, end 1548.733333 Metadata:

title : track 16

Chapter #0.16: start 1548.733333, end 1595.493333 Metadata:

title : track 17

Chapter #0.17: start 1595.493333, end 1720.413333 Metadata:

title : track 18

Chapter #0.18: start 1720.413333, end 1801.480000 Metadata:

title : track 19

Chapter #0.19: start 1801.480000, end 1932.146667 Metadata:

title : track 20

Chapter #0.20: start 1932.146667, end 1969.053333 Metadata:

title : track 21

Chapter #0.21: start 1969.053333, end 2135.746667 Metadata:

title : track 22

Chapter #0.22: start 2135.746667, end 2176.933333 Metadata:

title : track 23

Chapter #0.23: start 2176.933333, end 2361.613333 Metadata:

title : track 24

Stream #0:0: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s

Output #0, wav, to 'test.wav':

Metadata:

ISFT : Lavf55.49.100 Chapter #0.0: start 0.000000, end 89.360000 Metadata:

title : track 01

Chapter #0.1: start 89.360000, end 100.453333 Metadata:

title : track 02

Chapter #0.2: start 100.453333, end 346.680000 Metadata:

title : track 03

Chapter #0.3: start 346.680000, end 414.746667 Metadata:

title : track 04

Chapter #0.4: start 414.746667, end 576.333333 Metadata:

title : track 05

Chapter #0.5: start 576.333333, end 631.093333 Metadata:

title : track 06

Chapter #0.6: start 631.093333, end 723.906667 Metadata:

title : track 07

Chapter #0.7: start 723.906667, end 771.813333 Metadata:

title : track 08

Chapter #0.8: start 771.813333, end 862.746667 Metadata:

title : track 09

Chapter #0.9: start 862.746667, end 940.346667 Metadata:

title : track 10

Chapter #0.10: start 940.346667, end 1079.186667 Metadata:

title : track 11

Chapter #0.11: start 1079.186667, end 1190.653333 Metadata:

title : track 12

Chapter #0.12: start 1190.653333, end 1238.746667 Metadata:

title : track 13

Chapter #0.13: start 1238.746667, end 1393.866667 Metadata:

title : track 14

Chapter #0.14: start 1393.866667, end 1467.586667 Metadata:

title : track 15

Chapter #0.15: start 1467.586667, end 1548.733333 Metadata:

title : track 16

Chapter #0.16: start 1548.733333, end 1595.493333 Metadata:

title : track 17

Chapter #0.17: start 1595.493333, end 1720.413333 Metadata:

title : track 18

Chapter #0.18: start 1720.413333, end 1801.480000 Metadata:

title : track 19

Chapter #0.19: start 1801.480000, end 1932.146667 Metadata:

title : track 20

Chapter #0.20: start 1932.146667, end 1969.053333 Metadata:

title : track 21

Chapter #0.21: start 1969.053333, end 2135.746667 Metadata:

title : track 22

Chapter #0.22: start 2135.746667, end 2176.933333 Metadata:

title : track 23

Chapter #0.23: start 2176.933333, end 2361.613333 Metadata:

title : track 24

Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s Metadata:

encoder : Lavc55.69.100 pcm_s16le

Stream mapping:

Stream #0:0 -> #0:0 (pcm_s16le (native) -> pcm_s16le (native))

Press [q] to stop, ? for help size= 0kB time=00:00:00.00 bitrate=N/A video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)


#2410 ffmpeg down with video4linux2. avdevice defect Mar 28, 2013

I have Easycap DC60 card(a video capture card). it runs on kernel 3.2 with stk1160 driver. I download ffmpeg source code on 3013/03/29 and compile it. when I run a commandline:

[root@localhost ~]# ffmpeg -f video4linux2 -pix_fmt yuv420p -i /dev/video0  -vco                                                      dec mpeg4 -b:v 1200k -y test.avi
ffmpeg version N-51426-gdd17843 Copyright (c) 2000-2013 the FFmpeg developers
  built on Mar 29 2013 00:22:28 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-3)
  configuration: --enable-version3 --enable-libopencore-amrnb --enable-libopenco                                                      re-amrwb --enable-avfilter --enable-nonfree --enable-libmp3lame --enable-gpl --e                                                      nable-libfaac --enable-libx264 --enable-pthreads --disable-stripping --enable-li                                                      bass --extra-cflags=-I/usr/local/include --disable-debug
  libavutil      52. 22.101 / 52. 22.101
  libavcodec     55.  2.100 / 55.  2.100
  libavformat    55.  0.100 / 55.  0.100
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 48.105 /  3. 48.105
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
'''[video4linux2,v4l2 @ 0x99704a0] ioctl(VIDIOC_G_PARM): Inappropriate ioctl for de                                                      vice
/dev/video0: Inappropriate ioctl for device'''

#314 OpenAL device does not work on OS X avdevice enhancement Jun 27, 2011

configure is not set to find openal on OS X.

The fix for the linker check is easy: add "-Wl,-framework,OpenAL" to the list of flags to check

-enabled openal     && { { for al_libs in "${OPENAL_LIBS}" "-lopenal" "-lOpenAL32"; do
+enabled openal     && { { for al_libs in "${OPENAL_LIBS}" "-lopenal" "-lOpenAL32" "-Wl,-framework,OpenAL"; do

I don't know how to fix the header check to look for multiple possibilities, but on OS X the header in the OpenAL framework is found in OpenAL/al.h (not AL/al.h like in linux). If I change the header check in configure and the includes in libavdevice/openal-dec.c, the build and linkage works well.

However, running 'ffmpeg -f openal' as suggested in the manual fails with an malloc error, so this might just not be doable on OS X.

nieder $ /usr/local/ffmpeg-git/bin/ffmpeg -list_devices true -f openal -i dummy out.ogg
ffmpeg version N-31036-g65eae2a, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jun 27 2011 10:29:19 with gcc 4.0.1 (Apple Inc. build 5493)
  configuration: --prefix=/usr/local/ffmpeg-git --mandir=/usr/local/ffmpeg-git/share/man --disable-static --enable-shared --enable-gpl --enable-version3 --enable-postproc --enable-pthreads --enable-x11grab --enable-bzlib --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdirac --enable-libfreetype --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-openal --enable-zlib --disable-debug --extra-cflags='-I/sw/lib/libspeex1/include -I/sw/include -I/usr/X11R6/include' --extra-ldflags='-L/sw/lib/libspeex1/lib -L/sw/lib -L/usr/X11R6/lib'
  libavutil    51. 10. 0 / 51. 10. 0
  libavcodec   53.  7. 0 / 53.  7. 0
  libavformat  53.  4. 0 / 53.  4. 0
  libavdevice  53.  2. 0 / 53.  2. 0
  libavfilter   2. 24. 0 /  2. 24. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[openal @ 0x200a800] List of OpenAL capture devices on this system:
[openal @ 0x200a800]   Built-in Microphone
dummy: Immediate exit requested

nieder $ /usr/local/ffmpeg-git/bin/ffmpeg -f openal -i 'Built-in Microphone' out.ogg
ffmpeg version N-31036-g65eae2a, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jun 27 2011 10:29:19 with gcc 4.0.1 (Apple Inc. build 5493)
  configuration: --prefix=/usr/local/ffmpeg-git --mandir=/usr/local/ffmpeg-git/share/man --disable-static --enable-shared --enable-gpl --enable-version3 --enable-postproc --enable-pthreads --enable-x11grab --enable-bzlib --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdirac --enable-libfreetype --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-openal --enable-zlib --disable-debug --extra-cflags='-I/sw/lib/libspeex1/include -I/sw/include -I/usr/X11R6/include' --extra-ldflags='-L/sw/lib/libspeex1/lib -L/sw/lib -L/usr/X11R6/lib'
  libavutil    51. 10. 0 / 51. 10. 0
  libavcodec   53.  7. 0 / 53.  7. 0
  libavformat  53.  4. 0 / 53.  4. 0
  libavdevice  53.  2. 0 / 53.  2. 0
  libavfilter   2. 24. 0 /  2. 24. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0
mpeg(49840,0xa025b720) malloc: *** error for object 0x1e2c0e0: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
mpeg(49840,0xa025b720) malloc: *** error for object 0x1e2c0e0: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
[openal @ 0x200a800] Error: ALC Invalid Device
Bus error

#5517 Add support for basic HTTP authentication to build-in http server avdevice enhancement May 6, 2016

I'm streaming webcam by using this command line

ffmpeg -f dshow -video_size 1920x1080 -rtbufsize 1K -framerate 15 -vcodec mjpeg -i video="USB Video Device" -vcodec copy -f mjpeg -listen 1 ​http://0.0.0.0:8090

However, it would be nice to protect this stream by specifying username and password, like this

-username user -password password


#5493 framerate filter output appears to be affected by request_frame() calls avfilter defect Apr 29, 2016

Summary of the bug: Depending on (weird) input frame rates and chosen framerate filter frame rate and other circumstances, the framerate filter results in an incomplete MB tree 1st pass stats file.

How to reproduce:

$ ffprobe -select_streams v -show_entries stream=r_frame_rate,avg_frame_rate oldphone.mp4
ffprobe version N-79691-g66dd21d Copyright (c) 2007-2016 the FFmpeg developers
  built with Apple LLVM version 7.0.2 (clang-700.1.81)
  configuration: --enable-gpl --enable-nonfree --disable-ffserver --enable-shared --enable-openssl --enable-libspeex --enable-libopus --enable-libfdk-aac --enable-libx265 --enable-libx264 --enable-libxvid --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libvidstab --extra-cflags=-I/sw/include --extra-libs=-L/sw/lib
  libavutil      55. 23.100 / 55. 23.100
  libavcodec     57. 38.100 / 57. 38.100
  libavformat    57. 34.103 / 57. 34.103
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 44.100 /  6. 44.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'oldphone.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2016-04-24 09:48:33
    location        : +60.4916+022.2685/
    location-eng    : +60.4916+022.2685/
    com.android.version: 6.0.1
  Duration: 00:00:52.12, start: 0.000000, bitrate: 15880 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 15715 kb/s, SAR 1:1 DAR 16:9, 25.48 fps, 90k tbr, 90k tbn (default)
    Metadata:
      creation_time   : 2016-04-24 09:48:33
      handler_name    : VideoHandle
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 196 kb/s (default)
    Metadata:
      creation_time   : 2016-04-24 09:48:33
      handler_name    : SoundHandle
[STREAM]
r_frame_rate=180000/2
avg_frame_rate=14906250/584969
[/STREAM]
$ ffmpeg -i oldphone.mp4 -filter:v framerate=30,scale=640:360 -b:v 500k -pass 1 -y
test.mp4
ffmpeg version N-79691-g66dd21d Copyright (c) 2000-2016 the FFmpeg developers
  built with Apple LLVM version 7.0.2 (clang-700.1.81)
  configuration: --enable-gpl --enable-nonfree --disable-ffserver --enable-shared --enable-openssl --enable-libspeex --enable-libopus --enable-libfdk-aac --enable-libx265 --enable-libx264 --enable-libxvid --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libvidstab --extra-cflags=-I/sw/include --extra-libs=-L/sw/lib
  libavutil      55. 23.100 / 55. 23.100
  libavcodec     57. 38.100 / 57. 38.100
  libavformat    57. 34.103 / 57. 34.103
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 44.100 /  6. 44.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'oldphone.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2016-04-24 09:48:33
    location        : +60.4916+022.2685/
    location-eng    : +60.4916+022.2685/
    com.android.version: 6.0.1
  Duration: 00:00:52.12, start: 0.000000, bitrate: 15880 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 15715 kb/s, SAR 1:1 DAR 16:9, 25.48 fps, 90k tbr, 90k tbn (default)
    Metadata:
      creation_time   : 2016-04-24 09:48:33
      handler_name    : VideoHandle
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 196 kb/s (default)
    Metadata:
      creation_time   : 2016-04-24 09:48:33
      handler_name    : SoundHandle
[Parsed_framerate_0 @ 0x7fccb2700000] time base:1/90000 -> 1/90000 exact:1
[Parsed_framerate_0 @ 0x7fccb2700000] fps -> fps:30/1 scene score:7.000000 interpolate start:15 end:240
[libx264 @ 0x7fccb2812e00] using SAR=1/1
[libx264 @ 0x7fccb2812e00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x7fccb2812e00] profile Main, level 3.0
[libx264 @ 0x7fccb2812e00] 264 - core 148 r2694 3b70645 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=11 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[mp4 @ 0x7fccb2811c00] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
    Last message repeated 1 times
Output #0, mp4, to 'test.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    com.android.version: 6.0.1
    location        : +60.4916+022.2685/
    location-eng    : +60.4916+022.2685/
    encoder         : Lavf57.34.103
    Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 640x360 [SAR 1:1 DAR 16:9], q=2-31, 500 kb/s, 30 fps, 15360 tbn (default)
    Metadata:
      creation_time   : 2016-04-24 09:48:33
      handler_name    : VideoHandle
      encoder         : Lavc57.38.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/500000 buffer size: 0 vbv_delay: -1
    Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      creation_time   : 2016-04-24 09:48:33
      handler_name    : SoundHandle
      encoder         : Lavc57.38.100 aac
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
frame= 1559 fps=137 q=-1.0 Lsize=    3989kB time=00:00:52.12 bitrate= 627.0kbits/s speed=4.58x
video:3119kB audio:813kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.448805%
[libx264 @ 0x7fccb2812e00] frame I:12    Avg QP:24.46  size:  8829
[libx264 @ 0x7fccb2812e00] frame P:419   Avg QP:26.64  size:  4157
[libx264 @ 0x7fccb2812e00] frame B:1128  Avg QP:29.56  size:  1193
[libx264 @ 0x7fccb2812e00] consecutive B-frames:  1.9%  3.0%  6.2% 89.0%
[libx264 @ 0x7fccb2812e00] mb I  I16..4: 49.9%  0.0% 50.1%
[libx264 @ 0x7fccb2812e00] mb P  I16..4: 23.3%  0.0%  0.0%  P16..4: 49.3%  0.0%  0.0%  0.0%  0.0%    skip:27.3%
[libx264 @ 0x7fccb2812e00] mb B  I16..4:  3.4%  0.0%  0.0%  B16..8: 19.2%  0.0%  0.0%  direct: 7.1%  skip:70.3%  L0:35.8% L1:43.1% BI:21.2%
[libx264 @ 0x7fccb2812e00] final ratefactor: 23.53
[libx264 @ 0x7fccb2812e00] coded y,uvDC,uvAC intra: 45.2% 40.8% 10.6% inter: 9.6% 8.2% 0.3%
[libx264 @ 0x7fccb2812e00] i16 v,h,dc,p: 74% 13%  7%  6%
[libx264 @ 0x7fccb2812e00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 43% 27% 10%  3%  3%  4%  3%  3%  5%
[libx264 @ 0x7fccb2812e00] i8c dc,h,v,p: 48% 16% 31%  6%
[libx264 @ 0x7fccb2812e00] Weighted P-Frames: Y:14.6% UV:3.6%
[libx264 @ 0x7fccb2812e00] kb/s:491.59
[aac @ 0x7fccb2814600] Qavg: 1142.250
$ ffmpeg -i oldphone.mp4 -filter:v framerate=30,scale=640:360 -b:v 500k -pass 2 -y
test.mp4
ffmpeg version N-79691-g66dd21d Copyright (c) 2000-2016 the FFmpeg developers
  built with Apple LLVM version 7.0.2 (clang-700.1.81)
  configuration: --enable-gpl --enable-nonfree --disable-ffserver --enable-shared --enable-openssl --enable-libspeex --enable-libopus --enable-libfdk-aac --enable-libx265 --enable-libx264 --enable-libxvid --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libvidstab --extra-cflags=-I/sw/include --extra-libs=-L/sw/lib
  libavutil      55. 23.100 / 55. 23.100
  libavcodec     57. 38.100 / 57. 38.100
  libavformat    57. 34.103 / 57. 34.103
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 44.100 /  6. 44.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'oldphone.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2016-04-24 09:48:33
    location        : +60.4916+022.2685/
    location-eng    : +60.4916+022.2685/
    com.android.version: 6.0.1
  Duration: 00:00:52.12, start: 0.000000, bitrate: 15880 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 15715 kb/s, SAR 1:1 DAR 16:9, 25.48 fps, 90k tbr, 90k tbn (default)
    Metadata:
      creation_time   : 2016-04-24 09:48:33
      handler_name    : VideoHandle
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 196 kb/s (default)
    Metadata:
      creation_time   : 2016-04-24 09:48:33
      handler_name    : SoundHandle
[Parsed_framerate_0 @ 0x7fd880600000] time base:1/90000 -> 1/90000 exact:1
[Parsed_framerate_0 @ 0x7fd880600000] fps -> fps:30/1 scene score:7.000000 interpolate start:15 end:240
[libx264 @ 0x7fd88082c000] using SAR=1/1
[libx264 @ 0x7fd88082c000] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x7fd88082c000] profile High, level 3.0
[libx264 @ 0x7fd88082c000] 264 - core 148 r2694 3b70645 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=11 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=2pass mbtree=1 bitrate=500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 cplxblur=20.0 qblur=0.5 ip_ratio=1.40 aq=1:1.00
[mp4 @ 0x7fd880828c00] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
    Last message repeated 1 times
Output #0, mp4, to 'test.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    com.android.version: 6.0.1
    location        : +60.4916+022.2685/
    location-eng    : +60.4916+022.2685/
    encoder         : Lavf57.34.103
    Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 640x360 [SAR 1:1 DAR 16:9], q=2-31, 500 kb/s, 30 fps, 15360 tbn (default)
    Metadata:
      creation_time   : 2016-04-24 09:48:33
      handler_name    : VideoHandle
      encoder         : Lavc57.38.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/500000 buffer size: 0 vbv_delay: -1
    Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      creation_time   : 2016-04-24 09:48:33
      handler_name    : SoundHandle
      encoder         : Lavc57.38.100 aac
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0x7fd88082c000] Incomplete MB-tree stats file.08 bitrate= 615.3kbits/s speed=3.84x
Video encoding failed
[libx264 @ 0x7fd88082c000] frame I:12    Avg QP:24.36  size:  8693
[libx264 @ 0x7fd88082c000] frame P:416   Avg QP:26.93  size:  3900
[libx264 @ 0x7fd88082c000] frame B:1117  Avg QP:29.65  size:  1323
[libx264 @ 0x7fd88082c000] consecutive B-frames:  1.9%  3.0%  6.2% 88.9%
[libx264 @ 0x7fd88082c000] mb I  I16..4: 18.8% 66.8% 14.3%
[libx264 @ 0x7fd88082c000] mb P  I16..4:  4.2%  7.9%  2.1%  P16..4: 43.2% 10.2%  4.5%  0.0%  0.0%    skip:27.8%
[libx264 @ 0x7fd88082c000] mb B  I16..4:  0.5%  0.7%  0.2%  B16..8: 39.0%  3.8%  0.9%  direct: 2.3%  skip:52.7%  L0:44.3% L1:49.4% BI: 6.4%
[libx264 @ 0x7fd88082c000] 8x8 transform intra:56.1% inter:83.0%
[libx264 @ 0x7fd88082c000] coded y,uvDC,uvAC intra: 57.8% 60.2% 23.1% inter: 12.4% 11.7% 0.4%
[libx264 @ 0x7fd88082c000] i16 v,h,dc,p: 83%  6%  1% 10%
[libx264 @ 0x7fd88082c000] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 53% 13%  9%  2%  3%  5%  4%  5%  6%
[libx264 @ 0x7fd88082c000] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 44% 14%  7%  4%  6%  9%  6%  6%  5%
[libx264 @ 0x7fd88082c000] i8c dc,h,v,p: 48% 17% 27%  8%
[libx264 @ 0x7fd88082c000] Weighted P-Frames: Y:14.2% UV:3.1%
[libx264 @ 0x7fd88082c000] ref P L0: 50.1% 18.3% 20.3% 10.1%  1.1%
[libx264 @ 0x7fd88082c000] ref B L0: 85.2% 11.0%  3.8%
[libx264 @ 0x7fd88082c000] ref B L1: 94.9%  5.1%
[libx264 @ 0x7fd88082c000] kb/s:497.76
[aac @ 0x7fd88082d800] Qavg: 1142.847
[aac @ 0x7fd88082d800] 2 frames left in the queue on closing
Conversion failed!

This does not happen e.g. with libvpx; I presume because it collects less data in its first pass stats.


#1618 Padding to odd/uneven size fails avfilter defect Aug 8, 2012

### WHAT I am try resize (scale + pad) and convert a video file to mp4 format and defined size.

### PROBLEM When padding to odd width I face problems. Strangely, when I use even numbers then it works.

### COMMAND LINES (for two files)

  1. File "Duracell10sec_CutdowulydCDCD.wmv"

A.1 Resizing to 425x300

  • COMMAND LINE:
    ffmpeg.exe -i "Duracell10sec_Cutdow__ulydCDCD.wmv"  -vf "scale=427:239,pad=427:300:0:30,setdar=427:300"  -y -b:v 400k -r 49.75 -ar 44100  -acodec libmp3lame -vcodec libx264 -ac 2 "Duracell10sec_Cutdow__ulydCDCD4_TMP.mp4"
    
  • OUTPUT:
    ffmpeg version N-43206-gf857465 Copyright (c) 2000-2012 the FFmpeg developers
      built on Aug  4 2012 16:10:39 with gcc 4.7.1 (GCC)
      configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --ena
    ble-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-li
    bnut --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --e
    nable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
      libavutil      51. 66.100 / 51. 66.100
      libavcodec     54. 49.100 / 54. 49.100
      libavformat    54. 22.100 / 54. 22.100
      libavdevice    54.  2.100 / 54.  2.100
      libavfilter     3.  5.102 /  3.  5.102
      libswscale      2.  1.100 /  2.  1.100
      libswresample   0. 15.100 /  0. 15.100
      libpostproc    52.  0.100 / 52.  0.100
    Guessed Channel Layout for  Input Stream #0.0 : mono
    Input #0, asf, from 'Duracell10sec_Cutdow__ulydCDCD.wmv':
      Metadata:
        WMFSDKVersion   : 10.00.00.3702
        WMFSDKNeeded    : 0.0.0.0000
        IsVBR           : 1
        VBR Peak        : 139
        Buffer Average  : 151
      Duration: 00:00:10.04, start: 0.000000, bitrate: 1864 kb/s
        Stream #0:0(dan): Audio: wmav2 (a[1][0][0] / 0x0161), 8000 Hz, mono, s16, 0 kb/s
        Stream #0:1(dan): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 1280x720, 1843 kb/s, 49.75 tbr, 1k tbn, 1k tbc
    [Parsed_pad_1 @ 01f9a760] Input area 0:30:427:269 not within the padded area 0:0:426:300 or zero-sized
    [Parsed_scale_0 @ 01fe7260] Failed to configure input pad on Parsed_pad_1
    Error opening filters!
    
  1. File "fishermans_friendCD_720_xvid.avi"

B.1 Resizing to 425x300

  • COMMAND LINE:
    ffmpeg.exe -i "fishermans_friendCD_720_xvid.avi"  -vf "scale=425:239,pad=425:300:0:30,setdar=425:300"  -y -b:v 400k -r 25 -ar 44100  -ab 128 -acodec libmp3lame -vcodec libx264 -ac 2 "fishermans_friendCD_720_xvid4_TMP.mp4"
    
  • OUTPUT:
    ffmpeg version N-43206-gf857465 Copyright (c) 2000-2012 the FFmpeg developers
      built on Aug  4 2012 16:10:39 with gcc 4.7.1 (GCC)
      configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --ena
    ble-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-li
    bnut --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --e
    nable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
      libavutil      51. 66.100 / 51. 66.100
      libavcodec     54. 49.100 / 54. 49.100
      libavformat    54. 22.100 / 54. 22.100
      libavdevice    54.  2.100 / 54.  2.100
      libavfilter     3.  5.102 /  3.  5.102
      libswscale      2.  1.100 /  2.  1.100
      libswresample   0. 15.100 /  0. 15.100
      libpostproc    52.  0.100 / 52.  0.100
    Input #0, avi, from 'fishermans_friendCD_720_xvid.avi':
      Metadata:
        encoder         : MEncoder Sherpya-SVN-r32492-4.2.5
      Duration: 00:00:09.96, start: 0.000000, bitrate: 1090 kb/s
        Stream #0:0: Video: mpeg4 (Simple Profile) (XVID / 0x44495658), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
        Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16, 128 kb/s
    [Parsed_pad_1 @ 03fd59e0] Input area 0:30:425:269 not within the padded area 0:0:424:300 or zero-sized
    [Parsed_scale_0 @ 03fd5940] Failed to configure input pad on Parsed_pad_1
    Error opening filters!
    

### FILES

  1. "Duracell10sec_CutdowulydCDCD.wmv"
  • OUTPUT:
    ffmpeg version N-43206-gf857465 Copyright (c) 2000-2012 the FFmpeg developers
      built on Aug  4 2012 16:10:39 with gcc 4.7.1 (GCC)
      configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --ena
    ble-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-li
    bnut --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --e
    nable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
      libavutil      51. 66.100 / 51. 66.100
      libavcodec     54. 49.100 / 54. 49.100
      libavformat    54. 22.100 / 54. 22.100
      libavdevice    54.  2.100 / 54.  2.100
      libavfilter     3.  5.102 /  3.  5.102
      libswscale      2.  1.100 /  2.  1.100
      libswresample   0. 15.100 /  0. 15.100
      libpostproc    52.  0.100 / 52.  0.100
    [asf @ 01fbc400] Format asf probed with size=2048 and score=100
    [asf @ 01fbc400] gpos mismatch our pos=24, end=26
    [asf @ 01fbc400] gpos mismatch our pos=24, end=3622
    [asf @ 01fbc400] gpos mismatch our pos=24, end=38
    [asf @ 01fbc400] Unsupported value type 1 in tag ASFLeakyBucketPairs.
    [asf @ 01fbc400] gpos mismatch our pos=24, end=252
    [asf @ 01fbc400] gpos mismatch our pos=24, end=38
    [asf @ 01fbc400] File position before avformat_find_stream_info() is 5300
    [asf @ 01fbc400] parser not found for codec wmav2, packets or times may be invalid.
    [wmv3 @ 01fbd720] Header: 4DC11A01
    [wmv3 @ 01fbd720] Profile 1:
    frmrtq_postproc=6, bitrtq_postproc=28
    LoopFilter=0, MultiRes=0, FastUVMC=0, Extended MV=0
    Rangered=0, VSTransform=1, Overlap=1, SyncMarker=0
    DQuant=1, Quantizer mode=0, Max B frames=0
    [asf @ 01fbc400] parser not found for codec wmav2, packets or times may be invalid.
    [asf @ 01fbc400] All info found
    rfps: 24.583333 0.019493
        Last message repeated 1 times
    rfps: 24.666667 0.010206
        Last message repeated 1 times
    rfps: 24.750000 0.003909
        Last message repeated 1 times
    rfps: 24.833333 0.000600
        Last message repeated 1 times
    rfps: 24.916667 0.000281
    rfps: 25.000000 0.002950
    rfps: 25.083333 0.008607
        Last message repeated 1 times
    rfps: 25.166667 0.017254
        Last message repeated 1 times
    rfps: 49.500000 0.015636
        Last message repeated 1 times
    rfps: 49.583333 0.007524
        Last message repeated 1 times
    rfps: 49.666667 0.002402
        Last message repeated 1 times
    rfps: 49.750000 0.000268
        Last message repeated 1 times
    rfps: 49.833333 0.001122
    rfps: 49.916667 0.004966
    rfps: 50.000000 0.011798
    [asf @ 01fbc400] File position after avformat_find_stream_info() is 251519
    Guessed Channel Layout for  Input Stream #0.0 : mono
    Input #0, asf, from 'Duracell10sec_Cutdow__ulydCDCD.wmv':
      Metadata:
        WMFSDKVersion   : 10.00.00.3702
        WMFSDKNeeded    : 0.0.0.0000
        IsVBR           : 1
        VBR Peak        : 139
        Buffer Average  : 151
      Duration: 00:00:10.04, start: 0.000000, bitrate: 1864 kb/s
        Stream #0:0(dan), 18, 1/1000: Audio: wmav2 (a[1][0][0] / 0x0161), 8000 Hz, mono, s16, 0 kb/s
        Stream #0:1(dan), 41, 1/1000: Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 1280x720, 1/1000, 1843 kb/s, 49.75 tbr, 1k tbn, 1k tbc
    At least one output file must be specified
    [AVIOContext @ 01fb14e0] Statistics: 262144 bytes read, 0 seeks
    
  1. "fishermans_friendCD_720_xvid.avi"
  • OUTPUT:
    ffmpeg version N-43206-gf857465 Copyright (c) 2000-2012 the FFmpeg developers
      built on Aug  4 2012 16:10:39 with gcc 4.7.1 (GCC)
      configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --ena
    ble-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-li
    bnut --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --e
    nable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
      libavutil      51. 66.100 / 51. 66.100
      libavcodec     54. 49.100 / 54. 49.100
      libavformat    54. 22.100 / 54. 22.100
      libavdevice    54.  2.100 / 54.  2.100
      libavfilter     3.  5.102 /  3.  5.102
      libswscale      2.  1.100 /  2.  1.100
      libswresample   0. 15.100 /  0. 15.100
      libpostproc    52.  0.100 / 52.  0.100
    [avi @ 0235c400] Format avi probed with size=2048 and score=100
    [avi @ 02351560] use odml:1
    st:1 removing common factor 36 from timebase
    [avi @ 0235c400] File position before avformat_find_stream_info() is 4108
    [avi @ 0235c400] All info found
    [avi @ 0235c400] File position after avformat_find_stream_info() is 22706
    Input #0, avi, from 'fishermans_friendCD_720_xvid.avi':
      Metadata:
        encoder         : MEncoder Sherpya-SVN-r32492-4.2.5
      Duration: 00:00:09.96, start: 0.000000, bitrate: 1090 kb/s
        Stream #0:0, 1, 1/25: Video: mpeg4 (Simple Profile) (XVID / 0x44495658), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1/25, 25 tbr, 25 tbn, 25 tbc
        Stream #0:1, 20, 32/1225: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16, 128 kb/s
    At least one output file must be specified
    [AVIOContext @ 023514c0] Statistics: 184008 bytes read, 7 seeks
    

#2061 ffmpeg -vf drawtext not support ft_load_flags=vertical_layout avfilter defect Dec 24, 2012

Summary of the bug:

ffmpeg -vf drawtext not support ft_load_flags=vertical_layout

How to reproduce:

ffmpeg.exe -i 1.avi -codec:v libx264 -vf drawtext="ft_load_flags=render+vertical_layout:shadowcolor=0xaaaaaa66:shadowx=5:shadowy=2:fontcolor=white:fontsize=40:fontfile=STXIHEI.TTF:text='ABC':x=10:y=10" 21.avi

Only use ft_load_flags=render is ok to render ABC on video.

ffmpeg version: ffmpeg version N-47062-g26c531c Copyright (c) 2000-2012 the FFmpeg developers

built on Nov 25 2012 12:21:26 with gcc 4.7.2 (GCC)

configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runt

ime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass - -enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enab le-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-libo pus --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheo ra --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --ena ble-zlib

libavutil 52. 9.100 / 52. 9.100 libavcodec 54. 77.100 / 54. 77.100 libavformat 54. 37.100 / 54. 37.100 libavdevice 54. 3.100 / 54. 3.100 libavfilter 3. 23.102 / 3. 23.102 libswscale 2. 1.102 / 2. 1.102 libswresample 0. 17.101 / 0. 17.101 libpostproc 52. 2.100 / 52. 2.100


#2595 Last frame of partly deintelacted video stream, not deinterlaced avfilter defect May 21, 2013

I have an input video file where some sequences are interlaced and the rest isn't. I am using -vf yadif=enable='between(t,A,B)+...' to only deinterlace where needed. It works almost fine, except that the very last frame of each specified time sequence is not deinterlaced.

How to reproduce:

% ffmpeg -i input.mpg -vf yadif=enable='between(t,0,1.040)' output.mpg
ffmpeg version N-53323-gb8a9876 Copyright (c) 2000-2013 the FFmpeg developers
  built on May 21 2013 16:20:56 with gcc 4.7 (SUSE Linux)

As a workaround, I am adding one frame at the end of every sequence which needs to be deinterlaced.


#3302 Cannot draw opaque text on transparent frame avfilter defect Jan 14, 2014

Summary of the bug: Below testcase may seem somewhat artifical and impractical. But actually with ffmpeg we can save transparent video (e.g. -vcodec png -pix_fmt rgba out.mov ) So let's say we want to render a video with opaque text over transparent background, for later overlaying. It ends out with the fact that we cannot: with background alpha = 0 and text alpha = 1, nothing is seen on image. We must increase background alpha, which not acceptable for desired result.

How to reproduce:

ffmpeg -f lavfi -i "testsrc[testsrc];color=color=white@0.0,drawtext=text=TEST:fontsize=50:fontfile=/usr/share/fonts/corefonts/verdana.ttf:fontcolor=red@1.0[text];[testsrc][text]overlay" /tmp/tmp.ts
ffmpeg version N-59815-gb79bccb Copyright (c) 2000-2014 the FFmpeg developers
  built on Jan 14 2014 03:29:50 with gcc 4.6.3 (Gentoo 4.6.3 p1.13, pie-0.5.2)
  configuration: --enable-gpl --enable-libx264 --enable-encoder=libx264 --disable-stripping --enable-debug --extra-cflags='-O0 -g -ggdb' --enable-libopus --enable-libvpx --enable-x11grab --enable-libfreetype --enable-filter=drawtext --enable-libzvbi
  libavutil      52. 62.100 / 52. 62.100
  libavcodec     55. 48.101 / 55. 48.101
  libavformat    55. 23.103 / 55. 23.103
  libavdevice    55.  5.102 / 55.  5.102
  libavfilter     4.  1.100 /  4.  1.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Input #0, lavfi, from 'testsrc[testsrc];color=color=white@0.0,drawtext=text=TEST:fontsize=50:fontfile=/usr/share/fonts/corefonts/verdana.ttf:fontcolor=red@1.0[text];[testsrc][text]overlay':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: rawvideo (Y4[11][8] / 0x80B3459), yuva420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
File '/tmp/tmp.ts' already exists. Overwrite ? [y/N] y
Output #0, mpegts, to '/tmp/tmp.ts':
  Metadata:
    encoder         : Lavf55.23.103
    Stream #0:0: Video: mpeg2video, yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo -> mpeg2video)
Press [q] to stop, [?] for help
frame= 2313 fps=750 q=9.4 Lsize=    3047kB time=00:01:32.48 bitrate= 269.9kbits/s    
video:2538kB audio:0kB subtitle:0 global headers:0kB muxing overhead 20.054615%
Received signal 2: terminating.

#3317 Drawtext+Alphamerge results in incorrect alpha value avfilter defect Jan 18, 2014

I was trying to create a video of a timer for use in other videos with a transparent background. There doesn't seem to be a transparent video source so I used alphamerge to achieve the same effect.

Unfortunately, drawtext with alphamerge results in a max alpha of 235 not 255.

Running the following 3 commands generates the 3 attatched files. Note that in alpha.png the text has 235 alpha, not 255, and that I can't reproduce without using drawtext directly.

# Drawtext to alphamerge
ffmpeg -f lavfi -r 30 -t 10 -i "color=c=#FFFFFF" -f lavfi -r 30 -t 10 -i "color=c=#000000" -filter_complex "[1]drawtext=text="FFmpeg":fontcolor=white:fontsize=150:fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf[text];[0][text]alphamerge[out]" -map "[out]" -vframes 1 -c:v png -pix_fmt rgba alpha.png

# Saving the drawtext mask on it's own
ffmpeg -f lavfi -r 30 -t 10 -i "color=c=#FFFFFF" -f lavfi -r 30 -t 10 -i "color=c=#000000" -filter_complex "[1]drawtext=text="FFmpeg":fontcolor=white:fontsize=150:fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf[out]" -map "[out]" -vframes 1 -c:v png -pix_fmt rgba noalpha.png

# And applying that mask (No bug here)
ffmpeg -f lavfi -r 30 -t 10 -i "color=c=#FFFFFF" -i noalpha.png -filter_complex "[0][1]alphamerge[out]" -map "[out]" -vframes 1 -c:v png -pix_fmt rgba third.png

#3571 Drawtext fontcolor alpha not working with border (border and glyph would need to be combined before drawing them) avfilter defect Apr 17, 2014

Using drawtext filter, the fontcolor alpha channel goes grey instead of see through

Uploaded file example is here - http://www.datafilehost.com/d/b44e215d

buffer=width=640:height=480:pix_fmt=1:time_base=333333/10000000:pixel_aspect=0/1 [primary]; [primary] drawtext=borderw=1:box=1:boxcolor=black@0.5:bordercolor=black:text='Hello world!!!':fontcolor=white@0.2:fontsize=128:fontfile='/WINDOWS/FONTS/Arial.ttf':x=(w-tw)/2:y=h-(2*lh) [drawtext]; [drawtext] buffersink


#4298 zoompan filter creates shaky image avfilter defect Feb 5, 2015

Summary of the bug:

When using the zoompan filter and setting any x or y (or both) value, the effect is shaky and jerky.

How to reproduce:

 ffmpeg -framerate 25 -loop 1 -i in.jpg -vf "zoompan=z='min(zoom+0.0015,1.4)':x=50:d=150" -t 6 -s 640x380 out.mp4
ffmpeg version N-69568-g21051af Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
  libavutil      54. 18.100 / 54. 18.100
  libavcodec     56. 21.102 / 56. 21.102
  libavformat    56. 19.100 / 56. 19.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5.  9.103 /  5.  9.103
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
[mjpeg @ 0000000000342a60] ignoring invalid SAR: 540/409
Input #0, image2, from 'out.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: 3236 kb/s
    Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 640x360, 25 fps, 25 tbr, 25 tbn, 25 tbc
File 'out.mp4' already exists. Overwrite ? [y/N] y
[swscaler @ 0000000000307fe0] deprecated pixel format used, make sure you did set range correctly
No pixel format specified, yuvj420p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0000000004cf00a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0000000004cf00a0] profile High, level 3.0
[libx264 @ 0000000004cf00a0] 264 - core 144 r2525 40bb568 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'out.mp4':
  Metadata:
    encoder         : Lavf56.19.100
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuvj420p(pc), 640x360, q=-1--1, 25 fps, 12800 tbn, 25 tbc
    Metadata:
      encoder         : Lavc56.21.102 libx264
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[swscaler @ 0000000004ca5f80] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 0000000004ca5f80] Warning: data is not aligned! This can lead to a speedloss
[swscaler @ 0000000004ca5f80] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 55 times
[swscaler @ 0000000009502c80] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 41 times
[output stream 0:0 @ 00000000002cb160] 100 buffers queued in output stream 0:0, something may be wrong.
[swscaler @ 0000000009502c80] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 49 times
[swscaler @ 0000000007cc2780] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
frame=  150 fps=107 q=-1.0 Lsize=     122kB time=00:00:05.92 bitrate= 168.6kbits/s
video:119kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.158680%
[libx264 @ 0000000004cf00a0] frame I:1     Avg QP:18.48  size: 13916
[libx264 @ 0000000004cf00a0] frame P:38    Avg QP:18.97  size:  1965
[libx264 @ 0000000004cf00a0] frame B:111   Avg QP:23.90  size:   296
[libx264 @ 0000000004cf00a0] consecutive B-frames:  1.3%  0.0%  0.0% 98.7%
[libx264 @ 0000000004cf00a0] mb I  I16..4: 13.4% 64.7% 22.0%
[libx264 @ 0000000004cf00a0] mb P  I16..4:  0.6%  1.6%  0.2%  P16..4: 37.9% 10.8%  5.9%  0.0%  0.0%    skip:43.1%
[libx264 @ 0000000004cf00a0] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8: 33.5%  0.3%  0.0%  direct: 0.1%  skip:66.0%  L0:47.5% L1:51.4% BI: 1.2%
[libx264 @ 0000000004cf00a0] 8x8 transform intra:65.9% inter:74.8%
[libx264 @ 0000000004cf00a0] coded y,uvDC,uvAC intra: 50.9% 30.8% 5.7% inter: 2.8% 1.3% 0.0%
[libx264 @ 0000000004cf00a0] i16 v,h,dc,p: 16% 37%  6% 42%
[libx264 @ 0000000004cf00a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 24% 29%  2%  3%  3%  4%  3%  4%
[libx264 @ 0000000004cf00a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 24% 15%  5%  7%  6%  6%  4%  4%
[libx264 @ 0000000004cf00a0] i8c dc,h,v,p: 62% 21% 16%  2%
[libx264 @ 0000000004cf00a0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0000000004cf00a0] ref P L0: 67.5%  6.2% 16.7%  9.6%
[libx264 @ 0000000004cf00a0] ref B L0: 91.5%  6.8%  1.7%
[libx264 @ 0000000004cf00a0] ref B L1: 95.3%  4.7%
[libx264 @ 0000000004cf00a0] kb/s:161.96

When x is not set, there is no shakiness (see correct output).

Also mentioned here:


#4798 WMA lossless audio not merged with video avfilter defect Aug 24, 2015

Summary of the bug:

I tried to add background song (in wma lossless audio format) to the mp4 video and resulting video has corrupt audio.

How to reproduce:

./ffmpeg -v 9 -loglevel 99 -report -i video.mp4 -filter_complex "amovie=wmal2.wma:loop=0,aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume=1[a1];[0:a]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume=0.3[a2];[a1][a2]amerge,pan=stereo|c0<c0+c2|c1<c1+c3[out]" -map 0:v -map "[out]" -c:v copy -c:a libfdk_aac -shortest output.mp4

FFmpeg version built on : I checked out latest development version from git repository

Command above works nicely with mp3 files and other wma files. I attached ffmpeg report log file.

Regards, Aleksandar


#4990 fieldmatch+decimate duplicate frames with yuv avfilter defect Nov 6, 2015

Summary of the bug: FFMPEG cannot currently fieldmatch and decimate a yuv input correctly. Resulting in duplicate frames from either mismatched fields or a failure to apply a proper decimate pattern.

The following AVS script using the same source which I've attached for your convenience does produce a correct result without duplicate frames, as fieldmatch+decimate are meant to be based on TIVTC I was expecting the same fault but the AVS script succeeds.

LoadPlugin("rawsource.dll")
LoadPlugin("TIVTC.dll")

RawSource("bugged.yuv", 1920, 1080, "I420").AssumeFPS("ntsc_video").AssumeTFF()
TFM().TDecimate()

Plugins for AVS are: http://www.avisynth.nl/users/warpenterprises/files/rawsource_5F25_dll_20060728.zip http://bengal.missouri.edu/~kes25c/TIVTCv105.zip

Source in yuv format: https://drive.google.com/file/d/0B2keH696oskMYWVNSW5McFRxTTA/view?usp=sharing

How to reproduce:

% ffmpeg -pix_fmt yuv420p -s 1920x1080 -r 30000/1001 -i bugged.yuv -vf "setfield=mode=tff,fieldmatch,decimate" test.mkv

You will find duplicate frames on frames 2,3 - The first frame is also incorrect as you'll see in comparison to AVS.
I have only attached a small sample as yuv frames are obviously quite large but on the complete yuv dump multiple duplicate frames appear.
It still happens even with the use of a stronger set of filter parameters e.g: fieldmatch=order=tff:combmatch=full,yadif=deint=interlaced,decimate

Bug is present on the git-master and all versions of ffmpeg since fieldmatch+decimate was added, unfortunately I'm not familiar enough with the avfilter to create a solution, hopefully somebody here can.

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.


#5058 the concat filter does not respect the audio delay of the second segment avfilter defect Dec 4, 2015

Suppose that you have two files, each having a video and an audio stream, and also that the second video's audio starts with a delay. If you try to concatenate them with the concat filter, then the resulting video will have sync problems with the audio portion that came from the second file.

Here's a quick way to reproduce this:

ffmpeg -y \
	-filter_complex '
		color=c=black:d=10[v1];
		color=c=white:d=10[v2];
		sine=d=10:f=220[a1];
		sine=d=5,asetpts=PTS+5/TB[a2];
		[v1][a1][v2][a2]concat=a=1
	' \
	test.mkv

When I play the resulting file, the first 10 seconds are just like what I expected (black background with low pitched tone), but the remaining 10 seconds are not. I was expecting that the higher pitched tone would start at 15s but it doesn't. Instead it starts at 10s. So basically, the concat filter simply concatenated the two audio streams without taking into consideration the 5 sec delay of the second one.

I am not sure if this is a bug or the intended behavior, but I think it would be more reasonable if concat inserted silence at the beginning audio streams if necessary, just like it does with the end of such streams.


#5374 Infinite loop in paletteuse on pix_fmt change avfilter defect Mar 24, 2016

I'm trying to create GIF from series of JPG images using palette but processing completely stall. I'm using last static build (http://johnvansickle.com/ffmpeg/). Same behavior reproduced on older build (I'm try some 2015 year release), also 32 and 64 bit builds. I tries to resize pictures, remove EXIF data, change colorspace.

I'm using Debian (3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u6 (2015-11-09) x86_64 GNU/Linux) on VMWare.

Firstly i'm generating a palette:

ffmpeg -nostdin -i 6659679_%04d.jpg -vf palettegen -y palette.png

Next I'm trying to create GIF:

ffmpeg -y -framerate 2 -i 6659679_%04d.jpg -i palette.png -lavfi paletteuse 6659679.gif

And got ffmpeg stall on second frame:

ffmpeg version 2.6.5 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (Debian 4.9.2-10)
  configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libpulse --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2 --enable-libvidstab --enable-libzvbi --enable-avresample --disable-htmlpages --disable-podpages --enable-libutvideo --enable-libfdk-aac --enable-libx265 --enable-libiec61883 --enable-vaapi --enable-libdc1394 --disable-altivec --shlibdir=/usr/lib/x86_64-linux-gnu
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.102 /  5. 11.102
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
[mjpeg @ 0x1533aa0] Changeing bps to 8
Input #0, image2, from '6659679_%04d.jpg':
  Duration: 00:00:01.50, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 652x386 [SAR 72:72 DAR 326:193], 2 fps, 2 tbr, 2 tbn, 2 tbc
Input #1, png_pipe, from 'palette.png':
  Duration: N/A, bitrate: N/A
    Stream #1:0: Video: png, rgba, 16x16 [SAR 1:1 DAR 1:1], 25 tbr, 25 tbn, 25 tbc
[swscaler @ 0x1528ee0] deprecated pixel format used, make sure you did set range correctly
Output #0, gif, to '6659679.gif':
  Metadata:
    encoder         : Lavf56.25.101
    Stream #0:0: Video: gif, pal8, 652x386 [SAR 1:1 DAR 326:193], q=2-31, 200 kb/s, 2 fps, 100 tbn, 2 tbc (default)
    Metadata:
      encoder         : Lavc56.26.100 gif
Stream mapping:
  Stream #0:0 (mjpeg) -> paletteuse:default
  Stream #1:0 (png) -> paletteuse:palette
  paletteuse -> Stream #0:0 (gif)
Press [q] to stop, [?] for help
Input stream #0:0 frame changed from size:652x386 fmt:yuvj420p to size:652x386 fmt:yuvj444p
[swscaler @ 0x150ac80] deprecated pixel format used, make sure you did set range correctly
Input stream #0:0 frame changed from size:652x386 fmt:yuvj444p to size:652x386 fmt:yuvj420p
[swscaler @ 0x150ac80] deprecated pixel format used, make sure you did set range correctly
frame=    2 fps=0.2 q=0.0 size=     140kB time=00:00:01.00 bitrate=1144.1kbits/s  

My JPEGs: http://zettich.com/images.tgz


#5662 Enhancement request for the detelecine filter avfilter defect Jun 24, 2016

Hello,

the detelecine filter currently does not use full frames even when they are available in the source but combines two fields from different frames. This results in suboptimal output, in particular for progressively encoded input files with hard telecining (I know that encoding such stuff progressively without IVTC is stupid; but it's nevertheless done). My attachment contains such an example: A five frame source (one complete 2:3 pulldown period (top field first)) with hard telecining. The underlying four frame sequence (on which the pulldown has been applied) has a scenecut between the third and the fourth frame so that the fourth frame of the telecined video is a mixture of two fields from totally different frames; plus errors introduced in the encoding which entails that the bottom fields of frames four and five do not coincide and the bottom field of frame four and the top field of frame five do not match very well. In reconstructing the fourth frame of the untelecined video one should therefore use the top and bottom fields of the fifth frame of the telecined video; but that is not what the detelecine filter does.


#2067 Support subtitles in libavfilter so seek is honored for subtitles filters (like hardsubbing) avfilter enhancement Dec 26, 2012

Summary of the bug: When I try to burn subtitles in the video, everything is fine, except when I try seeking. The subtitles are added again from the first second, not from 30 minute. I think that when I seek the movie, the subtitles must be seeked too.

How to reproduce:

C:\ffmpeg>ffmpeg -ss 00:30:00 -i f.avi -vf subtitles=f.srt -c:a vorbis -strict -2 -c:v libx264 -preset ultrafast fout.mp4

#1717 Concat filter can not join individual images avfilter defect Sep 4, 2012

using latest ffmepg build from http://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-20120903-git-5d55830-win32-static.7z

execute following command ffmpeg -i a1.jpg -i a2.jpg -i a3.jpg -filter_complex "[0:0] [1:0] [2:0] concat=n=3:v=1:a=0" join.mp4

to join three jpeg files to one video, But the generated mp4 file only contain two frames.

ffmpeg -i join.mp4 test%d.jpg

only output test1.jpg and test2.jpg

best regards


#602 feature request: movie sink for ffplay avfilter enhancement Oct 31, 2011

The scenarios that would this attempt to handle better:

1) someone is recording from their webcam, wants to see the output as it is (simultaneously) recorded. 2) same thing, but they want to stream it, while it is being recorded, or the like.

Basically this is a feature request to make ffplay/ffserver into "movie sink's" which I think would handle this.

I'm mostly basing this from VLC, which can split and stream or convert or display (and since ffmpeg can split now, it might be nice to do the other things too):

VLC: duplicate{dst=display} http://www.videolan.org/doc/streaming-howto/en/ch04.html

Making ffserver programmable via command-line (as VLC's is) would be convenient, at times, too. Cheers! -roger-

ref: http://ffmpeg.org/pipermail/ffmpeg-user/2011-October/002904.html


#1305 Embedded ASS subtitle support avfilter enhancement May 14, 2012

It would be great to see support for embedded ASS subtitles. Currently ASS subtitles are only supported if there is an external .ass file, but almost always it is a stream inside an MKV container (so there are 3 streams: video, audio and ASS subtitle)

It is possible currently to extract the subtitle stream from the original container, then load it in a second step, but it would be cool to be able to do it in one step instead.

For example in MEncoder you use: mencoder input.mkv -ass -o output.mkv And it will burn the ASS/SSA subtitles contained within input.mkv onto the video stream of output.mkv


#1753 Delay output for X seconds avfilter enhancement Sep 19, 2012

It would be nice to add a feature where the output could be delayed for certain amount of time (specified in seconds or hh:mm:ss.mmm). One use case for this might be the case where we want to capture the video, only when a certain event occurs (like lightning bolt, robbery or trespassing for example). If we start capturing the output at that exact moment, we might loose some valuable time, but if the output was buffered, then capturing would start in the past, enabling people to record an important event.

How to make use of the feature?

Start one ffmpeg to capture and buffer the webcam input (the output will start after 10 seconds and will continue real-time, always being late for 10 seconds, comparing to the current time):

ffmpeg -f v4l2 -i /dev/video0 -vf delay 10 -af delay 10 -f mpegts udp://localhost:1234

Start another ffmpeg only when some important event occurs (triggered by the sensor or something similar):

ffmpeg -f mpegts -i udp://localhost:1234 -map 0 -c copy capture.avi

Obviously capture.avi will start recording from the past, considering the current time the event was triggered, which will allow the beginning of the event to get recorded as well.


#2097 Let Gradfun output an undithered image of higher bit depth. avfilter enhancement Jan 2, 2013

For my understanding the gradfun filter takes an 8 bit per channel image, converts it to a higher bit depth and then smoothes gradiation steps with little color delta to achieve an image of virtually higher bit depth. Then the data is converted to 8 bit again and dithered.

As, beneath viewing movies, an other very useful application of gradfun is to convert 8 bit material from cameras (which produce banding) to higher depth intermediate codecs (like DNxHD 185x which uses 10 bit) for video editing tasks, it would be helpful if the filter could also skip the dithering and output an image with higher depth directly for such purposes.


#2112 support for NL Filter avfilter enhancement Jan 5, 2013

I strongly request support for NL Filter of gimp. http://docs.gimp.org/2.6/en/plug-in-nlfilt.html

The filter is much more excellent than unsharp filter. Even bad sources become clear. In paticular, the ability of NL Filter is exercised when expanding image size.


1 2 3 4 5
Note: See TracReports for help on using and creating reports.