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

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

Results (1 - 100 of 553)

1 2 3 4 5 6
Ticket Summary Component Milestone Type Created
Description
#2400 A/V desync for separate video and aac in mp4 input files undetermined defect Mar 25, 2013

executing following command with the two videos I attached.

ffmpeg -i aaa.mp4 -i bbb.mp4 test.mp4

C:\Conversion>ffmpeg -i aaa.mp4 -i bbb.mp4 test.mp4 ffmpeg version N-51211-ge0e8c20 Copyright (c) 2000-2013 the FFmpeg developers

built on Mar 22 2013 08:56:38 with gcc 4.7.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av

isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg sm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libo pencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-li bschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-lib twolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enabl e-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib

libavutil 52. 22.101 / 52. 22.101 libavcodec 55. 1.100 / 55. 1.100 libavformat 55. 0.100 / 55. 0.100 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 48.100 / 3. 48.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'aaa.mp4':

Metadata:

major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.59.102

Duration: 00:00:08.71, start: 0.000000, bitrate: 245 kb/s

Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1366x768,

241 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc

Metadata:

handler_name : VideoHandler?

Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'bbb.mp4':

Metadata:

major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 encoder : Lavf54.59.102

Duration: 00:00:00.13, start: 0.023220, bitrate: 9029 kb/s

Stream #1:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 89

40 kb/s

Metadata:

handler_name : SoundHandler?

File 'test.mp4' already exists. Overwrite ? [y/N] y using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 [libx264 @ 024adac0] profile High, level 3.2 [libx264 @ 024adac0] 264 - core 130 r2274 c832fe9 - H.264/MPEG-4 AVC codec - Cop yleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deb lock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 m e_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chro ma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 i nterlaced=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 scenec ut=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:

major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.0.100 Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1366x768, q

=-1--1, 30k tbn, 29.97 tbc

Metadata:

handler_name : VideoHandler?

Stream #0:1(und): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16

, 128 kb/s

Metadata:

handler_name : SoundHandler?

Stream mapping:

Stream #0:0 -> #0:0 (h264 -> libx264) Stream #1:0 -> #0:1 (aac -> libvo_aacenc)

Press [q] to stop, ? for help frame= 54 fps=0.0 q=29.0 size= 0kB time=00:00:00.06 bitrate= 5.8kbits/ frame= 80 fps= 76 q=29.0 size= 219kB time=00:00:00.93 bitrate=1917.7kbits/ frame= 114 fps= 72 q=29.0 size= 219kB time=00:00:02.06 bitrate= 866.1kbits/ frame= 148 fps= 71 q=29.0 size= 219kB time=00:00:03.20 bitrate= 559.3kbits/ frame= 187 fps= 72 q=29.0 size= 219kB time=00:00:04.50 bitrate= 397.7kbits/ frame= 226 fps= 72 q=29.0 size= 219kB time=00:00:05.80 bitrate= 308.6kbits/ frame= 261 fps= 63 q=2686559.0 Lsize= 390kB time=00:00:08.64 bitrate= 369.9 kbits/s video:251kB audio:133kB subtitle:0 global headers:0kB muxing overhead 1.517758% [libx264 @ 024adac0] frame I:2 Avg QP:20.77 size: 84310 [libx264 @ 024adac0] frame P:68 Avg QP:24.08 size: 1098 [libx264 @ 024adac0] frame B:191 Avg QP:33.16 size: 70 [libx264 @ 024adac0] consecutive B-frames: 1.9% 1.5% 0.0% 96.6% [libx264 @ 024adac0] mb I I16..4: 65.2% 4.7% 30.2% [libx264 @ 024adac0] mb P I16..4: 0.8% 0.0% 0.3% P16..4: 0.6% 0.1% 0.0%

0.0% 0.0% skip:98.1%

[libx264 @ 024adac0] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.7% 0.0% 0.0%

direct: 0.0% skip:99.2% L0:48.3% L1:51.6% BI: 0.1%

[libx264 @ 024adac0] 8x8 transform intra:3.7% inter:46.9% [libx264 @ 024adac0] coded y,uvDC,uvAC intra: 20.3% 19.0% 16.6% inter: 0.1% 0.1%

0.0%

[libx264 @ 024adac0] i16 v,h,dc,p: 62% 37% 0% 0% [libx264 @ 024adac0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 74% 12% 12% 0% 0% 0% 0%

0% 1%

[libx264 @ 024adac0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 39% 12% 2% 2% 2% 3%

2% 3%

[libx264 @ 024adac0] i8c dc,h,v,p: 67% 23% 9% 0% [libx264 @ 024adac0] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 024adac0] ref P L0: 79.1% 12.4% 6.1% 2.4% [libx264 @ 024adac0] ref B L0: 60.7% 38.5% 0.8% [libx264 @ 024adac0] ref B L1: 95.4% 4.6% [libx264 @ 024adac0] kb/s:235.67

then executing ffplay test.mp4 to view the result mp4, you will notice that audio not syndicate with video from the pronunciation of "ffffff" and input "fffffff" via keyboard .

But if we merge the audio and video to a avi file , the audio/video syndicated correctly.

ffmpeg -i aaa.mp4 -i bbb.mp4 test.avi.

I tested with old release and found that http://ffmpeg.zeranoe.com/builds/win32/dev/ffmpeg-git-e01f478-win32-dev.7z built on 2012/03/20 is still ok. From http://ffmpeg.zeranoe.com/builds/win32/dev/ffmpeg-git-4082198-win32-dev.7z built on 2012/03/25 the problem was introduced.

I compared the source code between 03/20 and 03/25 and suspect the audio encode api in codec switch from encode to encode2 interface caused the problem.


#2776 MXF DV from AAF (Avid) not demuxable avformat defect Jul 11, 2013

I am uploading the file MXF_DVCAM_not_demuxable.mxf to the FTP which causes the problem.

To reproduce the problem just type:

ffplay -v 9 -loglevel 99 -i Olimpic_Games.mxf

ffplay version 1.2 Copyright (c) 2003-2013 the FFmpeg developers
  built on Mar 28 2013 00:31:28 with gcc 4.8.0 (GCC)

This file starts playing (with ffplay) fine, but after 5 or 6 seconds the following error message shows up:

[mxf @ 01a07a00] KLV for edit unit 123 extends into next edit unit - OPAtom misinterpreted as OP1a?
[mxf @ 01a07a00] 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.

VLC can decode the file as well as other profesisonal video editors (Edius, other).

The exact same issue happens when using the ffmpeg API directly, or the ffmpeg.exe tool. Actually, the file was generated from and Avid AAF by means of a MXF Mainconcept multiplexer (SDK version 9.5). I believe the file is fine as it is playable with vlc, editable with Edius and other profesisonal video editors. Mainconcept's MXF Demuxer also can read the file fine.

Ignasi


#3369 Copying from MPEG TS to MKV fails with "Can't write packet with unknown timestamp" undetermined defect Feb 3, 2014

When copying from a DVB recording of a channel, to change the container type from MPEG TS to Matroska, the copy aborts as soon as it encounters a missing timestamp with the message:

"Can't write packet with unknown timestamp"

The equivalent operation to change the container to MP4 merely reports a warning message and continues encoding to the end of the file:

"pts has no value"

How to reproduce:

% ffmpeg-2014-02-03 -y  -i TestFiles/BBC3HD_Sherlock_Cut.mpg -vcodec copy -acodec copy  -map 0:0 -map 0:15 -map 0:1 test.mkv
ffmpeg version 2.1.git Copyright (c) 2000-2014 the FFmpeg developers
  built on Feb  3 2014 17:36:04 with gcc 4.3.2 (Debian 4.3.2-1.1)
  configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall -g ' --enable-shared --enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --disable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --disable-libspeex --enable-nonfree --disable-stripping --enable-avfilter --enable-libfreetype --disable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --extra-libs=-lgcrypt --disable-altivec --disable-armv5te --disable-armv6 --disable-vis --enable-libzvbi --extra-cflags='-I/home/justin/ffmpeg/x264-2014-01-04/ -I/home/justin/ffmpeg/xvidcore-2014-01-04/src/ -I/home/justin/ffmpeg/libogg-1.3.1/include -I/home/justin/ffmpeg/libtheora-1.1.1/include -I/home/justin/ffmpeg/libvorbis-1.3.3/include -I/home/justin/ffmpeg/libvpx-2014-01-12/libvpx' --extra-ldflags='-L/home/justin/ffmpeg/x264-2014-01-04/ -L/home/justin/ffmpeg/xvidcore-2014-01-04/build/generic/=build/ -L/home/justin/ffmpeg/libogg-1.3.1/src/.libs/ -L/home/justin/ffmpeg/libtheora-1.1.1/lib/.libs/ -L/home/justin/ffmpeg/libvorbis-1.3.3/lib/.libs/ -L/home/justin/ffmpeg/libvpx-2014-01-12/libvpx' --extra-libs=-ldl
  libavutil      52. 63.100 / 52. 63.100
  libavcodec     55. 49.101 / 55. 49.101
  libavformat    55. 29.100 / 55. 29.100
  libavdevice    55.  7.100 / 55.  7.100
  libavfilter     4.  1.102 /  4.  1.102
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[h264 @ 0x93bdc00] non-existing PPS referenced
[h264 @ 0x93bdc00] non-existing PPS 0 referenced
[h264 @ 0x93bdc00] decode_slice_header error
[h264 @ 0x93bdc00] no frame!
[mpegts @ 0x93b9de0] Stream #3: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x93b9de0] Stream #4: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x93b9de0] Stream #5: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x93b9de0] Stream #6: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x93b9de0] Stream #7: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x93b9de0] Stream #8: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x93b9de0] Stream #9: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x93b9de0] Stream #10: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x93b9de0] Stream #11: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x93b9de0] Stream #12: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x93b9de0] Stream #13: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x93b9de0] Stream #14: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x93b9de0] Stream #16: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x93b9de0] Stream #17: not enough frames to estimate rate; consider increasing probesize
[NULL @ 0x93bf520] start time is not set in estimate_timings_from_pts
[NULL @ 0x93bfd80] start time is not set in estimate_timings_from_pts
[NULL @ 0x93c05e0] start time is not set in estimate_timings_from_pts
[NULL @ 0x93c16e0] start time is not set in estimate_timings_from_pts
[NULL @ 0x93c1f40] start time is not set in estimate_timings_from_pts
[NULL @ 0x93d48e0] start time is not set in estimate_timings_from_pts
[NULL @ 0x93d5100] start time is not set in estimate_timings_from_pts
[NULL @ 0x93d5960] start time is not set in estimate_timings_from_pts
[NULL @ 0x93d61c0] start time is not set in estimate_timings_from_pts
[NULL @ 0x93d6a20] start time is not set in estimate_timings_from_pts
[NULL @ 0x93d72c0] start time is not set in estimate_timings_from_pts
[NULL @ 0x93d8400] start time is not set in estimate_timings_from_pts
[NULL @ 0x93d8d00] start time is not set in estimate_timings_from_pts
[mpegts @ 0x93b9de0] PES packet size mismatch
    Last message repeated 1 times
[mpegts @ 0x93b9de0] Could not find codec parameters for stream 3 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x93b9de0] Could not find codec parameters for stream 4 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x93b9de0] Could not find codec parameters for stream 5 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x93b9de0] Could not find codec parameters for stream 7 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x93b9de0] Could not find codec parameters for stream 8 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x93b9de0] Could not find codec parameters for stream 9 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x93b9de0] Could not find codec parameters for stream 10 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x93b9de0] Could not find codec parameters for stream 11 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x93b9de0] Could not find codec parameters for stream 12 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x93b9de0] Could not find codec parameters for stream 13 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x93b9de0] Could not find codec parameters for stream 14 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x93b9de0] Could not find codec parameters for stream 16 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x93b9de0] Could not find codec parameters for stream 17 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'TestFiles/BBC3HD_Sherlock_Cut.mpg':
  Duration: 00:00:14.26, start: 39086.002622, bitrate: 11765 kb/s
  Program 1 
    Stream #0:0[0x15e0]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x15e2](NAR): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 256 kb/s
    Stream #0:2[0x15e3](eng,eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006), 492x250
    Stream #0:3[0xf06]: Unknown: none ([11][0][0][0] / 0x000B)
    Stream #0:4[0xf07]: Unknown: none ([11][0][0][0] / 0x000B)
    Stream #0:5[0xf09]: Unknown: none ([11][0][0][0] / 0x000B)
    Stream #0:6[0x15e4](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
    Stream #0:7[0xf00]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:8[0xf01]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:9[0xf02]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:10[0xf03]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:11[0xf04]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:12[0x911]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:13[0x912]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:14[0x913]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:15[0x15e1](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 192 kb/s
    Stream #0:16[0x15e5]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:17[0x15e6]: Unknown: none ([5][0][0][0] / 0x0005)
Output #0, matroska, to 'test.mkv':
  Metadata:
    encoder         : Lavf55.29.100
    Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 1k tbn, 90k tbc
    Stream #0:1(eng): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, 192 kb/s
    Stream #0:2(NAR): Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, 256 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:15 -> #0:1 (copy)
  Stream #0:1 -> #0:2 (copy)
Press [q] to stop, [?] for help
[matroska @ 0x93d9dc0] Can't write packet with unknown timestamp
av_interleaved_write_frame(): Invalid argument
[matroska @ 0x93d9dc0] Can't write packet with unknown timestamp
frame=  173 fps=0.0 q=-1.0 Lsize=    6494kB time=00:00:08.06 bitrate=6594.1kbits/s    
video:7021kB audio:395kB subtitle:0 data:0 global headers:0kB muxing overhead -12.425578%

Using '-fflags +genpts' as recommended in some other reports has no effect on the output, thus:

% ffmpeg-2014-02-03 -y -fflags +genpts -i TestFiles/BBC3HD_Sherlock_Cut.mpg -vcodec copy -acodec copy  -map 0:0 -map 0:15 -map 0:1 test.mkv

ffmpeg version 2.1.git Copyright (c) 2000-2014 the FFmpeg developers
  built on Feb  3 2014 17:36:04 with gcc 4.3.2 (Debian 4.3.2-1.1)
  configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall -g ' --enable-shared --enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --disable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --disable-libspeex --enable-nonfree --disable-stripping --enable-avfilter --enable-libfreetype --disable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --extra-libs=-lgcrypt --disable-altivec --disable-armv5te --disable-armv6 --disable-vis --enable-libzvbi --extra-cflags='-I/home/justin/ffmpeg/x264-2014-01-04/ -I/home/justin/ffmpeg/xvidcore-2014-01-04/src/ -I/home/justin/ffmpeg/libogg-1.3.1/include -I/home/justin/ffmpeg/libtheora-1.1.1/include -I/home/justin/ffmpeg/libvorbis-1.3.3/include -I/home/justin/ffmpeg/libvpx-2014-01-12/libvpx' --extra-ldflags='-L/home/justin/ffmpeg/x264-2014-01-04/ -L/home/justin/ffmpeg/xvidcore-2014-01-04/build/generic/=build/ -L/home/justin/ffmpeg/libogg-1.3.1/src/.libs/ -L/home/justin/ffmpeg/libtheora-1.1.1/lib/.libs/ -L/home/justin/ffmpeg/libvorbis-1.3.3/lib/.libs/ -L/home/justin/ffmpeg/libvpx-2014-01-12/libvpx' --extra-libs=-ldl
  libavutil      52. 63.100 / 52. 63.100
  libavcodec     55. 49.101 / 55. 49.101
  libavformat    55. 29.100 / 55. 29.100
  libavdevice    55.  7.100 / 55.  7.100
  libavfilter     4.  1.102 /  4.  1.102
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[h264 @ 0x8549c20] non-existing PPS referenced
[h264 @ 0x8549c20] non-existing PPS 0 referenced
[h264 @ 0x8549c20] decode_slice_header error
[h264 @ 0x8549c20] no frame!
[mpegts @ 0x8545e20] Stream #3: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x8545e20] Stream #4: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x8545e20] Stream #5: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x8545e20] Stream #6: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x8545e20] Stream #7: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x8545e20] Stream #8: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x8545e20] Stream #9: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x8545e20] Stream #10: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x8545e20] Stream #11: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x8545e20] Stream #12: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x8545e20] Stream #13: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x8545e20] Stream #14: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x8545e20] Stream #16: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x8545e20] Stream #17: not enough frames to estimate rate; consider increasing probesize
[NULL @ 0x854b5c0] start time is not set in estimate_timings_from_pts
[NULL @ 0x854be20] start time is not set in estimate_timings_from_pts
[NULL @ 0x854c6e0] start time is not set in estimate_timings_from_pts
[NULL @ 0x854d7a0] start time is not set in estimate_timings_from_pts
[NULL @ 0x854e000] start time is not set in estimate_timings_from_pts
[NULL @ 0x8560960] start time is not set in estimate_timings_from_pts
[NULL @ 0x85611c0] start time is not set in estimate_timings_from_pts
[NULL @ 0x8561a20] start time is not set in estimate_timings_from_pts
[NULL @ 0x8562280] start time is not set in estimate_timings_from_pts
[NULL @ 0x8562ae0] start time is not set in estimate_timings_from_pts
[NULL @ 0x8563340] start time is not set in estimate_timings_from_pts
[NULL @ 0x8564400] start time is not set in estimate_timings_from_pts
[NULL @ 0x8564d00] start time is not set in estimate_timings_from_pts
[mpegts @ 0x8545e20] PES packet size mismatch
    Last message repeated 1 times
[mpegts @ 0x8545e20] Could not find codec parameters for stream 3 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x8545e20] Could not find codec parameters for stream 4 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x8545e20] Could not find codec parameters for stream 5 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x8545e20] Could not find codec parameters for stream 7 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x8545e20] Could not find codec parameters for stream 8 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x8545e20] Could not find codec parameters for stream 9 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x8545e20] Could not find codec parameters for stream 10 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x8545e20] Could not find codec parameters for stream 11 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x8545e20] Could not find codec parameters for stream 12 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x8545e20] Could not find codec parameters for stream 13 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x8545e20] Could not find codec parameters for stream 14 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x8545e20] Could not find codec parameters for stream 16 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x8545e20] Could not find codec parameters for stream 17 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'TestFiles/BBC3HD_Sherlock_Cut.mpg':
  Duration: 00:00:14.26, start: 39086.002622, bitrate: 11765 kb/s
  Program 1 
    Stream #0:0[0x15e0]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x15e2](NAR): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 256 kb/s
    Stream #0:2[0x15e3](eng,eng): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006), 492x250
    Stream #0:3[0xf06]: Unknown: none ([11][0][0][0] / 0x000B)
    Stream #0:4[0xf07]: Unknown: none ([11][0][0][0] / 0x000B)
    Stream #0:5[0xf09]: Unknown: none ([11][0][0][0] / 0x000B)
    Stream #0:6[0x15e4](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
    Stream #0:7[0xf00]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:8[0xf01]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:9[0xf02]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:10[0xf03]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:11[0xf04]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:12[0x911]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:13[0x912]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:14[0x913]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:15[0x15e1](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 192 kb/s
    Stream #0:16[0x15e5]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:17[0x15e6]: Unknown: none ([5][0][0][0] / 0x0005)
Output #0, matroska, to 'test.mkv':
  Metadata:
    encoder         : Lavf55.29.100
    Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 1k tbn, 90k tbc
    Stream #0:1(eng): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, 192 kb/s
    Stream #0:2(NAR): Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, 256 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:15 -> #0:1 (copy)
  Stream #0:1 -> #0:2 (copy)
Press [q] to stop, [?] for help
[matroska @ 0x8565aa0] Can't write packet with unknown timestamp
av_interleaved_write_frame(): Invalid argument
[matroska @ 0x8565aa0] Can't write packet with unknown timestamp
frame=  173 fps=0.0 q=-1.0 Lsize=    6494kB time=00:00:08.06 bitrate=6594.1kbits/s    
video:7021kB audio:395kB subtitle:0 data:0 global headers:0kB muxing overhead -12.425578%

Example file for problem, and the related logs can be found here:

http://usenet.gerph.org/FFMPEG/Copy-BBC-HD-To-MKV-Fails/

  • BBC3HD_Sherlock_Cut.mpg
    • Example file.
  • ffmpeg-fileinfo-2014-02-03.txt
    • Output from "ffmpeg -i" from snapshot as at 2014-02-03.
  • ffmpeg-fileinfo.txt
    • Output from "ffmpeg -i" from 2.1.3.
  • ffmpeg-mkv-copy-fails-2014-02-03+genpts.txt
    • Output from "ffmpeg -fflags +genpts ... test.mkv" from snapshot as at 2014-02-03.
  • ffmpeg-mkv-copy-fails-2014-02-03.txt
    • Output from "ffmpeg ... test.mkv" from snapshot as at 2014-02-03.
  • ffmpeg-mkv-copy-fails.txt
    • Output from "ffmpeg ... test.mkv" from 2.1.3.
  • ffmpeg-mp4-copy-works-2014-02-03.txt
    • Output from "ffmpeg ... test.mp4" from snapshot as at 2014-02-03; for comparison of a working conversion.
  • ffmpeg-mp4-copy-works.txt
    • Output from "ffmpeg ... test.mp4" from 2.1.3; for comparison of a working conversion.

Tested on 2.1.1, 2.1.3 and snapshot from 2014-02-03. All fail in the manner described. The '-fflags +genpts' option has no effect on any of these versions.


#3621 "pts < dts" causing remuxing failure for h264 from mkv to mkv avformat defect May 7, 2014

I have some h264/mkv files that ffmpeg blows up on while remuxing, due to non-monotonic pts timestamps.

$ ffmpeg -nostats -i test.mkv -c:v copy -c:a copy out.mkv
ffmpeg version 2.2.1 Copyright (c) 2000-2014 the FFmpeg developers
  built on May  7 2014 00:59:53 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
  configuration: --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid
  libavutil      52. 66.100 / 52. 66.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 33.100 / 55. 33.100
  libavdevice    55. 10.100 / 55. 10.100
  libavfilter     4.  2.100 /  4.  2.100
  libavresample   1.  2.  0 /  1.  2.  0
  libswscale      2.  5.102 /  2.  5.102
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
Input #0, matroska,webm, from 'test.mkv':
  Metadata:
    encoder         : libebml v1.3.0 + libmatroska v1.4.0
    creation_time   : 2014-05-06 09:28:53
  Duration: 00:44:21.01, start: 0.000000, bitrate: 0 kb/s
    Stream #0:0(eng): Video: h264 (High), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 2k tbc (default)
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
    Stream #0:2(eng): Subtitle: subrip (default)
Output #0, matroska, to 'out.mkv':
  Metadata:
    encoder         : Lavf55.33.100
    Stream #0:0(eng): Video: h264 (H264 / 0x34363248), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 1k tbn, 1k tbc (default)
    Stream #0:1(eng): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), 384 kb/s (default)
    Stream #0:2(eng): Subtitle: ssa (default)
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
  Stream #0:2 -> #0:2 (subrip -> ssa)
Press [q] to stop, [?] for help
[matroska @ 0x7f9c6283de00] pts (375) < dts (418) in stream 0
av_interleaved_write_frame(): Invalid argument
frame=   11 fps=0.0 q=-1.0 Lsize=     217kB time=00:00:00.59 bitrate=2983.2kbits/s
video:189kB audio:27kB subtitle:0 data:0 global headers:0kB muxing overhead 0.492406%

Here are the video packets from -debug_ts on one of the files:

muxer <- type:video pkt_pts:0 pkt_pts_time:0 pkt_dts:0 pkt_dts_time:0 size:32998
muxer <- type:video pkt_pts:42 pkt_pts_time:0.042 pkt_dts:42 pkt_dts_time:0.042 size:31878
muxer <- type:video pkt_pts:83 pkt_pts_time:0.083 pkt_dts:83 pkt_dts_time:0.083 size:34437
muxer <- type:video pkt_pts:125 pkt_pts_time:0.125 pkt_dts:125 pkt_dts_time:0.125 size:26936
muxer <- type:video pkt_pts:167 pkt_pts_time:0.167 pkt_dts:167 pkt_dts_time:0.167 size:22856
muxer <- type:video pkt_pts:209 pkt_pts_time:0.209 pkt_dts:209 pkt_dts_time:0.209 size:22355
muxer <- type:video pkt_pts:250 pkt_pts_time:0.25 pkt_dts:250 pkt_dts_time:0.25 size:14882
muxer <- type:video pkt_pts:292 pkt_pts_time:0.292 pkt_dts:292 pkt_dts_time:0.292 size:3548
muxer <- type:video pkt_pts:334 pkt_pts_time:0.334 pkt_dts:334 pkt_dts_time:0.334 size:2954
muxer <- type:video pkt_pts:417 pkt_pts_time:0.417 pkt_dts:417 pkt_dts_time:0.417 size:138
muxer <- type:video pkt_pts:375 pkt_pts_time:0.375 pkt_dts:418 pkt_dts_time:0.418 size:140
[matroska @ 0x7fb88c0eaa00] pts (375) < dts (418) in stream 0
av_interleaved_write_frame(): Invalid argument

I believe the error can be ignored, as ffmpeg will attempt to fix timestamps in the output file.

--- a/libavformat/mux.c
+++ b/libavformat/mux.c
@@ -486,7 +486,6 @@ static int compute_pkt_fields2(AVFormatContext *s, AVStream *st, AVPacket *pkt)
     if (pkt->dts != AV_NOPTS_VALUE && pkt->pts != AV_NOPTS_VALUE && pkt->pts < pkt->dts) {
         av_log(s, AV_LOG_ERROR, "pts (%s) < dts (%s) in stream %d\n",
                av_ts2str(pkt->pts), av_ts2str(pkt->dts), st->index);
-        return AVERROR(EINVAL);
     }

     av_dlog(s, "av_write_frame: pts2:%s dts2:%s\n",

With the change above, ffmpeg on master warns me but is able to process my entire input file without crashing:

[matroska @ 0x7fabdc034600] pts (375) < dts (418) in stream 0
[matroska @ 0x7fabdc034600] Non-monotonous DTS in output stream 0:0; previous: 418, current: 375; changing to 418. This may result in incorrect timestamps in the output file.
frame=  152 fps=0.0 q=-1.0 Lsize=    4475kB time=00:00:06.48 bitrate=5654.2kbits/s
video:4168kB audio:303kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.089263%

#3664 ffprobe can't read packet DTS/PTS (regression since removal of dts_sync_point code) undetermined defect May 23, 2014

ffprobe built from latest git head can't read out all DTS/PTS. attached txt are output by calling ffprobe -show_packets -select_streams v INPUT

hxuanyu@ubuntu:~/Downloads/ffmpeg$ ./ffprobe -show_packets -select_streams v v_h264_30_yuv420p_dar30x17_0.mpeg >latest.txt
ffprobe version N-63381-g64bf845 Copyright (c) 2007-2014 the FFmpeg developers
  built on May 23 2014 16:39:38 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration: --enable-static --disable-shared --enable-small
  libavutil      52. 86.100 / 52. 86.100
  libavcodec     55. 63.100 / 55. 63.100
  libavformat    55. 40.100 / 55. 40.100
  libavdevice    55. 13.101 / 55. 13.101
  libavfilter     4.  5.100 /  4.  5.100
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
Input #0, mpeg, from 'v_h264_30_yuv420p_dar30x17_0.mpeg':
  Duration: 00:00:06.01, start: 1.000000, bitrate: 703 kb/s
    Stream #0:0[0x1e0]: Video: h264, yuv420p, 480x272 [SAR 1:1 DAR 30:17], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc

but ffprobe built from ffmpeg 2.0.1 could read out all DTS/PTS


#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


#3731 ffserver daemon mode ffserver defect Jun 20, 2014

ffserver much older versions, at 0.5 times, would fork to background as a daemon, as every "server" program does.

Current behaviour of ffserver, at 2.2.1 level (but change was fairly recent), one can only background it via the "&" shell operator.

I have to say that this makes ffserver look like a toy server. It has logging capability to a file, but it lacks forking to background upon starting like any *NIX daemon and lacks a debug mode command line switch that prevents it from forking, forcing foreground mode and logging to console instead.

These functionalities existed in ffserver older versions, but seem to have been removed intentionally.

I submit this bug as a request to restore these functionalities in ffserver and thus returning it's status as a serious media streaming application.

Thank you.


#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)


#4736 h264_qsv and hevc_qsv crashes on windows 8.1 (q=-0.0) undetermined defect Jul 25, 2015

ffmpeg -report -i pills.mp4 -c:v h264_qsv -q 20 pills2.mp4 ffmpeg version N-73959-g52c75d4 Copyright (c) 2000-2015 the FFmpeg developers

built with gcc 4.9.2 (GCC) configuration: --arch=x86_64 --target-os=mingw32 --cross-prefix=/home/mint/sandbox/mingw-w64-x86_64/bin/x86_64-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libsoxr --enable-fontconfig --enable-libass --enable-libutvideo --enable-libbluray --enable-iconv --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC --enable-libzvbi --enable-libcaca --enable-libmodplug --extra-libs=-lstdc++ --extra-libs=-lpng --enable-libvidstab --enable-libx265 --enable-decklink --extra-libs=-loleaut32 --enable-libx264 --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-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx --enable-libilbc --enable-libwavpack --enable-libwebp --en libavutil 54. 28.100 / 54. 28.100 libavcodec 56. 52.100 / 56. 52.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 27.100 / 5. 27.100 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 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 '-i' ... matched as input file with argument 'pills.mp4'. Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'h264_qsv'. Reading option '-q' ... matched as option 'q' (use fixed quality scale (VBR)) with argument '20'. Reading option 'pills2.mp4' ... 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 pills.mp4. Successfully parsed a group of options. Opening an input file: pills.mp4. [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000c473a0] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000c473a0] ISO: File Type Major Brand: mp42 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000c473a0] Before avformat_find_stream_info() pos: 84216 bytes read:98304 seeks:0 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000c473a0] All info found [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000c473a0] After avformat_find_stream_info() pos: 186111 bytes read:196608 seeks:0 frames:14 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'pills.mp4':

Metadata:

major_brand : mp42 minor_version : 0 compatible_brands: isommp42 creation_time : 2014-06-22 20:34:13

Duration: 00:04:33.02, start: 0.000000, bitrate: 1316 kb/s

Stream #0:0(und), 13, 1/24: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1122 kb/s, 24 fps, 24 tbr, 24 tbn, 48 tbc (default) Metadata:

handler_name : VideoHandler?

Stream #0:1(und), 1, 1/44100: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 191 kb/s (default) Metadata:

creation_time : 2014-06-22 20:34:15 handler_name : IsoMedia? File Produced by Google, 5-11-2011

Successfully opened the file. Parsing a group of options: output file pills2.mp4. Applying option c:v (codec name) with argument h264_qsv. Applying option q (use fixed quality scale (VBR)) with argument 20. Successfully parsed a group of options. Opening an output file: pills2.mp4. Successfully opened the file. detected 8 logical cores [graph 0 input from stream 0:0 @ 00000000055ad3c0] Setting 'video_size' to value '1280x720' [graph 0 input from stream 0:0 @ 00000000055ad3c0] Setting 'pix_fmt' to value '0' [graph 0 input from stream 0:0 @ 00000000055ad3c0] Setting 'time_base' to value '1/24' [graph 0 input from stream 0:0 @ 00000000055ad3c0] Setting 'pixel_aspect' to value '1/1' [graph 0 input from stream 0:0 @ 00000000055ad3c0] Setting 'sws_param' to value 'flags=2' [graph 0 input from stream 0:0 @ 00000000055ad3c0] Setting 'frame_rate' to value '24/1' [graph 0 input from stream 0:0 @ 00000000055ad3c0] w:1280 h:720 pixfmt:yuv420p tb:1/24 fr:24/1 sar:1/1 sws_param:flags=2 [format @ 000000000587c7c0] compat: called with args=[nv12|qsv] [format @ 000000000587c7c0] Setting 'pix_fmts' to value 'nv12|qsv' [auto-inserted scaler 0 @ 000000000587c880] Setting 'flags' to value '0x4' [auto-inserted scaler 0 @ 000000000587c880] w:iw h:ih flags:'0x4' interl:0 [format @ 000000000587c7c0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed_null_0' and the filter 'format' [AVFilterGraph @ 0000000005a552e0] query_formats: 4 queried, 2 merged, 1 already done, 0 delayed [auto-inserted scaler 0 @ 000000000587c880] w:1280 h:720 fmt:yuv420p sar:1/1 -> w:1280 h:720 fmt:nv12 sar:1/1 flags:0x4 [graph 1 input from stream 0:1 @ 0000000005a66f40] Setting 'time_base' to value '1/44100' [graph 1 input from stream 0:1 @ 0000000005a66f40] Setting 'sample_rate' to value '44100' [graph 1 input from stream 0:1 @ 0000000005a66f40] Setting 'sample_fmt' to value 'fltp' [graph 1 input from stream 0:1 @ 0000000005a66f40] Setting 'channel_layout' to value '0x3' [graph 1 input from stream 0:1 @ 0000000005a66f40] tb:1/44100 samplefmt:fltp samplerate:44100 chlayout:0x3 [audio format for output stream 0:1 @ 0000000005a66880] Setting 'sample_fmts' to value 's16' [audio format for output stream 0:1 @ 0000000005a66880] Setting 'sample_rates' to value '96000|88200|64000|48000|44100|32000|24000|22050|16000|12000|11025|8000' [audio format for output stream 0:1 @ 0000000005a66880] Setting 'channel_layouts' to value '0x4|0x3|0x7|0x107|0x37|0x3f|0xff|0x63f' [audio format for output stream 0:1 @ 0000000005a66880] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:1' [AVFilterGraph @ 0000000005a551a0] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed [auto-inserted resampler 0 @ 0000000005a67240] [SWR @ 0000000000c28e20] Using fltp internally between filters [auto-inserted resampler 0 @ 0000000005a67240] ch:2 chl:stereo fmt:fltp r:44100Hz -> ch:2 chl:stereo fmt:s16 r:44100Hz [h264_qsv @ 00000000057000a0] Initialized an internal MFX session using hardware accelerated implementation [h264_qsv @ 00000000057000a0] Using the constant quantization parameter (CQP) ratecontrol method [libfdk_aac @ 0000000000c4fba0] VBR quality 2360 out of range, should be 1-5 [libfdk_aac @ 0000000000c4fba0] Note, the VBR setting is unsupported and only works with some parameter combinations Output #0, mp4, to 'pills2.mp4':

Metadata:

major_brand : mp42 minor_version : 0 compatible_brands: isommp42 encoder : Lavf56.40.101 Stream #0:0(und), 0, 1/12288: Video: h264 (h264_qsv) ([33][0][0][0] / 0x0021), nv12, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 1000 kb/s, 24 fps, 12288 tbn, 24 tbc (default) Metadata:

handler_name : VideoHandler? encoder : Lavc56.52.100 h264_qsv

Stream #0:1(und), 0, 1/44100: Audio: aac (libfdk_aac) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16 (default) Metadata:

creation_time : 2014-06-22 20:34:15 handler_name : IsoMedia? File Produced by Google, 5-11-2011 encoder : Lavc56.52.100 libfdk_aac

Stream mapping:

Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_qsv)) Stream #0:1 -> #0:1 (aac (native) -> aac (libfdk_aac))

Press [q] to stop, ? for help Cliping frame in rate conversion by 0.000008 frame= 193 fps=0.0 q=-0.0 size= 983kB time=00:00:07.77 bitrate=1035.1kbits/s frame= 403 fps=397 q=-0.0 size= 2327kB time=00:00:16.88 bitrate=1129.4kbits/s frame= 614 fps=405 q=-0.0 size= 3205kB time=00:00:25.68 bitrate=1022.3kbits/s frame= 825 fps=406 q=-0.0 size= 8096kB time=00:00:34.13 bitrate=1943.1kbits/s frame= 1034 fps=408 q=-0.0 size= 9395kB time=00:00:42.88 bitrate=1794.5kbits/s frame= 1246 fps=409 q=-0.0 size= 11149kB time=00:00:51.71 bitrate=1766.2kbits/s frame= 1466 fps=413 q=-0.0 size= 12587kB time=00:01:00.92 bitrate=1692.3kbits/s

Received windows signal 0


#4820 Converting a H264 MXF to a H264 MOV with "-vcodec copy" results in mov unreadable by QuickTime avformat defect Sep 1, 2015

Summary of the bug:

Using ffmpeg 2.5 (but doesn't work either with 2.6, 2.7 nor master)

How to reproduce:

%./ffmpeg -i h264_vid.mxf -vcodec copy  test.mov

Video is readable by most players (totem, VLC) but not Quicktime, which reports the following errors: "chroma_format_idc too large for high profile" and "invalid H264 profile 122 and/or level 4.1"

Not using "-vcodec copy" results in a video readable by Quicktime, but with very poor quality.

The problem seems to be that in avformat_open_input / mxf_read_header / mxf_parse_structural_metadata, we call "ff_generate_avci_extradata" if codec is H264, which uses a default set of extradata that Quicktime doesn't support AFAICT.

In avformat_find_stream_info, we actually find some (correct) extradata, but we don't set them because st->codec->extradata isn't NULL (already set in avformat_open_input), here:

if (st->parser && st->parser->parser->split && !st->codec->extradata)

As a workaround, when using ffmpeg's lib, removing the extra data between avformat_open_input call and avformat_find_stream_info fixes the issue.

I don't have a workaround when using command line.


#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)


#5067 crash on Mapping Multicast TV Stream to HLS with "Exactly one WebVTT stream is needed" as message avformat defect Dec 5, 2015

Summary of the bug: i want to map a multicast TV Stream as is to HLS. Till ffmpeg 2.7.2 there was no Problem with the command line. With ffmpeg 2.8.0 till now with ffmpeg 2.8.3 ffmpeg says now "Exactly one WebVTT stream is needed" and crashes. The debug Output comes from ffmpeg 2.8.2, but with ffmpeg 2.8.3 it's the same Problem.

As should be: The command line should run without Problems, even without WebVTT streams, and should map all subtitles as is.

How to reproduce:

root@ffmpegserver:~/ffmpeg-2.8.2-64bit-static# ./ffmpeg -i udp://@239.100.1.1:1234 -map 0 -probesize 100 -analyzeduration 100 -c copy -copy_unknown -f hls -hls_time 10 -hls_wrap 10 -hls_list_size 10 /var/www/test1_.m3u8 -loglevel debug
ffmpeg version 2.8.2-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2015 the FFmpeg developers
 built with gcc 5.2.1 (Debian 5.2.1-23) 20151028
 configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr --enable-frei0r --enable-libfribidi --disable-indev=sndio --disable-outdev=sndio --cc=gcc
 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
Splitting the commandline.
Reading option '-i' ... matched as input file with argument 'udp://@239.100.1.1:1234'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0'.
Reading option '-probesize' ... matched as AVOption 'probesize' with argument '100'.
Reading option '-analyzeduration' ... matched as AVOption 'analyzeduration' with argument '100'.
Reading option '-c' ... matched as option 'c' (codec name) with argument 'copy'.
Reading option '-copy_unknown' ... matched as option 'copy_unknown' (Copy unknown stream types) with argument '1'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'hls'.
Reading option '-hls_time' ... matched as AVOption 'hls_time' with argument '10'.
Reading option '-hls_wrap' ... matched as AVOption 'hls_wrap' with argument '10'.
Reading option '-hls_list_size' ... matched as AVOption 'hls_list_size' with argument '10'.
Reading option '/var/www/test1_.m3u8' ... matched as output file.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option copy_unknown (Copy unknown stream types) with argument 1.
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file udp://@239.100.1.1:1234.
Successfully parsed a group of options.
Opening an input file: udp://@239.100.1.1:1234.
[udp @ 0x3c048c0] end receive buffer size reported is 131072
[mpegts @ 0x3c04080] Format mpegts probed with size=2048 and score=100
[mpegts @ 0x3c04080] stream=0 stream_type=3 pid=90 prog_reg_desc=
[mpegts @ 0x3c04080] stream=1 stream_type=6 pid=92 prog_reg_desc=
[mpegts @ 0x3c04080] stream=2 stream_type=2 pid=a8 prog_reg_desc=
[mpegts @ 0x3c04080] stream=3 stream_type=5 pid=585 prog_reg_desc=
[mpegts @ 0x3c04080] Before avformat_find_stream_info() pos: 0 bytes read:215824 seeks:0
[mpegts @ 0x3c04080] parser not found for codec dvb_teletext, packets or times may be invalid.
[mpegts @ 0x3c04080] parser not found for codec none, packets or times may be invalid.
[mpegts @ 0x3c04080] parser not found for codec dvb_teletext, packets or times may be invalid.
[mpeg2video @ 0x3c2a080] Invalid frame dimensions 0x0.
 Last message repeated 4 times
[mpegts @ 0x3c04080] max_analyze_duration 5000000 reached at 5000000 microseconds st:2
[mpegts @ 0x3c04080] Could not find codec parameters for stream 3 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x3c04080] After avformat_find_stream_info() pos: 2948780 bytes read:2949156 seeks:0 frames:469
Input #0, mpegts, from 'udp://@239.100.1.1:1234':
 Duration: N/A, start: 85846.772444, bitrate: N/A
 Program 3394
 Metadata:
 service_name : QVC PLUS
 service_provider: SES ASTRA
 Stream #0:0[0x90](ger), 208, 1/90000: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s
 Stream #0:1[0x92](ger), 131, 1/90000: Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
 Stream #0:2[0xa8], 130, 1/90000: Video: mpeg2video (Main), 1 reference frame ([2][0][0][0] / 0x0002), yuv420p(tv, left), 720x576 [SAR 64:45 DAR 16:9], 1/50, max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
 Stream #0:3[0x585], 0, 1/90000: Unknown: none ([5][0][0][0] / 0x0005)
Successfully opened the file.
Parsing a group of options: output file /var/www/test1_.m3u8.
Applying option map (set input stream mapping) with argument 0.
Applying option c (codec name) with argument copy.
Applying option f (force format) with argument hls.
Successfully parsed a group of options.
Opening an output file: /var/www/test1_.m3u8.
Successfully opened the file.
[webvtt @ 0x3fb80c0] Exactly one WebVTT stream is needed.
[mpegts @ 0x3fb7ae0] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts
Segmentation fault (core dumped)
root@ffmpegserver:~/ffmpeg-2.8.2-64bit-static#

#5090 fragmented mp4 have bad dts on video track avformat defect Dec 16, 2015

ffmpeg version 2.8.3-39.1

As you can see from the attached log file, any fragments of video track begin with a dts that is not the continuation of the previous fragment, while in the audio track, dts grows properly, but both audio and video have tfdt box with the correct timing. Indeed ffplay it does not play the video, but audio only. However this has started to happen only recently, because before everything was ok.


#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.

#5281 FFmpeg doesn't care about existing output file ffmpeg defect Mar 2, 2016

Executing this command

ffmpeg.exe -i "H:\Musiques\Musique Papa\BACH JS\BACH JS - Intégrale Brilliiant - Volume IV - Cantates II\BACH JS - Cantantes II - 1 - 110 198\02 Piste 2.wma" -vn -acodec vorbis -strict -2 -ac 2 "H:\Musiques\Musique Papa\BACH JS\BACH JS - Intégrale Brilliiant - Volume IV - Cantates II\BACH JS - Cantantes II - 1 - 110 198\02 Piste 2.ogg"

With ffmpeg "N-77870-gb58cfa6" or "N-50911-g9efcfbe" (seriously?!) and while both files exist should output for an overwrite confirmation. It actually doesn't: FFmpeg overrides the output without a warning nor a confirm.

Hence, having the "-n" option doens't work either: FFMpeg overwrites the output file.


#5291 Wrong parsing when start time > end time in subtitles (.ass) undetermined defect Mar 6, 2016

Summary of the bug: .ass subtitles parsed wrong when dialog start time is larger than dialog end time.

How to reproduce:

Test file (test.ass):

[Script Info]
Title: Default Aegisub file
ScriptType: v4.00+
PlayResX: 1280
PlayResY: 720
PlayDepth: 16
Timer: 100,0000
WrapStyle: 1
YCbCr Matrix: TV.709

[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: Default,Arial,45,&H00FFFFFF,&H00005BFF,&H00010101,&HBE1F0C05,-1,0,0,0,90,100,0,0,1,2,0,2,10,10,15,1

[Events]
Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Dialogue: 1,0:02:11.52,0:02:11.49,Default,,0,0,0,fx,test

And then:

ffmpeg -i test.ass -f webvtt -nostats -loglevel 0 -
WEBVTT

02:11.520 --> 1193:04:58.786
<b>test</b>

As you see dialog with duration 0 ms converts to dialog with duration 1193 hours.

With loglevel 999 (but I think it's useless):

ffmpeg -i test.ass -f webvtt -loglevel 999 -
ffmpeg version N-76944-g15206ff Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
  configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libdcadec --enable-libfreetype --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvo-aacenc --enable-libvidstab
  libavutil      55.  9.100 / 55.  9.100
  libavcodec     57. 16.101 / 57. 16.101
  libavformat    57. 19.100 / 57. 19.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 17.100 /  6. 17.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
Splitting the commandline.
Reading option '-i' ... matched as input file with argument 'test.ass'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'webvtt'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '999'.
Reading option '-' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument 999.
Successfully parsed a group of options.
Parsing a group of options: input file test.ass.
Successfully parsed a group of options.
Opening an input file: test.ass.
Probing ass score:100 size:660
Probing lrc score:5 size:660
[ass @ 0x2ee93c0] Format ass probed with size=2048 and score=100
[ass @ 0x2ee93c0] Before avformat_find_stream_info() pos: 660 bytes read:660 seeks:0
[ass @ 0x2ee93c0] All info found
[ass @ 0x2ee93c0] 0: start_time: -9223372036854.775 duration: -9223372036854.775
[ass @ 0x2ee93c0] stream: start_time: -9223372036854.775 duration: -9223372036854.775 bitrate=0 kb/s
[ass @ 0x2ee93c0] After avformat_find_stream_info() pos: 660 bytes read:660 seeks:0 frames:0
Input #0, ass, from 'test.ass':
  Duration: N/A, bitrate: N/A
    Stream #0:0, 0, 1/100: Subtitle: ass
Successfully opened the file.
Parsing a group of options: output file -.
Applying option f (force format) with argument webvtt.
Successfully parsed a group of options.
Opening an output file: -.
Successfully opened the file.
WEBVTT
Output #0, webvtt, to 'pipe:':
  Metadata:
    encoder         : Lavf57.19.100
    Stream #0:0, 0, 1/1000: Subtitle: webvtt
    Metadata:
      encoder         : Lavc57.16.101 webvtt
Stream mapping:
  Stream #0:0 -> #0:0 (ass (native) -> webvtt (native))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)

02:11.520 --> 1193:04:58.786
<b>test</b>
No more output streams to write to, finishing.
size=       0kB time=00:02:11.52 bitrate=   0.0kbits/s
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 345.454559%
Input file #0 (test.ass):
  Input stream #0:0 (subtitle): 1 packets read (26 bytes); 1 frames decoded;
  Total: 1 packets (26 bytes) demuxed
Output file #0 (pipe:):
  Output stream #0:0 (subtitle): 1 frames encoded; 1 packets muxed (11 bytes);
  Total: 1 packets (11 bytes) muxed
1 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x2eead20] Statistics: 0 seeks, 2 writeouts
[AVIOContext @ 0x2ef1f40] Statistics: 660 bytes read, 0 seeks

#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.


#5671 FFmpeg unable to decode PCM in MXF avformat defect Jun 27, 2016

Summary of the bug: FFmpeg is unable to decode PCM which is wrapped in an MXF file. The MXF file is Avid compatible, but was apparently not created with Avid. Sample can be found here: http://dl.flavoursys.com/samples/ffmpeg/TVOKids_6.mxf

How to reproduce:

% $ ffmpeg -i TVOKids_6.mxf -loglevel debug -y out.wav                                                                                                                                                                                                 [17:02:14]
ffmpeg version N-80780-gd693392 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.1 (Ubuntu 5.3.1-14ubuntu2.1) 20160413
  configuration: --extra-libs=-ldl --enable-gpl --enable-nonfree --enable-version3 --enable-libfdk-aac --enable-libx264 --enable-libfreetype
  libavutil      55. 27.100 / 55. 27.100
  libavcodec     57. 48.101 / 57. 48.101
  libavformat    57. 40.101 / 57. 40.101
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 46.102 /  6. 46.102
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100
Splitting the commandline.
Reading option '-i' ... matched as input file with argument 'TVOKids_6.mxf'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option 'out.wav' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Applying option y (overwrite output files) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file TVOKids_6.mxf.
Successfully parsed a group of options.
Opening an input file: TVOKids_6.mxf.
[file @ 0x362acc0] Setting default whitelist 'file,crypto'
[mxf @ 0x362a380] Format mxf probed with size=2048 and score=100
[mxf @ 0x362a380] Dark key 06.0e.2b.34.02.53.01.01.0d.01.01.01.01.01.23.00
[mxf @ 0x362a380] Dark key 06.0e.2b.34.01.01.01.02.03.01.02.10.01.00.00.00
    Last message repeated 2 times
[mxf @ 0x362a380] Dark key 06.0e.2b.34.02.05.01.01.0d.01.02.01.01.11.01.00
[mxf @ 0x362a380] none: Universal Label: 00000000.0000.0000.00000000.00000000
[mxf @ 0x362a380] Before avformat_find_stream_info() pos: 32744 bytes read:66172 seeks:5 nb_streams:1
[mxf @ 0x362a380] IndexSID 1 segment at 0 missing EditUnitByteCount and IndexEntryArray
[mxf @ 0x362a380] After avformat_find_stream_info() pos: 32744 bytes read:66172 seeks:5 frames:0
Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, mxf, from 'TVOKids_6.mxf':
  Metadata:
    uid             : 27023931-e9a3-4549-946d-a5aea01cec3e
    generation_uid  : bd18e86b-ee7a-4f8f-8ceb-7ab5ac3f175f
    company_name    : Matrox Electronic
    product_name    : DSX
    product_version : 4.0
    product_uid     : 060e2b34-0401-0109-0e0e-010101000001
    modification_date: 2016-05-31 17:30:17
    material_package_umid: 0x060A2B340101010501010D20130000004F5296D2A16741ED9D11A972EA7C9C30
    material_package_name: 0004PE
    timecode        : 11:22:33;00
  Duration: 00:00:18.95, start: 0.000000, bitrate: 1166 kb/s
    Stream #0:0, 0, 1/48000: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D20130000000B45AF7186674D708C09A0FCF3D5B364
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.
[file @ 0x3631540] Setting default whitelist 'file,crypto'
Successfully opened the file.
detected 16 logical cores
[graph 0 input from stream 0:0 @ 0x3643980] Setting 'time_base' to value '1/48000'
[graph 0 input from stream 0:0 @ 0x3643980] Setting 'sample_rate' to value '48000'
[graph 0 input from stream 0:0 @ 0x3643980] Setting 'sample_fmt' to value 's32'
[graph 0 input from stream 0:0 @ 0x3643980] Setting 'channel_layout' to value '0x4'
[graph 0 input from stream 0:0 @ 0x3643980] tb:1/48000 samplefmt:s32 samplerate:48000 chlayout:0x4
[audio format for output stream 0:0 @ 0x3644560] Setting 'sample_fmts' to value 's16'
[audio format for output stream 0:0 @ 0x3644560] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:0'
[AVFilterGraph @ 0x3631b80] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed
[auto-inserted resampler 0 @ 0x3645d40] [SWR @ 0x3646120] Using fltp internally between filters
[auto-inserted resampler 0 @ 0x3645d40] ch:1 chl:mono fmt:s32 r:48000Hz -> ch:1 chl:mono fmt:s16 r:48000Hz
[wav @ 0x362fa00] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Output #0, wav, to 'out.wav':
  Metadata:
    uid             : 27023931-e9a3-4549-946d-a5aea01cec3e
    generation_uid  : bd18e86b-ee7a-4f8f-8ceb-7ab5ac3f175f
    company_name    : Matrox Electronic
    product_name    : DSX
    product_version : 4.0
    product_uid     : 060e2b34-0401-0109-0e0e-010101000001
    modification_date: 2016-05-31 17:30:17
    material_package_umid: 0x060A2B340101010501010D20130000004F5296D2A16741ED9D11A972EA7C9C30
    material_package_name: 0004PE
    ISMP            : 11:22:33;00
    ISFT            : Lavf57.40.101
    Stream #0:0, 0, 1/48000: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, mono, s16 (24 bit), 768 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D20130000000B45AF7186674D708C09A0FCF3D5B364
      encoder         : Lavc57.48.101 pcm_s16le
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s24le (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[mxf @ 0x362a380] IndexSID 1 segment at 0 missing EditUnitByteCount and IndexEntryArray
TVOKids_6.mxf: Invalid data found when processing input
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 1 times
[output stream 0:0 @ 0x36444c0] EOF on sink link output stream 0:0:default.
No more output streams to write to, finishing.
size=       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
Input file #0 (TVOKids_6.mxf):
  Input stream #0:0 (audio): 0 packets read (0 bytes); 0 frames decoded (0 samples); 
  Total: 0 packets (0 bytes) demuxed
Output file #0 (out.wav):
  Output stream #0:0 (audio): 0 frames encoded (0 samples); 0 packets muxed (0 bytes); 
  Total: 0 packets (0 bytes) muxed
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
0 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x3631640] Statistics: 4 seeks, 3 writeouts
[AVIOContext @ 0x3633020] Statistics: 66172 bytes read, 5 seeks

#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.


#5771 avi with defect header won't work avformat defect Aug 10, 2016

Summary of the bug: I can't ffmpeg get to cooperate with any videos created with the catcam http://www.mr-lee-catcam.de/ Videos work in vlc, windows media player, mplayer and mencoder can convert them. But ffmpeg won't do anything.

How to reproduce:

$ ffmpeg -c:v avrn -loglevel trace -an -r:v 30 -i PICT0001.AVI -vf scale=640:480 -an katze.mpg ffmpeg version 3.1.1 Copyright (c) 2000-2016 the FFmpeg developers

built with gcc 6.1.1 (GCC) 20160707 configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-netcdf --enable-shared --enable-version3 --enable-x11grab 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

Splitting the commandline. Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'avrn'. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'trace'. Reading option '-an' ... matched as option 'an' (disable audio) with argument '1'. Reading option '-r:v' ... matched as option 'r' (set frame rate (Hz value, fraction or abbreviation)) with argument '30'. Reading option '-i' ... matched as input file with argument 'PICT0001.AVI'. Reading option '-vf' ... matched as option 'vf' (set video filters) with argument 'scale=640:480'. Reading option '-an' ... matched as option 'an' (disable audio) with argument '1'. Reading option 'katze.mpg' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option loglevel (set logging level) with argument trace. Successfully parsed a group of options. Parsing a group of options: input file PICT0001.AVI. Applying option c:v (codec name) with argument avrn. Applying option an (disable audio) with argument 1. Applying option r:v (set frame rate (Hz value, fraction or abbreviation)) with argument 30. Successfully parsed a group of options. Opening an input file: PICT0001.AVI. [file @ 0x55e8ab72c060] Setting default whitelist 'file,crypto' Probing avi score:100 size:2048 [avi @ 0x55e8ab72b820] Format avi probed with size=2048 and score=100 [avi @ 0x55e8ab72bf80] use odml:1 pos:14 tag: tag=LIST size=0x154 pos:18 list: tag=hdrl size=0x0 pos:20 tag: tag=avih size=0x38 pos:60 tag: tag=LIST size=0xa4 pos:64 list: tag=strl size=0x0 pos:6C tag: tag=strh size=0x38 pos:74 strh: tag=vids size=0xffffffff [avi @ 0x55e8ab72b820] 1000000 33333 0 pos:AC tag: tag=strf size=0x28 pos:D4 video: tag=MJPG size=0x0 pos:DC tag: tag=strd size=0x28 pos:10C tag: tag=LIST size=0x5c pos:110 list: tag=strl size=0x0 pos:118 tag: tag=strh size=0x38 pos:120 strh: tag=auds size=0xffffffff [avi @ 0x55e8ab72b820] scale/rate is 1/0 which is invalid. (This file has been generated by broken software.) [avi @ 0x55e8ab72b820] 1000000 33333 1 pos:158 tag: tag=strf size=0x10 [avi @ 0x55e8ab72b820] Invalid sample rate: 0 [AVIOContext @ 0x55e8ab7343a0] Statistics: 32768 bytes read, 0 seeks PICT0001.AVI: Invalid data found when processing input


#5860 "PES packet size mismatch", "Could not find codec parameters for stream 0" for TS stream that mplayer can play avformat defect Sep 23, 2016

I am trying to convert a ts stream produced by my TV tuner into an MP4 file:

ffmpeg -i sample-video.ts sample-video.mp4

It is reporting "PES packet size mismatch" and "Could not find codec parameters for stream 0 (Unknown: none): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options".

The video plays fine with mplayer and encodes fine with mencoder.

Other videos recorded from the tuner do not have this problem.

This discussion -- http://ffmpeg.gusari.org/viewtopic.php?f=11&t=853 -- suggests that it is appropriate for me to report this problem to you because you may be able to debug it and improve ffmpeg to make it go away in the future.


#5869 ffserver crash when GET sdp file ffserver defect Sep 28, 2016

Summary of the bug:

when starting the following ffserver instance, running curl "http://localhost:9203/live.sdp"

seg faults the server.

here is the BT of the crash: http://pastebin.com/Bav5ZpnP

HTTPPort 9203
HTTPBindAddress 0.0.0.0
RTSPPort 9204
RTSPBindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 1000
CustomLog -

<Feed feed1.ffm>
  File feed1.ffm
  FileMaxSize 5M
  ACL allow 127.0.0.1
</Feed>

<Stream live.mp3>
  Format rtp
  Feed feed1.ffm
  AudioCodec libmp3lame
  AudioBitRate 128
  AudioChannels 2
  AudioSampleRate 44100
  NoVideo
</Stream>

<Stream stat.html>
	Format status
	# ACL allow localhost
</Stream>

built on Ubuntu / OS X with version: 8b21b44e7e312589a6c4dbad1b4214f2a03fb54a


#5911 Error reading MOV file avformat defect Oct 26, 2016

I have a mov file recorded on an AJA KiPro?. I've never had a problem with the files from this device until now.

The contents should contain "Apple ProRes? 422(LT)" for the video stream, and "pcm_s24le" for the audio streams, plus a "tmcd" timecode.

This particular file will open and play with quicktime without audio, so something in one or both of the audio tracks is messed up. Oddly enough VLC for MacOS manages to open and play with audio.

With ffmpeg I get the following:

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f426c0093e0] Invalid sample_count=-1744855732 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f426c0093e0] error reading header

This is using ffmpeg-3.1.5. I can build and test with current head if that would seem to make any difference.

The file is rather large (368G) so let me know how I can submit a chunk that is just large enough to provide enough info to work with


#5914 FFmpeg not able to read a specific HLS stream avformat defect Oct 27, 2016

Summary of the bug: Even I've succesfully played the stream in VLC, ffmpeg is not able to read it How to reproduce:

% ffmpeg -i http://sonlife-i.akamaihd.net/hls/live/250092/internationalvtt/internationalvtt1/internationalvtt1.m3u8
ffmpeg version N-82143-gbf14393 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-17)
  configuration: --prefix=/ffmpeg --enable-static --disable-shared --enable-gpl --enable-libx264
  libavutil      55. 35.100 / 55. 35.100
  libavcodec     57. 65.100 / 57. 65.100
  libavformat    57. 57.100 / 57. 57.100
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 66.100 /  6. 66.100
  libswscale      4.  3.100 /  4.  3.100
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
[hls,applehttp @ 0x3d3f240] No longer receiving playlist 0
http://sonlife-i.akamaihd.net/hls/live/250092/internationalvtt/internationalvtt1/internationalvtt1.m3u8: could not find codec parameters

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


#5921 Can not read mjpeg from IP camera avformat defect Oct 31, 2016

Summary of the bug: I downloaded a FFmpeg demo from the internet. Tried to change the video source to IP camera, but it shows bugs as follows. BTW I use OC in Xcode How to reproduce:

self.video =[[XYQMovieObject alloc] initWithVideo:@"http://192.168.10.123:7060"];

The bug shows that

Input #0, mpjpeg, from 'http://192.168.10.123:7060':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown), 640x480, 25 tbr, 25 tbn, 25 tbc
[mpjpeg @ 0x7feadc818000] Expected boundary '--' not found, instead found a line of 8 bytes
[mpjpeg @ 0x7feadc818000] Expected boundary '--' not found, instead found a line of 2 bytes

I don't know what to do to fix it. It works when I use other internet source of video like

self.video = [[XYQMovieObject alloc] initWithVideo:@"http://live.hkstv.hk.lxdns.com/live/hks/playlist.m3u8"]; 

Can any one tell me what to do to debug that? I would really appreciate that. Thanks guys.


#6001 ffprobe: incorrect determination of the number of reference frames undetermined defect Dec 7, 2016

Hi!

ffprobe incorrect determinates of the number of reference frames. ffprobe for all video returns refs=1, which does not coincide with the values returned by MediaInfo?. The attached txt file contains information returned by ffprobe and MediaInfo?.


#6007 mov read failure for http chunked byte range request avformat defect Dec 9, 2016

Summary of the bug: A quicktime file is being served using chunked transfer and byte range requests enabled. FFmpeg opens the file in libavformat, mov.c mov_read_default and it fails to complete because the (seekable) file returns an error (ENOSYS) for avio_size. avio_size is returning an error because the code in libavformat/http.c is ignoring the resource length provided by the Content-Range response header. I have a suggested fix which I'll post to the devel list.

How to reproduce: Compile the attached simple web server (mongoose) that allows the issue to be reproduced. The server will serve files from the current directory; the 'test.mp4' file will be served using chunked transfer and byte range requests. The Transfer-Encoding header is placed after Content-Range to ensure libavformat/http.c, http_read_header doesn't set filesize. This header ordering was used by a proxy which exposed the issue in the real system.

Create the test file as follows: ffmpeg -f lavfi -i testsrc -t 5 -pix_fmt yuv420p test.mp4

Run the web server and then run the ffmpeg command below. It should show a 416 error code and after ctrl-c you get the rest of the console output shown below.

ffmpeg -v 9 -loglevel 99 -i http://localhost:8000/test.mp4
ffmpeg version N-82785-g6b95da9 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
  configuration: --enable-gpl --enable-shared --disable-ffserver --disable-doc --enable-libx264 --enable-nonfree --enable-avresample
  libavutil      55. 41.101 / 55. 41.101
  libavcodec     57. 66.109 / 57. 66.109
  libavformat    57. 58.101 / 57. 58.101
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 68.100 /  6. 68.100
  libavresample   3.  2.  0 /  3.  2.  0
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.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 url with argument 'http://localhost:8000/test.mp4'.
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 url http://localhost:8000/test.mp4.
Successfully parsed a group of options.
Opening an input file: http://localhost:8000/test.mp4.
[http @ 0x1789a60] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
[tcp @ 0x178b720] Connection to tcp://localhost:8000 failed (Connection refused), trying next address
[http @ 0x1789a60] request: GET /test.mp4 HTTP/1.1
User-Agent: Lavf/57.58.101
Accept: */*
Range: bytes=0-
Connection: close
Host: localhost:8000
Icy-MetaData: 1


[http @ 0x1789a60] header='HTTP/1.1 200 OK'
[http @ 0x1789a60] http_code=200
[http @ 0x1789a60] header='Content-Type: video/mp4'
[http @ 0x1789a60] header='Accept-Ranges: bytes'
[http @ 0x1789a60] header='Content-Range: bytes 0-26328/26329'
[http @ 0x1789a60] header='Transfer-Encoding: chunked'
[http @ 0x1789a60] header=''
[http @ 0x1789a60] Chunked encoding data size: 1000'
    Last message repeated 2 times
Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:2048
Probing mp3 score:1 size:2048
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 70797466 'ftyp' parent:'root' sz: 32 8 9223372036854775807
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 65657266 'free' parent:'root' sz: 8 40 9223372036854775807
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 7461646d 'mdat' parent:'root' sz: 24058 48 9223372036854775807
[tcp @ 0x178c2e0] Connection to tcp://localhost:8000 failed (Connection refused), trying next address
[http @ 0x1789a60] request: GET /test.mp4 HTTP/1.1
User-Agent: Lavf/57.58.101
Accept: */*
Range: bytes=24098-
Connection: close
Host: localhost:8000
Icy-MetaData: 1


[http @ 0x1789a60] header='HTTP/1.1 200 OK'
[http @ 0x1789a60] http_code=200
[http @ 0x1789a60] header='Content-Type: video/mp4'
[http @ 0x1789a60] header='Accept-Ranges: bytes'
[http @ 0x1789a60] header='Content-Range: bytes 24098-26328/26329'
[http @ 0x1789a60] header='Transfer-Encoding: chunked'
[http @ 0x1789a60] header=''
[http @ 0x1789a60] Chunked encoding data size: 1000'
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 766f6f6d 'moov' parent:'root' sz: 2231 24106 9223372036854775807
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 6468766d 'mvhd' parent:'moov' sz: 108 8 2223
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] time scale = 1000
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 6b617274 'trak' parent:'moov' sz: 2017 116 2223
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 64686b74 'tkhd' parent:'trak' sz: 92 8 2009
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 73746465 'edts' parent:'trak' sz: 36 100 2009
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 74736c65 'elst' parent:'edts' sz: 28 8 28
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] track[0].edit_count = 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] duration=5000 time=1024 rate=1.000000
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 6169646d 'mdia' parent:'trak' sz: 1881 136 2009
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 6468646d 'mdhd' parent:'mdia' sz: 32 8 1873
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 726c6468 'hdlr' parent:'mdia' sz: 45 40 1873
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] ctype=  (0x00000000)
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] stype= vide
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 666e696d 'minf' parent:'mdia' sz: 1796 85 1873
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 64686d76 'vmhd' parent:'minf' sz: 20 8 1788
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 666e6964 'dinf' parent:'minf' sz: 36 28 1788
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 66657264 'dref' parent:'dinf' sz: 28 8 28
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type url  size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] Unknown dref type 0x08206c7275 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 6c627473 'stbl' parent:'minf' sz: 1732 64 1788
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 64737473 'stsd' parent:'stbl' sz: 168 8 1724
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] size=152 4CC= avc1/0x31637661 codec_type=0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 43637661 'avcC' parent:'stsd' sz: 50 8 66
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 70736170 'pasp' parent:'stsd' sz: 16 58 66
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 73747473 'stts' parent:'stbl' sz: 24 176 1724
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] track[0].stts.entries = 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] sample_count=125, sample_duration=512
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 73737473 'stss' parent:'stbl' sz: 20 200 1724
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] keyframe_count = 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 73747463 'ctts' parent:'stbl' sz: 944 220 1724
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] track[0].ctts.entries = 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=2560
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=512
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=2560
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=512
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=2560
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=512
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=2560
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=512
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=2560
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=512
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=5, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=2560
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=512
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=2560
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=512
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=2560
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=512
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=2560
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=512
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=2560
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=512
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=2560
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=0
[http @ 0x1789a60] Chunked encoding data size: 1000'
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=512
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1536
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=512
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=2560
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=512
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=2560
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=512
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=2560
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=512
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=2560
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=512
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=2560
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=512
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=2560
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=512
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=2560
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=512
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=2560
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=512
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=2560
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=512
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=2560
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=512
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=2560
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=512
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=6, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=2560
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=512
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=2560
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=512
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=2560
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=512
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=2560
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=512
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=2560
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=512
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=2048
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] count=1, duration=0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] dts shift 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 63737473 'stsc' parent:'stbl' sz: 28 1164 1724
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] track[0].stsc.entries = 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 7a737473 'stsz' parent:'stbl' sz: 520 1192 1724
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] sample_size = 0 sample_count = 125
[http @ 0x1789a60] Chunked encoding data size: 231'
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 6f637473 'stco' parent:'stbl' sz: 20 1712 1724
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 0, offset 30, dts 0, size 3956, distance 0, keyframe 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 1, offset fa4, dts 512, size 519, distance 1, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 2, offset 11ab, dts 1024, size 75, distance 2, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 3, offset 11f6, dts 1536, size 32, distance 3, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 4, offset 1216, dts 2048, size 32, distance 4, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 5, offset 1236, dts 2560, size 434, distance 5, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 6, offset 13e8, dts 3072, size 70, distance 6, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 7, offset 142e, dts 3584, size 39, distance 7, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 8, offset 1455, dts 4096, size 39, distance 8, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 9, offset 147c, dts 4608, size 494, distance 9, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 10, offset 166a, dts 5120, size 56, distance 10, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 11, offset 16a2, dts 5632, size 30, distance 11, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 12, offset 16c0, dts 6144, size 42, distance 12, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 13, offset 16ea, dts 6656, size 449, distance 13, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 14, offset 18ab, dts 7168, size 67, distance 14, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 15, offset 18ee, dts 7680, size 39, distance 15, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 16, offset 1915, dts 8192, size 30, distance 16, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 17, offset 1933, dts 8704, size 413, distance 17, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 18, offset 1ad0, dts 9216, size 70, distance 18, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 19, offset 1b16, dts 9728, size 38, distance 19, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 20, offset 1b3c, dts 10240, size 35, distance 20, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 21, offset 1b5f, dts 10752, size 218, distance 21, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 22, offset 1c39, dts 11264, size 212, distance 22, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 23, offset 1d0d, dts 11776, size 264, distance 23, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 24, offset 1e15, dts 12288, size 254, distance 24, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 25, offset 1f13, dts 12800, size 381, distance 25, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 26, offset 2090, dts 13312, size 464, distance 26, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 27, offset 2260, dts 13824, size 55, distance 27, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 28, offset 2297, dts 14336, size 41, distance 28, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 29, offset 22c0, dts 14848, size 50, distance 29, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 30, offset 22f2, dts 15360, size 445, distance 30, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 31, offset 24af, dts 15872, size 63, distance 31, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 32, offset 24ee, dts 16384, size 41, distance 32, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 33, offset 2517, dts 16896, size 36, distance 33, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 34, offset 253b, dts 17408, size 465, distance 34, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 35, offset 270c, dts 17920, size 60, distance 35, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 36, offset 2748, dts 18432, size 41, distance 36, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 37, offset 2771, dts 18944, size 41, distance 37, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 38, offset 279a, dts 19456, size 486, distance 38, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 39, offset 2980, dts 19968, size 61, distance 39, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 40, offset 29bd, dts 20480, size 27, distance 40, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 41, offset 29d8, dts 20992, size 39, distance 41, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 42, offset 29ff, dts 21504, size 522, distance 42, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 43, offset 2c09, dts 22016, size 61, distance 43, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 44, offset 2c46, dts 22528, size 34, distance 44, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 45, offset 2c68, dts 23040, size 34, distance 45, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 46, offset 2c8a, dts 23552, size 450, distance 46, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 47, offset 2e4c, dts 24064, size 60, distance 47, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 48, offset 2e88, dts 24576, size 28, distance 48, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 49, offset 2ea4, dts 25088, size 30, distance 49, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 50, offset 2ec2, dts 25600, size 525, distance 50, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 51, offset 30cf, dts 26112, size 38, distance 51, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 52, offset 30f5, dts 26624, size 470, distance 52, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 53, offset 32cb, dts 27136, size 53, distance 53, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 54, offset 3300, dts 27648, size 39, distance 54, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 55, offset 3327, dts 28160, size 33, distance 55, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 56, offset 3348, dts 28672, size 479, distance 56, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 57, offset 3527, dts 29184, size 68, distance 57, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 58, offset 356b, dts 29696, size 36, distance 58, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 59, offset 358f, dts 30208, size 34, distance 59, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 60, offset 35b1, dts 30720, size 495, distance 60, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 61, offset 37a0, dts 31232, size 65, distance 61, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 62, offset 37e1, dts 31744, size 35, distance 62, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 63, offset 3804, dts 32256, size 31, distance 63, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 64, offset 3823, dts 32768, size 513, distance 64, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 65, offset 3a24, dts 33280, size 79, distance 65, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 66, offset 3a73, dts 33792, size 43, distance 66, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 67, offset 3a9e, dts 34304, size 39, distance 67, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 68, offset 3ac5, dts 34816, size 488, distance 68, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 69, offset 3cad, dts 35328, size 73, distance 69, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 70, offset 3cf6, dts 35840, size 36, distance 70, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 71, offset 3d1a, dts 36352, size 39, distance 71, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 72, offset 3d41, dts 36864, size 537, distance 72, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 73, offset 3f5a, dts 37376, size 75, distance 73, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 74, offset 3fa5, dts 37888, size 42, distance 74, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 75, offset 3fcf, dts 38400, size 47, distance 75, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 76, offset 3ffe, dts 38912, size 432, distance 76, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 77, offset 41ae, dts 39424, size 60, distance 77, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 78, offset 41ea, dts 39936, size 42, distance 78, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 79, offset 4214, dts 40448, size 34, distance 79, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 80, offset 4236, dts 40960, size 488, distance 80, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 81, offset 441e, dts 41472, size 70, distance 81, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 82, offset 4464, dts 41984, size 38, distance 82, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 83, offset 448a, dts 42496, size 35, distance 83, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 84, offset 44ad, dts 43008, size 467, distance 84, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 85, offset 4680, dts 43520, size 89, distance 85, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 86, offset 46d9, dts 44032, size 42, distance 86, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 87, offset 4703, dts 44544, size 38, distance 87, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 88, offset 4729, dts 45056, size 468, distance 88, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 89, offset 48fd, dts 45568, size 67, distance 89, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 90, offset 4940, dts 46080, size 48, distance 90, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 91, offset 4970, dts 46592, size 37, distance 91, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 92, offset 4995, dts 47104, size 418, distance 92, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 93, offset 4b37, dts 47616, size 54, distance 93, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 94, offset 4b6d, dts 48128, size 44, distance 94, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 95, offset 4b99, dts 48640, size 36, distance 95, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 96, offset 4bbd, dts 49152, size 209, distance 96, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 97, offset 4c8e, dts 49664, size 257, distance 97, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 98, offset 4d8f, dts 50176, size 272, distance 98, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 99, offset 4e9f, dts 50688, size 244, distance 99, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 100, offset 4f93, dts 51200, size 411, distance 100, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 101, offset 512e, dts 51712, size 242, distance 101, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 102, offset 5220, dts 52224, size 461, distance 102, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 103, offset 53ed, dts 52736, size 66, distance 103, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 104, offset 542f, dts 53248, size 32, distance 104, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 105, offset 544f, dts 53760, size 23, distance 105, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 106, offset 5466, dts 54272, size 411, distance 106, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 107, offset 5601, dts 54784, size 66, distance 107, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 108, offset 5643, dts 55296, size 27, distance 108, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 109, offset 565e, dts 55808, size 35, distance 109, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 110, offset 5681, dts 56320, size 397, distance 110, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 111, offset 580e, dts 56832, size 79, distance 111, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 112, offset 585d, dts 57344, size 30, distance 112, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 113, offset 587b, dts 57856, size 33, distance 113, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 114, offset 589c, dts 58368, size 399, distance 114, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 115, offset 5a2b, dts 58880, size 88, distance 115, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 116, offset 5a83, dts 59392, size 40, distance 116, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 117, offset 5aab, dts 59904, size 47, distance 117, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 118, offset 5ada, dts 60416, size 357, distance 118, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 119, offset 5c3f, dts 60928, size 74, distance 119, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 120, offset 5c89, dts 61440, size 38, distance 120, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 121, offset 5caf, dts 61952, size 44, distance 121, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 122, offset 5cdb, dts 62464, size 243, distance 122, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 123, offset 5dce, dts 62976, size 48, distance 123, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] AVIndex stream 0, sample 124, offset 5dfe, dts 63488, size 36, distance 124, keyframe 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] Offset DTS by ctts[0].duration: 1024
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] Processing st: 0, edit list 0 - media time: 1024, duration: 64000
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 0 @ 0, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 512 @ 1, ctts: 2560, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 1024 @ 2, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 1536 @ 3, ctts: 0, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 2048 @ 4, ctts: 512, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 2560 @ 5, ctts: 2560, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 3072 @ 6, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 3584 @ 7, ctts: 0, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 4096 @ 8, ctts: 512, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 4608 @ 9, ctts: 2560, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 5120 @ 10, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 5632 @ 11, ctts: 0, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 6144 @ 12, ctts: 512, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 6656 @ 13, ctts: 2560, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 7168 @ 14, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 7680 @ 15, ctts: 0, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 8192 @ 16, ctts: 512, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 8704 @ 17, ctts: 2560, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 9216 @ 18, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 9728 @ 19, ctts: 0, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 10240 @ 20, ctts: 512, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 10752 @ 21, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 11264 @ 21, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 11776 @ 21, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 12288 @ 21, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 12800 @ 21, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 13312 @ 22, ctts: 2560, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 13824 @ 23, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 14336 @ 24, ctts: 0, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 14848 @ 25, ctts: 512, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 15360 @ 26, ctts: 2560, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 15872 @ 27, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 16384 @ 28, ctts: 0, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 16896 @ 29, ctts: 512, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 17408 @ 30, ctts: 2560, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 17920 @ 31, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 18432 @ 32, ctts: 0, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 18944 @ 33, ctts: 512, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 19456 @ 34, ctts: 2560, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 19968 @ 35, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 20480 @ 36, ctts: 0, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 20992 @ 37, ctts: 512, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 21504 @ 38, ctts: 2560, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 22016 @ 39, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 22528 @ 40, ctts: 0, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 23040 @ 41, ctts: 512, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 23552 @ 42, ctts: 2560, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 24064 @ 43, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 24576 @ 44, ctts: 0, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 25088 @ 45, ctts: 512, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 25600 @ 46, ctts: 1536, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 26112 @ 47, ctts: 512, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 26624 @ 48, ctts: 2560, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 27136 @ 49, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 27648 @ 50, ctts: 0, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 28160 @ 51, ctts: 512, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 28672 @ 52, ctts: 2560, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 29184 @ 53, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 29696 @ 54, ctts: 0, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 30208 @ 55, ctts: 512, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 30720 @ 56, ctts: 2560, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 31232 @ 57, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 31744 @ 58, ctts: 0, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 32256 @ 59, ctts: 512, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 32768 @ 60, ctts: 2560, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 33280 @ 61, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 33792 @ 62, ctts: 0, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 34304 @ 63, ctts: 512, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 34816 @ 64, ctts: 2560, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 35328 @ 65, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 35840 @ 66, ctts: 0, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 36352 @ 67, ctts: 512, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 36864 @ 68, ctts: 2560, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 37376 @ 69, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 37888 @ 70, ctts: 0, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 38400 @ 71, ctts: 512, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 38912 @ 72, ctts: 2560, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 39424 @ 73, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 39936 @ 74, ctts: 0, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 40448 @ 75, ctts: 512, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 40960 @ 76, ctts: 2560, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 41472 @ 77, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 41984 @ 78, ctts: 0, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 42496 @ 79, ctts: 512, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 43008 @ 80, ctts: 2560, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 43520 @ 81, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 44032 @ 82, ctts: 0, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 44544 @ 83, ctts: 512, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 45056 @ 84, ctts: 2560, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 45568 @ 85, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 46080 @ 86, ctts: 0, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 46592 @ 87, ctts: 512, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 47104 @ 88, ctts: 2560, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 47616 @ 89, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 48128 @ 90, ctts: 0, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 48640 @ 91, ctts: 512, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 49152 @ 92, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 49664 @ 92, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 50176 @ 92, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 50688 @ 92, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 51200 @ 92, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 51712 @ 92, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 52224 @ 93, ctts: 2560, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 52736 @ 94, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 53248 @ 95, ctts: 0, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 53760 @ 96, ctts: 512, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 54272 @ 97, ctts: 2560, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 54784 @ 98, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 55296 @ 99, ctts: 0, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 55808 @ 100, ctts: 512, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 56320 @ 101, ctts: 2560, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 56832 @ 102, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 57344 @ 103, ctts: 0, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 57856 @ 104, ctts: 512, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 58368 @ 105, ctts: 2560, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 58880 @ 106, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 59392 @ 107, ctts: 0, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 59904 @ 108, ctts: 512, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 60416 @ 109, ctts: 2560, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 60928 @ 110, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 61440 @ 111, ctts: 0, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 61952 @ 112, ctts: 512, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 62464 @ 113, ctts: 2048, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 62976 @ 114, ctts: 1024, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] shifted frame pts, curr_cts: 63488 @ 115, ctts: 0, ctts_count: 116
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 61746475 'udta' parent:'moov' sz: 98 2133 2223
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 6174656d 'meta' parent:'udta' sz: 90 8 90
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 726c6468 'hdlr' parent:'meta' sz: 33 8 78
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] ctype=  (0x00000000)
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] stype= mdir
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 74736c69 'ilst' parent:'meta' sz: 45 41 78
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 6f6f74a9 '�too' parent:'ilst' sz: 37 8 37
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] lang "   " tag "encoder" value "Lavf57.56.100" atom "�too" 27 13
[http @ 0x1789a60] Chunked encoding data size: 0'
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 00000000 '' parent:'root' sz: 0 26337 9223372036854775807
[tcp @ 0x178dd60] Connection to tcp://localhost:8000 failed (Connection refused), trying next address
[http @ 0x1789a60] request: GET /test.mp4 HTTP/1.1
User-Agent: Lavf/57.58.101
Accept: */*
Range: bytes=9223372036854775799-
Connection: close
Host: localhost:8000
Icy-MetaData: 1


[http @ 0x1789a60] header='HTTP/1.1 416 Requested Range Not Satisfiable'
[http @ 0x1789a60] http_code=416
[http @ 0x1789a60] HTTP error 416 Requested Range Not Satisfiable
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] type: 00000000 '' parent:'root' sz: 218759168 -9223372036854775801 9223372036854775807
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] on_parse_exit_offset=26331
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] Before avformat_find_stream_info() pos: 26331 bytes read:5233 seeks:1 nb_streams:1
[h264 @ 0x178ce40] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x178ce40] nal_unit_type: 8, nal_ref_idc: 3
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] interrupted
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] stream 0: start_time: -720575940379279.375 duration: 5.000
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] format: start_time: -9223372036854.775 duration: 5.000 bitrate=0 kb/s
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] Could not find codec parameters for stream 0 (Video: h264, 1 reference frame (avc1 / 0x31637661), none(left), 320x240, 1/25600, 38 kb/s): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1789280] After avformat_find_stream_info() pos: 26331 bytes read:5233 seeks:1 frames:0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'http://localhost:8000/test.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.56.100
  Duration: 00:00:05.00, bitrate: N/A
    Stream #0:0(und), 0, 1/12800: Video: h264, 1 reference frame (avc1 / 0x31637661), none(left), 320x240, 0/1, 38 kb/s, SAR 1:1 DAR 4:3, 25 fps, 25 tbr, 12800 tbn, 25600 tbc (default)
    Metadata:
      handler_name    : VideoHandler
Successfully opened the file.
At least one output file must be specified
[AVIOContext @ 0x178bb40] Statistics: 5233 bytes read, 1 seeks
Exiting normally, received signal 2.

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


#6037 mkv muxing broken avformat defect Dec 22, 2016

Summary of the bug: Muxing two working files (AC3 stream + DVD sub stream and a freshly encoded ffv1 stream) into a mkv produces a broken file: seeking around can break (mute) audio. Reproducible with both mpv and ffplay (example: seek to around 5.5s).

It seem like http://ffmpeg.gusari.org/viewtopic.php?f=11&t=2713 is related.

On the longer sample, I also get: -Audio being muted without having to seek -"Starting new cluster due to timestamp" matroska warnings during mux -"[mkv] Too many packets in the demuxer packet queues" errors in mpv

How to reproduce:

ffmpeg -y -i 20s.mkv -i ffv1.mkv -map 0:a:1 -map 0:s -map 1:v -c copy out.mkv >ffmpeg.log 2>&1
ffmpeg version 3.2.2 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-3.2.2/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 -march=native -mprefer-avx128 -mvzeroupper -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-nonfree --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --disable-gnutls --disable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --disable-lzma --enable-network --enable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --disable-libxcb --disable-libxcb-shm --disable-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 --enable-libbluray --disable-libcelt --disable-libgme --disable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --disable-libilbc --disable-librtmp --disable-libssh --disable-libschroedinger --disable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --disable-libbs2b --disable-chromaprint --disable-libebur128 --disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig --disable-ladspa --enable-libass --disable-libfreetype --disable-librubberband --enable-libzimg --disable-libsoxr --enable-pthreads --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar --disable-nvenc --disable-libopenh264 --disable-libsnappy --disable-libtheora --disable-libtwolame --disable-libwavpack --disable-libwebp --enable-libx264 --enable-libx265 --disable-libxvid --enable-x11grab --disable-amd3dnow --disable-amd3dnowext --disable-avx2 --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  libavutil      55. 34.100 / 55. 34.100
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.100 / 57. 56.100
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libavresample   3.  1.  0 /  3.  1.  0
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
Input #0, matroska,webm, from '20s.mkv':
  Metadata:
    title           : Gunsmith Cats
    ENCODER         : Lavf57.56.100
  Duration: 00:00:20.16, start: 0.016000, bitrate: 7009 kb/s
    Chapter #0:0: start 0.064000, end 20.000000
    Metadata:
      title           : 0 1
    Stream #0:0(eng): Audio: ac3, 48000 Hz, stereo, fltp, 224 kb/s (default)
    Metadata:
      title           : Stereo
      BPS-eng         : 224000
      DURATION-eng    : 00:29:17.152000000
      NUMBER_OF_FRAMES-eng: 54911
      NUMBER_OF_BYTES-eng: 49200256
      SOURCE_ID-eng   : 0180BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.3 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2016-12-21 10:56:43
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
      DURATION        : 00:00:20.016000000
    Stream #0:1(jpn): Audio: ac3, 48000 Hz, stereo, fltp, 224 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 224000
      DURATION-eng    : 00:29:13.728000000
      NUMBER_OF_FRAMES-eng: 54804
      NUMBER_OF_BYTES-eng: 49104384
      SOURCE_ID-eng   : 0181BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.3 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2016-12-21 10:56:43
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
      DURATION        : 00:00:20.027000000
    Stream #0:2(eng): Video: mpeg2video (Main), yuv420p(tv, top first), 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 1k tbn, 50 tbc
    Metadata:
      BPS-eng         : 6522010
      DURATION-eng    : 00:29:17.200000000
      NUMBER_OF_FRAMES-eng: 43930
      NUMBER_OF_BYTES-eng: 1432559524
      SOURCE_ID-eng   : 0100E0
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.3 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2016-12-21 10:56:43
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
      DURATION        : 00:00:20.160000000
    Stream #0:3(eng): Subtitle: dvd_subtitle, 720x576 (default)
    Metadata:
      BPS-eng         : 5142
      DURATION-eng    : 00:28:42.315200000
      NUMBER_OF_FRAMES-eng: 371
      NUMBER_OF_BYTES-eng: 1107152
      SOURCE_ID-eng   : 0120BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.3 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2016-12-21 10:56:43
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
      DURATION        : 00:00:00.000000000
Input #1, matroska,webm, from 'ffv1.mkv':
  Metadata:
    ENCODER         : Lavf57.56.100
  Duration: 00:00:20.00, start: 0.000000, bitrate: 57823 kb/s
    Stream #1:0: Video: ffv1 (FFV1 / 0x31564646), yuv420p(progressive), 744x568, 50 fps, 50 tbr, 1k tbn, 1k tbc (default)
    Metadata:
      ENCODER         : Lavc57.64.101 ffv1
      DURATION        : 00:00:20.000000000
Output #0, matroska, to 'out.mkv':
  Metadata:
    title           : Gunsmith Cats
    encoder         : Lavf57.56.100
    Chapter #0:0: start 0.048000, end 19.984000
    Metadata:
      title           : 0 1
    Stream #0:0(jpn): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, 224 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 224000
      DURATION-eng    : 00:29:13.728000000
      NUMBER_OF_FRAMES-eng: 54804
      NUMBER_OF_BYTES-eng: 49104384
      SOURCE_ID-eng   : 0181BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.3 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2016-12-21 10:56:43
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
      DURATION        : 00:00:20.027000000
    Stream #0:1(eng): Subtitle: dvd_subtitle, 720x576 (default)
    Metadata:
      BPS-eng         : 5142
      DURATION-eng    : 00:28:42.315200000
      NUMBER_OF_FRAMES-eng: 371
      NUMBER_OF_BYTES-eng: 1107152
      SOURCE_ID-eng   : 0120BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.3 linux(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2016-12-21 10:56:43
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
      DURATION        : 00:00:00.000000000
    Stream #0:2: Video: ffv1 (FFV1 / 0x31564646), yuv420p(progressive), 744x568, q=2-31, 50 fps, 50 tbr, 1k tbn, 1k tbc (default)
    Metadata:
      ENCODER         : Lavc57.64.101 ffv1
      DURATION        : 00:00:20.000000000
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:3 -> #0:1 (copy)
  Stream #1:0 -> #0:2 (copy)
Press [q] to stop, [?] for help
frame= 1000 fps=0.0 q=-1.0 Lsize=  141718kB time=00:00:19.98 bitrate=58102.8kbits/s speed=37.7x    
video:141160kB audio:540kB subtitle:0kB other streams:0kB global headers:1kB muxing overhead: 0.012737%

Files 20s.mkv: https://files.catbox.moe/4bdv0o.mkv ffv1.mkv: https://files.catbox.moe/zp0brx.mkv (or you can convert 20s.mkv to ffv1.mkv) out.mkv: ask if you can't reproduce


#6112 ffmpeg not responding, stuck at converting flac to wav file avcodec defect Jan 31, 2017

I am trying to convert a flac to a wav file. Unfortunately the ffmpeg is getting stuck in the conversion process. I have tried with multiple ffmpeg versions (including the last one) and the same issue occurs.

I have attached the source flac file (AFN8429768236582_01_11_FLAC.flac)

How to reproduce:

% ffmpeg.exe -i AFN8429768236582_01_11_FLAC.flac -y -ar 44100 -ac 2 -sample_fmt s16 AFN8429768236582_01_11_wav.wav

ffmpeg version N-67063-g282c935 Copyright (c) 2000-2014 the FFmpeg developers
  built on Oct 20 2014 22:01:37 with gcc 4.9.1 (GCC)

Below if the output with the debug log level:

ffmpeg.exe -v 9 -loglevel 99 -i AFN8429768236582_01_11_FLAC.flac -y -ar 44100 -ac 2 -sample_fmt s16 AFN8429768236582_01_11_wav.wav

ffmpeg version N-67063-g282c935 Copyright (c) 2000-2014 the FFmpeg developers
  built on Oct 20 2014 22:01:37 with gcc 4.9.1 (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 --e
nable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libw
ebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      54. 10.100 / 54. 10.100
  libavcodec     56.  8.102 / 56.  8.102
  libavformat    56.  9.101 / 56.  9.101
  libavdevice    56.  1.100 / 56.  1.100
  libavfilter     5.  2.100 /  5.  2.100
  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 '-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 'AFN8429768236582_01_11_FLAC.flac'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option '-ar' ... matched as option 'ar' (set audio sampling rate (in Hz)) with argument '44100'.
Reading option '-ac' ... matched as option 'ac' (set number of audio channels) with argument '2'.
Reading option '-sample_fmt' ... matched as option 'sample_fmt' (set sample format) with argument 's16'.
Reading option 'AFN8429768236582_01_11_wav.wav' ... matched as output file.
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.
Successfully parsed a group of options.
Parsing a group of options: input file AFN8429768236582_01_11_FLAC.flac.
Successfully parsed a group of options.
Opening an input file: AFN8429768236582_01_11_FLAC.flac.
[flac @ 04485720] Format flac probed with size=2048 and score=50
[flac @ 04485720] Before avformat_find_stream_info() pos: 8288 bytes read:32768 seeks:0
[flac @ 0446fc60] sample/frame number mismatch in adjacent frames
    Last message repeated 14 times
[flac @ 04485720] All info found
[flac @ 04485720] After avformat_find_stream_info() pos: 73728 bytes read:98304 seeks:0 frames:1
Input #0, flac, from 'AFN8429768236582_01_11_FLAC.flac':
  Metadata:
    ENCODER         : Lavf55.12.100
  Duration: 00:01:54.81, start: 0.000000, bitrate: 830 kb/s
    Stream #0:0, 1, 1/44100: Audio: flac, 44100 Hz, stereo, s16
Successfully opened the file.
Parsing a group of options: output file AFN8429768236582_01_11_wav.wav.
Applying option ar (set audio sampling rate (in Hz)) with argument 44100.
Applying option ac (set number of audio channels) with argument 2.
Applying option sample_fmt (set sample format) with argument s16.
Successfully parsed a group of options.
Opening an output file: AFN8429768236582_01_11_wav.wav.
Successfully opened the file.
detected 8 logical cores
[graph 0 input from stream 0:0 @ 0446e820] Setting 'time_base' to value '1/44100'
[graph 0 input from stream 0:0 @ 0446e820] Setting 'sample_rate' to value '44100'
[graph 0 input from stream 0:0 @ 0446e820] Setting 'sample_fmt' to value 's16'
[graph 0 input from stream 0:0 @ 0446e820] Setting 'channel_layout' to value '0x3'
[graph 0 input from stream 0:0 @ 0446e820] tb:1/44100 samplefmt:s16 samplerate:44100 chlayout:0x3
[audio format for output stream 0:0 @ 0446ed80] Setting 'sample_fmts' to value 's16'
[audio format for output stream 0:0 @ 0446ed80] Setting 'sample_rates' to value '44100'
[audio format for output stream 0:0 @ 0446ed80] Setting 'channel_layouts' to value '0x3'
[AVFilterGraph @ 02b3fe80] query_formats: 4 queried, 9 merged, 0 already done, 0 delayed
Output #0, wav, to 'AFN8429768236582_01_11_wav.wav':
  Metadata:
    ISFT            : Lavf56.9.101
    Stream #0:0, 0, 1/44100: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s
    Metadata:
      encoder         : Lavc56.8.102 pcm_s16le
Stream mapping:
  Stream #0:0 -> #0:0 (flac (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
    Last message repeated 187 times
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
    Last message repeated 171 times
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
    Last message repeated 157 times
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
    Last message repeated 157 times
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
    Last message repeated 169 times
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
    Last message repeated 7 times
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
[NULL @ 0446fc60] crc check failed from offset 70650 (frame 436) to 74071 (frame 243)
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
[NULL @ 0446fc60] crc check failed from offset 61719 (frame 435) to 74071 (frame 243)
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
[NULL @ 0446fc60] crc check failed from offset 52626 (frame 434) to 74071 (frame 243)
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
[NULL @ 0446fc60] crc check failed from offset 62483 (frame 436) to 83256 (frame 244)
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
[NULL @ 0446fc60] crc check failed from offset 53552 (frame 435) to 83256 (frame 244)
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
[NULL @ 0446fc60] crc check failed from offset 53909 (frame 436) to 91005 (frame 245)
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
    Last message repeated 1 times
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
    Last message repeated 1 times
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
    Last message repeated 1 times
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
    Last message repeated 1 times
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
    Last message repeated 1 times
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample rate change detected in adjacent frames
[NULL @ 0446fc60] bits per sample change detected in adjacent frames
[NULL @ 0446fc60] sample/frame number mismatch in adjacent frames
    Last message repeated 1 times

Thanks! Ovidiu


#6113 Seek to 0 jpeg image input file image causes eof of the input stream avformat defect Jan 31, 2017

When input file is an jpeg image (any valid jpeg image) and I seek the file to 0 then the demuxer gives empty stream by immediately outputting eof. or I cannot rewind jpeg input stream to the beginning by seeking to 0 or any other value since the demuxer signals eof after any seek.

Does not happen for png image files. Does not happen with 20151020-git-e91cd8a, cannot determine when exactly it was introduced.

How to reproduce

ffmpeg -ss 0 -i input.jpg output.jpg

ffmpeg version 20170130-cba4f0e

Console output

ffmpeg -v 9 -loglevel 99 -ss -1 -i d:\1.jpg d:\file.jpg

ffmpeg version N-83280-gcba4f0e Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --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-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --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. 45.100 / 55. 45.100
  libavcodec     57. 75.100 / 57. 75.100
  libavformat    57. 65.100 / 57. 65.100
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 71.100 /  6. 71.100
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.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 '-ss' ... matched as option 'ss' (set the start time offset) with argument '0'.
Reading option '-i' ... matched as input url with argument 'd:\1.jpg'.
Reading option 'd:\file.jpg' ... matched as output url.
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 url d:\1.jpg.
Applying option ss (set the start time offset) with argument 0.
Successfully parsed a group of options.
Opening an input file: d:\1.jpg.
[file @ 00000000004fae00] Setting default whitelist 'file,crypto'
Probing image2 score:50 size:2048
Probing jpeg_pipe score:25 size:2048
[image2 @ 00000000004fa400] Format image2 probed with size=2048 and score=50
[image2 @ 00000000004fa400] Before avformat_find_stream_info() pos: 0 bytes read:32768 seeks:0 nb_streams:1
[mjpeg @ 000000000050c4c0] marker=d8 avail_size_in_buf=266292
[mjpeg @ 000000000050c4c0] marker parser used 0 bytes (0 bits)
[mjpeg @ 000000000050c4c0] marker=e0 avail_size_in_buf=266290
[mjpeg @ 000000000050c4c0] marker parser used 16 bytes (128 bits)
[mjpeg @ 000000000050c4c0] marker=e1 avail_size_in_buf=266272
[mjpeg @ 000000000050c4c0] marker parser used 77 bytes (616 bits)
[mjpeg @ 000000000050c4c0] marker=db avail_size_in_buf=266192
[mjpeg @ 000000000050c4c0] index=0
[mjpeg @ 000000000050c4c0] qscale[0]: 2
[mjpeg @ 000000000050c4c0] marker parser used 67 bytes (536 bits)
[mjpeg @ 000000000050c4c0] marker=db avail_size_in_buf=266123
[mjpeg @ 000000000050c4c0] index=1
[mjpeg @ 000000000050c4c0] qscale[1]: 5
[mjpeg @ 000000000050c4c0] marker parser used 67 bytes (536 bits)
[mjpeg @ 000000000050c4c0] marker=c0 avail_size_in_buf=266054
[mjpeg @ 000000000050c4c0] Changing bps from 0 to 8
[mjpeg @ 000000000050c4c0] sof0: picture: 1600x1200
[mjpeg @ 000000000050c4c0] component 0 2:2 id: 0 quant:0
[mjpeg @ 000000000050c4c0] component 1 1:1 id: 1 quant:1
[mjpeg @ 000000000050c4c0] component 2 1:1 id: 2 quant:1
[mjpeg @ 000000000050c4c0] pix fmt id 22111100
[mjpeg @ 000000000050c4c0] marker parser used 17 bytes (136 bits)
[mjpeg @ 000000000050c4c0] marker=c4 avail_size_in_buf=266035
[mjpeg @ 000000000050c4c0] marker parser used 0 bytes (0 bits)
[mjpeg @ 000000000050c4c0] marker=c4 avail_size_in_buf=266002
[mjpeg @ 000000000050c4c0] marker parser used 0 bytes (0 bits)
[mjpeg @ 000000000050c4c0] marker=c4 avail_size_in_buf=265819
[mjpeg @ 000000000050c4c0] marker parser used 0 bytes (0 bits)
[mjpeg @ 000000000050c4c0] marker=c4 avail_size_in_buf=265786
[mjpeg @ 000000000050c4c0] marker parser used 0 bytes (0 bits)
[mjpeg @ 000000000050c4c0] escaping removed 561 bytes
[mjpeg @ 000000000050c4c0] marker=da avail_size_in_buf=265603
[mjpeg @ 000000000050c4c0] marker parser used 265042 bytes (2120336 bits)
[mjpeg @ 000000000050c4c0] marker=d9 avail_size_in_buf=0
[mjpeg @ 000000000050c4c0] decode frame unused 0 bytes
[image2 @ 00000000004fa400] stream 0: start_time: 0.000 duration: 0.040
[image2 @ 00000000004fa400] format: start_time: 0.000 duration: 0.040 bitrate=53258 kb/s
[image2 @ 00000000004fa400] After avformat_find_stream_info() pos: 266294 bytes read:266294 seeks:0 frames:1
Input #0, image2, from 'd:\1.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: 53258 kb/s
    Stream #0:0, 1, 1/25: Video: mjpeg, 1 reference frame, yuvj420p(pc, bt470bg/unknown/unknown, center), 1600x1200 [SAR 1:1 DAR 4:3], 0/1, 25 tbr, 25 tbn, 25 tbc
Successfully opened the file.
Parsing a group of options: output url d:\file.jpg.
Successfully parsed a group of options.
Opening an output file: d:\file.jpg.
Successfully opened the file.
Initializing cuvid transcoding
detected 4 logical cores
[graph 0 input from stream 0:0 @ 000000000050b680] Setting 'video_size' to value '1600x1200'
[graph 0 input from stream 0:0 @ 000000000050b680] Setting 'pix_fmt' to value '12'
[graph 0 input from stream 0:0 @ 000000000050b680] Setting 'time_base' to value '1/25'
[graph 0 input from stream 0:0 @ 000000000050b680] Setting 'pixel_aspect' to value '1/1'
[graph 0 input from stream 0:0 @ 000000000050b680] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:0 @ 000000000050b680] Setting 'frame_rate' to value '25/1'
[graph 0 input from stream 0:0 @ 000000000050b680] w:1600 h:1200 pixfmt:yuvj420p tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2
[format @ 0000000000513ba0] compat: called with args=[yuvj420p|yuvj422p|yuvj444p]
[format @ 0000000000513ba0] Setting 'pix_fmts' to value 'yuvj420p|yuvj422p|yuvj444p'
[AVFilterGraph @ 00000000006675a0] query_formats: 5 queried, 4 merged, 0 already done, 0 delayed
[mjpeg @ 0000000000507a40] Forcing thread count to 1 for MJPEG encoding, use -thread_type slice or a constant quantizer if you want to use multiple cpu cores
[mjpeg @ 0000000000507a40] intra_quant_bias = 96 inter_quant_bias = 0
Output #0, image2, to 'd:\file.jpg':
  Metadata:
    encoder         : Lavf57.65.100
    Stream #0:0, 0, 1/25: Video: mjpeg, 1 reference frame, yuvj420p(pc, center), 1600x1200 [SAR 1:1 DAR 4:3], 0/1, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
      encoder         : Lavc57.75.100 mjpeg
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg (native) -> mjpeg (native))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 1 times
No more output streams to write to, finishing.
frame=    0 fps=0.0 q=0.0 Lsize=N/A 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
Input file #0 (d:\1.jpg):
  Input stream #0:0 (video): 0 packets read (0 bytes); 0 frames decoded; 
  Total: 0 packets (0 bytes) demuxed
Output file #0 (d:\file.jpg):
  Output stream #0:0 (video): 0 frames encoded; 0 packets muxed (0 bytes); 
  Total: 0 packets (0 bytes) muxed
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
0 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0000000000668d00] Statistics: 266294 bytes read, 0 seeks

#6138 MP4 video is not displayed avformat defect Feb 11, 2017

Video is detected correctly, but not displayed by FFplay.

Sample: https://www.datafilehost.com/d/6cc6bcac

Regression since: http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=ca6cae73db207f17a0d5507609de12842d8f0ca3


#6149 VP6 corruption avformat defect Feb 14, 2017

Sample: https://www.datafilehost.com/d/d5c82fbb

FFmpeg v2.8.6 works OK.

ffmpeg version N-83507-g8fa18e0 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --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-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --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-zlib
  libavutil      55. 47.100 / 55. 47.100
  libavcodec     57. 80.100 / 57. 80.100
  libavformat    57. 66.102 / 57. 66.102
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 73.100 /  6. 73.100
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
[flv @ 0000000000407320] audio stream discovered after head already parsed
[flv @ 0000000000407320] video stream discovered after head already parsed
[flv @ 0000000000407320] Packet mismatch -265762973 15027 152220
Input #0, flv, from 'vp6_error.flv':
  Metadata:
    audiodelay      : 0
    canSeekToEnd    : true
  Duration: 00:25:38.17, start: 0.000000, bitrate: 555 kb/s
    Stream #0:0: Audio: mp3, 22050 Hz, stereo, s16p, 49 kb/s
    Stream #0:1: Video: vp6f, yuv420p, 640x480, 460 kb/s, 24 fps, 1k tbr, 1k tbn

#6151 ffserver crashes after requesting /status ffserver defect Feb 15, 2017

Hi.

ffmpeg@ubuntu:~/ffserver$ uname -a
Linux ubuntu 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

ffmpeg@ubuntu:~/ffserver$ cat ffserver.conf
RTSPPort 8554
RTSPBindAddress 0.0.0.0
HTTPPort 8090
HTTPBindAddress 0.0.0.0
MaxBandwidth 10000
MaxClients 20
MaxHTTPConnections 20
NoDefaults

<Feed feed-kpp.ffm>
  File feed-kpp.ffm
  FileMaxSize 3M
  Launch ffmpeg -re -rtsp_transport tcp -i rtsp://192.168.99.100:554 -override_ffserver -flags:v +global_header -flags:a +global_header -vcodec copy
</Feed>

<Feed feed-pirit.ffm>
  File feed-pirit.ffm
  FileMaxSize 3M
  Launch ffmpeg -re -rtsp_transport tcp -i rtsp://192.168.99.101:554 -override_ffserver -flags:v +global_header -flags:a +global_header -vcodec copy
</Feed>

<Stream live-kpp>
Feed feed-kpp.ffm
Format rtp
VideoSize 800x480
AudioSampleRate 8000
</Stream>

<Stream live-pirit>
Feed feed-pirit.ffm
Format rtp
VideoSize 800x480
AudioSampleRate 8000
</Stream>

<Stream status>
Format status
</Stream>

ffmpeg@ubuntu:~/ffserver$ ffserver -v 9 -loglevel 99 -f ffserver.conf
ffserver version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
  configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --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
  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
Probing ffm score:101 size:2048
[ffm @ 0x1cc8960] Format ffm probed with size=2048 and score=101
[NULL @ 0x1cd70c0] Setting entry with key 'ar' to value '8000'
[NULL @ 0x1cd79e0] Setting entry with key 'video_size' to value '800x480'
[AVIOContext @ 0x1cccc00] Statistics: 4096 bytes read, 0 seeks
Probing ffm score:101 size:2048
[ffm @ 0x1cc8960] Format ffm probed with size=2048 and score=101
[NULL @ 0x1cd70c0] Setting entry with key 'ar' to value '8000'
[NULL @ 0x1cd79e0] Setting entry with key 'video_size' to value '800x480'
[AVIOContext @ 0x1cccc00] Statistics: 32768 bytes read, 0 seeks
feed-kpp.ffm: Pid 1396 exited with status 256 after 2 seconds
[NULL @ 0x1cd9aa0] Setting entry with key 'b' to value '0'
[NULL @ 0x1cd9aa0] Setting entry with key 'flags' to value '0x00400000'
[NULL @ 0x1cd9aa0] Setting entry with key 'chroma_sample_location' to value '1'
[NULL @ 0x1cd9aa0] Setting entry with key 'time_base' to value '1/25'
[NULL @ 0x1cd9aa0] Setting entry with key 'bits_per_raw_sample' to value '8'
[NULL @ 0x1cd9aa0] Setting entry with key 'pkt_timebase' to value '1/1000000'
[NULL @ 0x1cd9aa0] Setting entry with key 'pixel_format' to value 'yuvj420p'
[NULL @ 0x1cd9aa0] Setting entry with key 'video_size' to value '800x480'
[NULL @ 0x1cd9f40] Setting entry with key 'b' to value '160000'
[NULL @ 0x1cd9f40] Setting entry with key 'ab' to value '160000'
[NULL @ 0x1cd9f40] Setting entry with key 'flags' to value '0x00400000'
[NULL @ 0x1cd9f40] Setting entry with key 'ar' to value '16000'
[NULL @ 0x1cd9f40] Setting entry with key 'ac' to value '1'
[NULL @ 0x1cd9f40] Setting entry with key 'frame_size' to value '1152'
[NULL @ 0x1cd9f40] Setting entry with key 'channel_layout' to value '4'
[NULL @ 0x1cd9f40] Setting entry with key 'side_data_only_packets' to value '1'
[NULL @ 0x1cd9f40] Setting entry with key 'time_base' to value '1/16000'
[NULL @ 0x1cd9f40] Setting entry with key 'delay' to value '481'
[NULL @ 0x1cd9f40] Setting entry with key 'pkt_timebase' to value '1/1000000'
Probing ffm score:101 size:2048
[ffm @ 0x1ce0940] Format ffm probed with size=2048 and score=101
[NULL @ 0x1ce23e0] Setting entry with key 'ar' to value '8000'
[NULL @ 0x1ce2c80] Setting entry with key 'video_size' to value '800x480'
Probing ffm score:101 size:2048
[ffm @ 0x1ce5a20] Format ffm probed with size=2048 and score=101
[NULL @ 0x1cea5a0] Setting entry with key 'ar' to value '8000'
[NULL @ 0x1ceb120] Setting entry with key 'video_size' to value '800x480'
Failed to parse interval end specification ''
    Last message repeated 1 times
[rtp @ 0x1ce41a0] 0: write len=5087
[rtp @ 0x1ce41a0] RTCP: 60 d219fa5d1eae8 93ab2618
[rtp @ 0x1ce41a0] Sending NAL 1 of len 5083 M=1
[rtp @ 0x1ce41a0] NAL size 5083 > 1460
[rtp @ 0x1ce41a0] rtp_send_data size=1460
    Last message repeated 2 times
[rtp @ 0x1ce41a0] rtp_send_data size=710
[rtp @ 0x1ce4aa0] 0: write len=1440
[rtp @ 0x1ce4aa0] RTCP: 0e d219fa5d27b70 68f261d0
[rtp @ 0x1ce41a0] 0: write len=5102
[rtp @ 0x1ce41a0] Sending NAL 1 of len 5098 M=1
[rtp @ 0x1ce41a0] NAL size 5098 > 1460
[rtp @ 0x1ce41a0] rtp_send_data size=1460
    Last message repeated 2 times
[rtp @ 0x1ce41a0] rtp_send_data size=725
[rtp @ 0x1ce4aa0] 0: write len=1440
[rtp @ 0x1ce4aa0] rtp_send_data size=1444
[rtp @ 0x1ce41a0] 0: write len=5089
...
Floating point exception (core dumped)

The floating point exception happened after running the following command in another console:

ffmpeg@ubuntu:~$ curl -s http://localhost:8090/status
ffmpeg@ubuntu:~$
ffmpeg@ubuntu:~/ffserver$ gdb /usr/bin/ffserver core
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/ffserver...Reading symbols from /usr/lib/debug/.build-id/9b/8aad9657cb1a33f0f9ed10c6069d8e44ca1960.debug...done.
done.
[New LWP 1402]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `ffserver -v 9 -loglevel 99 -f ffserver.conf'.
Program terminated with signal SIGFPE, Arithmetic exception.
#0  0x0000000000416bfb in snprintf (__fmt=0x41cfc8 "%dx%d, q=%d-%d, fps=%d", __n=64, __s=0x7ffd4a7a4cd0 "")
    at /usr/include/x86_64-linux-gnu/bits/stdio2.h:64
64      /usr/include/x86_64-linux-gnu/bits/stdio2.h: No such file or directory.
(gdb) bt
#0  0x0000000000416bfb in snprintf (__fmt=0x41cfc8 "%dx%d, q=%d-%d, fps=%d", __n=64, __s=0x7ffd4a7a4cd0 "")
    at /usr/include/x86_64-linux-gnu/bits/stdio2.h:64
#1  print_stream_params (stream=0xda03e0, pb=0xda3da0) at ffserver.c:1781
#2  compute_status (c=0xdc5ec0) at ffserver.c:1969
#3  http_parse_request (c=c@entry=0xdc5ec0) at ffserver.c:1735
#4  0x0000000000408e64 in handle_connection (c=0xdc5ec0) at ffserver.c:900
#5  http_server () at ffserver.c:678
#6  main (argc=<optimized out>, argv=<optimized out>) at ffserver.c:3870
(gdb)
#0  0x0000000000416bfb in snprintf (__fmt=0x41cfc8 "%dx%d, q=%d-%d, fps=%d", __n=64, __s=0x7ffd4a7a4cd0 "")
    at /usr/include/x86_64-linux-gnu/bits/stdio2.h:64
#1  print_stream_params (stream=0xda03e0, pb=0xda3da0) at ffserver.c:1781
#2  compute_status (c=0xdc5ec0) at ffserver.c:1969
#3  http_parse_request (c=c@entry=0xdc5ec0) at ffserver.c:1735
#4  0x0000000000408e64 in handle_connection (c=0xdc5ec0) at ffserver.c:900
#5  http_server () at ffserver.c:678
#6  main (argc=<optimized out>, argv=<optimized out>) at ffserver.c:3870

This happens when the first feed (feed-kpp.ffm) can't be started due to inaccessibility of 192.168.99.100:

ffmpeg@ubuntu:~/ffserver$ telnet 192.168.99.100 554
Trying 192.168.99.100...
telnet: Unable to connect to remote host: Connection refused

#6179 ffmpeg cannot recognize an wave file PCM detected as mp1 avformat defect Feb 23, 2017

Summary of the bug:when i use ffmpeg convert an wave file,the ffmpeg cannot recognize my file and probe result is mp1 How to reproduce:

% ./ffmpeg -i wav_format_recongnize_error.wav out.wav
ffmpeg version is 3.2.4
built with gcc 4.1.2 (GCC) 20070115 (prerelease) (SUSE Linux)

The full report is below:

ffmpeg started on 2017-02-22 at 22:00:00
Report written to "ffmpeg-20170222-220000.log"
Command line:
./ffmpeg -report -v 9 -loglevel 99 -i wav_format_recongnize_error.wav out.wav
ffmpeg version 3.2.4 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 4.1.2 (GCC) 20070115 (prerelease) (SUSE Linux)
  configuration: --prefix=/data/AutoBuild/src/isd_musicadmin_proj/trunk/biz_pack/lesterkong/ffmpeg_3.2.4_video --disable-yasm --enable-static --disable-shared --enable-libx264 --enable-gpl --extra-cflags=-I/data/AutoBuild/src/isd_musicadmin_proj/trunk/biz_pack/lesterkong/x264_static/include --extra-ldflags=-L/data/AutoBuild/src/isd_musicadmin_proj/trunk/biz_pack/lesterkong/x264_static/lib --extra-libs='-lx264 -ldl' --enable-cross-compile --arch=i486 --target-os=linux
  libavutil      55. 34.101 / 55. 34.101
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.101 / 57. 56.101
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.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 url with argument 'wav_format_recongnize_error.wav'.
Reading option 'out.wav' ... matched as output url.
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 url wav_format_recongnize_error.wav.
Successfully parsed a group of options.
Opening an input file: wav_format_recongnize_error.wav.
[file @ 0x97cfb20] Setting default whitelist 'file,crypto'
[wav @ 0x97cf400] Format wav probed with size=2048 and score=99
[wav @ 0x97cf400] Before avformat_find_stream_info() pos: 44 bytes read:65580 seeks:1 nb_streams:1
[wav @ 0x97cf400] probing stream 0 pp:32
[wav @ 0x97cf400] probing stream 0 pp:31
[wav @ 0x97cf400] probing stream 0 pp:30
[wav @ 0x97cf400] probing stream 0 pp:29
[wav @ 0x97cf400] Probe with size=16384, packets=2472 detected mp3 with score=25
[wav @ 0x97cf400] probing stream 0 pp:28
[wav @ 0x97cf400] probing stream 0 pp:27
[wav @ 0x97cf400] probing stream 0 pp:26
[wav @ 0x97cf400] probing stream 0 pp:25
[wav @ 0x97cf400] Probe with size=32768, packets=2476 detected mp3 with score=25
[wav @ 0x97cf400] probing stream 0 pp:24
[wav @ 0x97cf400] probing stream 0 pp:23
[wav @ 0x97cf400] probing stream 0 pp:22
[wav @ 0x97cf400] probing stream 0 pp:21
[wav @ 0x97cf400] probing stream 0 pp:20
[wav @ 0x97cf400] probing stream 0 pp:19
[wav @ 0x97cf400] probing stream 0 pp:18
[wav @ 0x97cf400] probing stream 0 pp:17
[wav @ 0x97cf400] Probe with size=65536, packets=2484 detected mp3 with score=25
[wav @ 0x97cf400] probing stream 0 pp:16
[wav @ 0x97cf400] probing stream 0 pp:15
[wav @ 0x97cf400] probing stream 0 pp:14
[wav @ 0x97cf400] probing stream 0 pp:13
[wav @ 0x97cf400] probing stream 0 pp:12
[wav @ 0x97cf400] probing stream 0 pp:11
[wav @ 0x97cf400] probing stream 0 pp:10
[wav @ 0x97cf400] probing stream 0 pp:9
[wav @ 0x97cf400] probing stream 0 pp:8
[wav @ 0x97cf400] probing stream 0 pp:7
[wav @ 0x97cf400] probing stream 0 pp:6
[wav @ 0x97cf400] probing stream 0 pp:5
[wav @ 0x97cf400] probing stream 0 pp:4
[wav @ 0x97cf400] probing stream 0 pp:3
[wav @ 0x97cf400] probing stream 0 pp:2
[wav @ 0x97cf400] probing stream 0 pp:1
[wav @ 0x97cf400] Probe with size=131072, packets=2500 detected mp3 with score=50
[wav @ 0x97cf400] probed stream 0
[mp1 @ 0x97d0500] Header missing
[mp1 @ 0x97d0500] Header missing
[wav @ 0x97cf400] All info found
[wav @ 0x97cf400] Estimating duration from bitrate, this may be inaccurate
[wav @ 0x97cf400] After avformat_find_stream_info() pos: 131116 bytes read:196652 seeks:1 frames:50
Input #0, wav, from 'wav_format_recongnize_error.wav':
  Duration: 00:00:58.05, bitrate: 1411 kb/s
    Stream #0:0, 50, 1/44100: Audio: mp1 ([1][0][0][0] / 0x0001), 48000 Hz, mono, s16p, 1411 kb/s
Successfully opened the file.
Parsing a group of options: output url out.wav.
Successfully parsed a group of options.
Opening an output file: out.wav.
[file @ 0x97d3760] Setting default whitelist 'file,crypto'
Successfully opened the file.
detected 6 logical cores
[graph 0 input from stream 0:0 @ 0x980dec0] Setting 'time_base' to value '1/48000'
[graph 0 input from stream 0:0 @ 0x980dec0] Setting 'sample_rate' to value '48000'
[graph 0 input from stream 0:0 @ 0x980dec0] Setting 'sample_fmt' to value 's16p'
[graph 0 input from stream 0:0 @ 0x980dec0] Setting 'channel_layout' to value '0x4'
[graph 0 input from stream 0:0 @ 0x980dec0] tb:1/48000 samplefmt:s16p samplerate:48000 chlayout:0x4
[audio format for output stream 0:0 @ 0x97e5700] Setting 'sample_fmts' to value 's16'
[audio format for output stream 0:0 @ 0x97e5700] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:0'
[AVFilterGraph @ 0x98036e0] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed
[auto-inserted resampler 0 @ 0x97d0b60] [SWR @ 0x9817580] Using s16p internally between filters
[auto-inserted resampler 0 @ 0x97d0b60] ch:1 chl:mono fmt:s16p r:48000Hz -> ch:1 chl:mono fmt:s16 r:48000Hz
Output #0, wav, to 'out.wav':
  Metadata:
    ISFT            : Lavf57.56.101
    Stream #0:0, 0, 1/48000: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, mono, s16, 768 kb/s
    Metadata:
      encoder         : Lavc57.64.101 pcm_s16le
Stream mapping:
  Stream #0:0 -> #0:0 (mp1 (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[mp1 @ 0x97d31c0] Header missing
Error while decoding stream #0:0: Invalid data found when processing input
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[mp1 @ 0x97d31c0] Header missing
Error while decoding stream #0:0: Invalid data found when processing input
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[mp1 @ 0x97d31c0] Header missing

.....

Error while decoding stream #0:0: Invalid data found when processing input
[mp1 @ 0x97d31c0] Header missing
Error while decoding stream #0:0: Invalid data found when processing input
[output stream 0:0 @ 0x97d2340] EOF on sink link output stream 0:0:default.
No more output streams to write to, finishing.
size=     620kB time=00:00:06.61 bitrate= 767.0kbits/s speed=7.94x    
video:0kB audio:620kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.012296%
Input file #0 (wav_format_recongnize_error.wav):
  Input stream #0:0 (audio): 4837 packets read (10239956 bytes); 827 frames decoded (317568 samples); 
  Total: 4837 packets (10239956 bytes) demuxed
Output file #0 (out.wav):
  Output stream #0:0 (audio): 826 frames encoded (317184 samples); 826 packets muxed (634368 bytes); 
  Total: 826 packets (634368 bytes) muxed
827 frames successfully decoded, 4010 decoding errors
[AVIOContext @ 0x97e0a60] Statistics: 4 seeks, 829 writeouts
[AVIOContext @ 0x97d7cc0] Statistics: 10305536 bytes read, 1 seeks
Conversion failed!}}}

#6255 Corrupt .flv file segfaults ffprobe (-print_format json) -show_streams $filename ffprobe defect Mar 23, 2017

corrupt.flv (File attached)

00000000  46 4c 56 01 30 00 00 00  09 30 30 30 30 09 00 00  |FLV.0....0000...|
00000010  30 30 30 30 30 30 30 30  17 00 30 30 30 01 30 30  |00000000..000.00|
00000020  30 ff e1 00 0a 30 30 30  30 30 30 30 30 09 00 00  |0....00000000...|
00000030  13 30 30 30 30 30 30 30  27 30 30 30 30 30 30 30  |.0000000'0000000|
00000040  30 30 30 30 30 30 30 30  30 30 30 00 00 00 1e 09  |00000000000.....|
00000050  00 00 11 30 30 30 30 30  30 30 30 30 30 30 30 00  |...000000000000.|
00000060  00 00 08 e7 30 30 30 42  df e8 81 00 00 00 1c     |....000B.......|
0000006f

https://scr.meo.ws/snapshot/1490263786338886565.png

ffprobe -print_format default -show_streams $filename

GDB:

Program received signal SIGSEGV, Segmentation fault.
strlen () at ../sysdeps/x86_64/strlen.S:106
106     ../sysdeps/x86_64/strlen.S: No such file or directory.
(gdb) bt
#0  strlen () at ../sysdeps/x86_64/strlen.S:106
#1  0x00007ffff660e99c in _IO_puts (str=0x0) at ioputs.c:36
#2  0x00000000005a5bed in writer_print_string (wctx=wctx@entry=0x3bb30b0, key=key@entry=0x2cb31b3 "chroma_location", val=0x0, flags=0) at ffprobe.c:673
#3  0x00000000005bdbe5 in show_stream (w=w@entry=0x3bb30b0, fmt_ctx=fmt_ctx@entry=0x3bb59e0, stream_idx=stream_idx@entry=0, ist=<optimized out>, in_program=in_program@entry=0) at ffprobe.c:2289
#4  0x000000000057dcd0 in show_streams (ifile=0x7fffffffe940, w=0x3bb30b0) at ffprobe.c:2436
#5  probe_file (filename=<optimized out>, wctx=0x3bb30b0) at ffprobe.c:2750
#6  main (argc=<optimized out>, argv=<optimized out>) at ffprobe.c:3397
(gdb) up 2
#2  0x00000000005a5bed in writer_print_string (wctx=wctx@entry=0x3bb30b0, key=key@entry=0x2cb31b3 "chroma_location", val=0x0, flags=0) at ffprobe.c:673
673                 wctx->writer->print_string(wctx, key, val);
(gdb) l
 668                            key, val, section->unique_name);
 669                 }
 670                 av_free(key1);
 671                 av_free(val1);
 672             } else {
*673                 wctx->writer->print_string(wctx, key, val);
 674             }
 675
 676             wctx->nb_item[wctx->level]++;
 677         }

Valgrind:

==940423== Invalid read of size 1
==940423==    at 0x4C2C1A2: strlen (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==940423==    by 0x632E99B: puts (ioputs.c:36)
==940423==    by 0x5A5BEC: writer_print_string.constprop.29 (ffprobe.c:673)
==940423==    by 0x5BDBE4: show_stream (ffprobe.c:2289)
==940423==    by 0x57DCCF: show_streams (ffprobe.c:2436)
==940423==    by 0x57DCCF: probe_file (ffprobe.c:2750)
==940423==    by 0x57DCCF: main (ffprobe.c:3397)
==940423==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==940423==
==940423==
==940423== Process terminating with default action of signal 11 (SIGSEGV)
==940423==  Access not within mapped region at address 0x0
==940423==    at 0x4C2C1A2: strlen (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==940423==    by 0x632E99B: puts (ioputs.c:36)
==940423==    by 0x5A5BEC: writer_print_string.constprop.29 (ffprobe.c:673)
==940423==    by 0x5BDBE4: show_stream (ffprobe.c:2289)
==940423==    by 0x57DCCF: show_streams (ffprobe.c:2436)
==940423==    by 0x57DCCF: probe_file (ffprobe.c:2750)
==940423==    by 0x57DCCF: main (ffprobe.c:3397)
==940423==  If you believe this happened as a result of a stack
==940423==  overflow in your program's main thread (unlikely but
==940423==  possible), you can try to increase the size of the
==940423==  main thread stack using the --main-stacksize= flag.
==940423==  The main thread stack size used in this run was 8388608.
==940423==
==940423== HEAP SUMMARY:
==940423==     in use at exit: 2,257,232 bytes in 89 blocks
==940423==   total heap usage: 225 allocs, 136 frees, 2,709,948 bytes allocated
==940423==
==940423== LEAK SUMMARY:
==940423==    definitely lost: 0 bytes in 0 blocks
==940423==    indirectly lost: 0 bytes in 0 blocks
==940423==      possibly lost: 0 bytes in 0 blocks
==940423==    still reachable: 2,257,232 bytes in 89 blocks
==940423==         suppressed: 0 bytes in 0 blocks
==940423== Rerun with --leak-check=full to see details of leaked memory
==940423==
==940423== For counts of detected and suppressed errors, rerun with: -v
==940423== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)

ffprobe -print_format compact -show_streams $filename

GDB:

Program received signal SIGSEGV, Segmentation fault.
c_escape_str (dst=0x7fffffffd700, src=0x0, sep=124 '|', log_ctx=0x3bb30b0) at ffprobe.c:934
934         for (p = src; *p; p++) {
(gdb) bt
#0  c_escape_str (dst=0x7fffffffd700, src=0x0, sep=124 '|', log_ctx=0x3bb30b0) at ffprobe.c:934
#1  0x000000000059c1d2 in compact_print_str (wctx=0x3bb30b0, key=0x2cb31b3 "chroma_location", value=0x0) at ffprobe.c:1077
#2  0x00000000005a5bed in writer_print_string (wctx=wctx@entry=0x3bb30b0, key=key@entry=0x2cb31b3 "chroma_location", val=0x0, flags=0) at ffprobe.c:673
#3  0x00000000005bdbe5 in show_stream (w=w@entry=0x3bb30b0, fmt_ctx=fmt_ctx@entry=0x3bb5a90, stream_idx=stream_idx@entry=0, ist=<optimized out>, in_program=in_program@entry=0) at ffprobe.c:2289
#4  0x000000000057dcd0 in show_streams (ifile=0x7fffffffe900, w=0x3bb30b0) at ffprobe.c:2436
#5  probe_file (filename=<optimized out>, wctx=0x3bb30b0) at ffprobe.c:2750
#6  main (argc=<optimized out>, argv=<optimized out>) at ffprobe.c:3397
(gdb) l
 929      */
 930     static const char *c_escape_str(AVBPrint *dst, const char *src, const char sep, void *log_ctx)
 931     {
 932         const char *p;
 933
*934         for (p = src; *p; p++) {
 935             switch (*p) {
 936             case '\b': av_bprintf(dst, "%s", "\\b");  break;
 937             case '\f': av_bprintf(dst, "%s", "\\f");  break;
 938             case '\n': av_bprintf(dst, "%s", "\\n");  break;

Valgrind:

==214239== Invalid read of size 1
==214239==    at 0x59E48F: c_escape_str (ffprobe.c:934)
==214239==    by 0x59C1D1: compact_print_str (ffprobe.c:1077)
==214239==    by 0x5A5BEC: writer_print_string.constprop.29 (ffprobe.c:673)
==214239==    by 0x5BDBE4: show_stream (ffprobe.c:2289)
==214239==    by 0x57DCCF: show_streams (ffprobe.c:2436)
==214239==    by 0x57DCCF: probe_file (ffprobe.c:2750)
==214239==    by 0x57DCCF: main (ffprobe.c:3397)
==214239==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==214239==
==214239==
==214239== Process terminating with default action of signal 11 (SIGSEGV)
==214239==  Access not within mapped region at address 0x0
==214239==    at 0x59E48F: c_escape_str (ffprobe.c:934)
==214239==    by 0x59C1D1: compact_print_str (ffprobe.c:1077)
==214239==    by 0x5A5BEC: writer_print_string.constprop.29 (ffprobe.c:673)
==214239==    by 0x5BDBE4: show_stream (ffprobe.c:2289)
==214239==    by 0x57DCCF: show_streams (ffprobe.c:2436)
==214239==    by 0x57DCCF: probe_file (ffprobe.c:2750)
==214239==    by 0x57DCCF: main (ffprobe.c:3397)
==214239==  If you believe this happened as a result of a stack
==214239==  overflow in your program's main thread (unlikely but
==214239==  possible), you can try to increase the size of the
==214239==  main thread stack using the --main-stacksize= flag.
==214239==  The main thread stack size used in this run was 8388608.
==214239==
==214239== HEAP SUMMARY:
==214239==     in use at exit: 2,257,348 bytes in 91 blocks
==214239==   total heap usage: 229 allocs, 138 frees, 2,710,068 bytes allocated
==214239==
==214239== LEAK SUMMARY:
==214239==    definitely lost: 0 bytes in 0 blocks
==214239==    indirectly lost: 0 bytes in 0 blocks
==214239==      possibly lost: 0 bytes in 0 blocks
==214239==    still reachable: 2,257,348 bytes in 91 blocks
==214239==         suppressed: 0 bytes in 0 blocks
==214239== Rerun with --leak-check=full to see details of leaked memory
==214239==
==214239== For counts of detected and suppressed errors, rerun with: -v
==214239== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Segmentation fault

ffprobe -print_format json -show_streams $filename

GDB:

Program received signal SIGSEGV, Segmentation fault.
json_print_item_str (key=<optimized out>, value=0x0, wctx=<optimized out>) at ffprobe.c:1482
1482        printf(" \"%s\"", json_escape_str(&buf, value, wctx));
(gdb) bt
#0  json_print_item_str (key=<optimized out>, value=0x0, wctx=<optimized out>) at ffprobe.c:1482
#1  0x00000000005a5bed in writer_print_string (wctx=wctx@entry=0x3bb30b0, key=key@entry=0x2cb31b3 "chroma_location", val=0x0, flags=0) at ffprobe.c:673
#2  0x00000000005bdbe5 in show_stream (w=w@entry=0x3bb30b0, fmt_ctx=fmt_ctx@entry=0x3bb59d0, stream_idx=stream_idx@entry=0, ist=<optimized out>, in_program=in_program@entry=0) at ffprobe.c:2289
#3  0x000000000057dcd0 in show_streams (ifile=0x7fffffffe920, w=0x3bb30b0) at ffprobe.c:2436
#4  probe_file (filename=<optimized out>, wctx=0x3bb30b0) at ffprobe.c:2750
#5  main (argc=<optimized out>, argv=<optimized out>) at ffprobe.c:3397
(gdb) l
 1477        AVBPrint buf;
 1478
 1479        av_bprint_init(&buf, 1, AV_BPRINT_SIZE_UNLIMITED);
 1480        printf("\"%s\":", json_escape_str(&buf, key,   wctx));
 1481        av_bprint_clear(&buf);
*1482        printf(" \"%s\"", json_escape_str(&buf, value, wctx));
 1483        av_bprint_finalize(&buf, NULL);
 1484    }
 1485
 1486    static void json_print_str(WriterContext *wctx, const char *key, const char *value)

Valgrind:

==1007190== Invalid read of size 1
==1007190==    at 0x5A9F60: json_escape_str (ffprobe.c:1398)
==1007190==    by 0x5A9F60: json_print_item_str.isra.9 (ffprobe.c:1482)
==1007190==    by 0x5A5BEC: writer_print_string.constprop.29 (ffprobe.c:673)
==1007190==    by 0x5BDBE4: show_stream (ffprobe.c:2289)
==1007190==    by 0x57DCCF: show_streams (ffprobe.c:2436)
==1007190==    by 0x57DCCF: probe_file (ffprobe.c:2750)
==1007190==    by 0x57DCCF: main (ffprobe.c:3397)
==1007190==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==1007190==
==1007190==
==1007190== Process terminating with default action of signal 11 (SIGSEGV)
==1007190==  Access not within mapped region at address 0x0
==1007190==    at 0x5A9F60: json_escape_str (ffprobe.c:1398)
==1007190==    by 0x5A9F60: json_print_item_str.isra.9 (ffprobe.c:1482)
==1007190==    by 0x5A5BEC: writer_print_string.constprop.29 (ffprobe.c:673)
==1007190==    by 0x5BDBE4: show_stream (ffprobe.c:2289)
==1007190==    by 0x57DCCF: show_streams (ffprobe.c:2436)
==1007190==    by 0x57DCCF: probe_file (ffprobe.c:2750)
==1007190==    by 0x57DCCF: main (ffprobe.c:3397)
==1007190==  If you believe this happened as a result of a stack
==1007190==  overflow in your program's main thread (unlikely but
==1007190==  possible), you can try to increase the size of the
==1007190==  main thread stack using the --main-stacksize= flag.
==1007190==  The main thread stack size used in this run was 8388608.
==1007190==
==1007190== HEAP SUMMARY:
==1007190==     in use at exit: 2,257,205 bytes in 89 blocks
==1007190==   total heap usage: 225 allocs, 136 frees, 2,709,921 bytes allocated
==1007190==
==1007190== LEAK SUMMARY:
==1007190==    definitely lost: 0 bytes in 0 blocks
==1007190==    indirectly lost: 0 bytes in 0 blocks
==1007190==      possibly lost: 0 bytes in 0 blocks
==1007190==    still reachable: 2,257,205 bytes in 89 blocks
==1007190==         suppressed: 0 bytes in 0 blocks
==1007190== Rerun with --leak-check=full to see details of leaked memory
==1007190==
==1007190== For counts of detected and suppressed errors, rerun with: -v
==1007190== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)

Not attaching more examples but it seems all writers are affected by this


#6268 Hang when processing corrupt .webm file with -threads > 1 avcodec defect Mar 27, 2017

corrupt.webm (File attached):

00000000  1a 45 df a3 01 00 00 00  00 00 00 1f 42 30 81 30  |.E..........B0.0|
00000010  42 30 81 30 42 30 81 30  42 30 81 30 42 30 84 30  |B0.0B0.0B0.0B0.0|
00000020  30 30 30 42 30 81 30 42  30 81 30 30 16 54 ae 6b  |000B0.0B0.00.T.k|
00000030  01 30 30 30 30 30 30 30  ae 01 00 00 00 00 00 00  |.0000000........|
00000040  30 d7 81 01 9c 81 30 30  30 30 83 30 30 30 86 85  |0.....0000.000..|
00000050  56 5f 56 50 39 83 81 01  30 30 30 84 30 30 30 30  |V_VP9...000.0000|
00000060  e0 01 00 00 00 00 00 00  0e b0 81 30 ba 81 30 54  |...........0..0T|
00000070  30 81 30 54 30 81 30 ae  01 30 30 30 30 30 30 30  |0.0T0.0..0000000|
00000080  d7 81 02 9c 81 30 9c 83  30 30 30 86 88 30 30 30  |.....0..000..000|
00000090  30 30 30 30 30 83 81 01  1f 43 b6 75 01 30 30 30  |00000....C.u.000|
000000a0  30 30 30 30 30 30 30 a3  30 30 30 30 30 30 30 30  |0000000.00000000|
000000b0  30 30 30 30 30 30 30 30  30 30 30 30 30 30 30 30  |0000000000000000|
000000c0  30 30 30 30 30 30 30 30  30 30 30 a3 85 82 30 30  |00000000000...00|
000000d0  30 30 a3 a3 81 30 30 30  82 49 83 42 30 00 30 30  |00...000.I.B0.00|
000000e0  30 30 30 30 30 30 00 00  30 30 30 30 30 30 30 30  |000000..00000000|
000000f0  30 30 30 30 30 30 30 30  30 30 e0 30 30 30 30 30  |0000000000.00000|
00000100  30 30 30 30 30 30 30 30  30 30 30 30 30 30 30 30  |0000000000000000|
*
00000150  30 30 30 30 30 30 30 30  30 30 30 30 30 30 c6 30  |00000000000000.0|
00000160  30 30 30 30 30 30 30 30  30 30 30 30 30 30 30 30  |0000000000000000|
*
000001a0  30 30 30 30 30 30 30 30  95 30 30 30 30 30 30 30  |00000000.0000000|
000001b0  30 30 30 30 30 30 30 30  30 30 30 30 30 30 30 30  |0000000000000000|
000001c0  30 95 30 30 30 30 30 30  30 30 30 30 30 30 30 30  |0.00000000000000|
000001d0  30 30 30 30 30 30 30 30  30 30 95 30 30 30 30 30  |0000000000.00000|
000001e0  30 30 30 30 30 30 30 30  30 30 30 30 30 30 30 30  |0000000000000000|
000001f0  30 30 30 93 30 30 30 30  30 30 30 30 30 30 30 30  |000.000000000000|
00000200  30 30 30 30 30 30 30 a3  85 82 30 30 30 30 a3 93  |0000000...0000..|
00000210  81 30 30 30 97 30 30 0e  30 30 30 30 30 30 30 00  |.000.00.0000000.|
00000220  00 30 30 a3 85 82 30 30  30 30 a3 99 81 30 30 30  |.00...0000...000|
00000230  86 30 30 96 30 30 49 e0  00 03 30 30 30 30 30 30  |.00.00I...000000|
00000240  30 30 30 30 30                                    |00000|
00000245

ffmpeg -threads 2 -v quiet -i $filename -f null -

GDB:

Program received signal SIGINT, Interrupt.
pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
185     ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: No such file or directory.
(gdb) bt
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x0000000000b6681e in ff_thread_decode_frame (avctx=0x22cc170, picture=0x22ca780, got_picture_ptr=0x7fffffffe114, avpkt=0x7fffffffe070) at libavcodec/pthread_frame.c:496
#2  0x0000000000c777a8 in avcodec_decode_video2 (avctx=0x22cc170, picture=0x22ca780, got_picture_ptr=0x7fffffffe114, avpkt=0x22cd7b0) at libavcodec/utils.c:2272
#3  0x0000000000c796b8 in do_decode (avctx=0x22cc170, pkt=0x22cd7b0) at libavcodec/utils.c:2822
#4  0x0000000000c79c2a in avcodec_receive_frame (avctx=0x22cc170, frame=0x22f2070) at libavcodec/utils.c:2949
#5  0x0000000000423348 in decode (avctx=0x22cc170, frame=0x22f2070, got_frame=0x7fffffffe39c, pkt=0x7fffffffe1d0) at ffmpeg.c:2256
#6  0x0000000000423ae1 in decode_video (ist=0x22c8d00, pkt=0x7fffffffe3a0, got_output=0x7fffffffe39c, eof=1, decode_failed=0x7fffffffe398) at ffmpeg.c:2393
#7  0x0000000000424a0d in process_input_packet (ist=0x22c8d00, pkt=0x0, no_eof=0) at ffmpeg.c:2628
#8  0x0000000000429aa6 in process_input (file_index=0) at ffmpeg.c:4171
#9  0x000000000042b4e3 in transcode_step () at ffmpeg.c:4481
#10 0x000000000042b603 in transcode () at ffmpeg.c:4535
#11 0x000000000042bce5 in main (argc=10, argv=0x7fffffffebc8) at ffmpeg.c:4740
(gdb) disass $pc-32,$pc+32
Dump of assembler code from 0x7ffff76c602f to 0x7ffff76c606f:
   0x00007ffff76c602f <pthread_cond_wait@@GLIBC_2.3.2+159>:     add    %bh,0xca(%rax)
   0x00007ffff76c6035 <pthread_cond_wait@@GLIBC_2.3.2+165>:     syscall
   0x00007ffff76c6037 <pthread_cond_wait@@GLIBC_2.3.2+167>:     cmp    $0x0,%eax
   0x00007ffff76c603a <pthread_cond_wait@@GLIBC_2.3.2+170>:     sete   %r8b
   0x00007ffff76c603e <pthread_cond_wait@@GLIBC_2.3.2+174>:     jmp    0x7ffff76c604f <pthread_cond_wait@@GLIBC_2.3.2+191>
   0x00007ffff76c6040 <pthread_cond_wait@@GLIBC_2.3.2+176>:     mov    $0x80,%esi
   0x00007ffff76c6045 <pthread_cond_wait@@GLIBC_2.3.2+181>:     xor    %r8b,%r8b
   0x00007ffff76c6048 <pthread_cond_wait@@GLIBC_2.3.2+184>:     mov    $0xca,%eax
   0x00007ffff76c604d <pthread_cond_wait@@GLIBC_2.3.2+189>:     syscall
=> 0x00007ffff76c604f <pthread_cond_wait@@GLIBC_2.3.2+191>:     mov    (%rsp),%edi
   0x00007ffff76c6052 <pthread_cond_wait@@GLIBC_2.3.2+194>:     callq  0x7ffff76c8710 <__pthread_disable_asynccancel>
   0x00007ffff76c6057 <pthread_cond_wait@@GLIBC_2.3.2+199>:     mov    0x8(%rsp),%rdi
   0x00007ffff76c605c <pthread_cond_wait@@GLIBC_2.3.2+204>:     mov    $0x1,%esi
   0x00007ffff76c6061 <pthread_cond_wait@@GLIBC_2.3.2+209>:     xor    %eax,%eax
   0x00007ffff76c6063 <pthread_cond_wait@@GLIBC_2.3.2+211>:     lock cmpxchg %esi,(%rdi)
   0x00007ffff76c6067 <pthread_cond_wait@@GLIBC_2.3.2+215>:     jne    0x7ffff76c614d <pthread_cond_wait@@GLIBC_2.3.2+445>
   0x00007ffff76c606d <pthread_cond_wait@@GLIBC_2.3.2+221>:     mov    0x2c(%rdi),%edx
End of assembler dump.
(gdb) info all-registers
rax            0xfffffffffffffe00       -512
rbx            0x0      0
rcx            0xffffffffffffffff       -1
rdx            0x1      1
rsi            0x80     128
rdi            0x22caafc        36481788
rbp            0x7fffffffe020   0x7fffffffe020
rsp            0x7fffffffdf90   0x7fffffffdf90
r8             0x22cab00        36481792
r9             0x0      0
r10            0x0      0
r11            0x246    582
r12            0x404080 4210816
r13            0x7fffffffebc0   140737488350144
r14            0x0      0
r15            0x0      0
rip            0x7ffff76c604f   0x7ffff76c604f <pthread_cond_wait@@GLIBC_2.3.2+191>
eflags         0x246    [ PF ZF IF ]
cs             0x33     51
ss             0x2b     43
ds             0x0      0
es             0x0      0
fs             0x0      0
gs             0x0      0
st0            0        (raw 0x00000000000000000000)
st1            0        (raw 0x00000000000000000000)
st2            0        (raw 0x00000000000000000000)
st3            0        (raw 0x00000000000000000000)
st4            0        (raw 0x00000000000000000000)
st5            0        (raw 0x00000000000000000000)
st6            0        (raw 0x00000000000000000000)
st7            0        (raw 0x00000000000000000000)
fctrl          0x37f    895
fstat          0x0      0
ftag           0xffff   65535
fiseg          0x0      0
fioff          0x0      0
foseg          0x0      0
fooff          0x0      0
fop            0x0      0
xmm0           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x8000000000000000, 0x8000000000000000}, v16_int8 = {0x0, 0xff <repeats 15 times>}, v8_int16 = {0xff00, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {0xffffff00, 0xffffffff, 0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffff00, 0xffffffffffffffff},
  uint128 = 0xffffffffffffffffffffffffffffff00}
xmm1           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm2           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm3           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm4           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0xff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0, 0x0, 0xff00, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0xff00, 0x0, 0x0}, v2_int64 = {0xff0000000000, 0x0}, uint128 = 0x00000000000000000000ff0000000000}
xmm5           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x8000000000000000, 0x8000000000000000}, v16_int8 = {0x6d, 0x70, 0x6c, 0x65, 0x20, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x20, 0x6f, 0x70, 0x74, 0x69}, v8_int16 = {0x706d, 0x656c, 0x6620, 0x6c69, 0x6574, 0x2072, 0x706f, 0x6974}, v4_int32 = {0x656c706d, 0x6c696620, 0x20726574,
    0x6974706f}, v2_int64 = {0x6c696620656c706d, 0x6974706f20726574}, uint128 = 0x6974706f207265746c696620656c706d}
xmm6           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x8000000000000000, 0x8000000000000000}, v16_int8 = {0x74, 0x73, 0x0, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x20, 0x61, 0x72, 0x65, 0x73, 0x61}, v8_int16 = {0x7374, 0x6400, 0x6665, 0x7561, 0x746c, 0x6120, 0x6572, 0x6173}, v4_int32 = {0x64007374, 0x75616665, 0x6120746c,
    0x61736572}, v2_int64 = {0x7561666564007374, 0x617365726120746c}, uint128 = 0x617365726120746c7561666564007374}
xmm7           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm8           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm9           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm10          {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm11          {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm12          {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0xff, 0x0 <repeats 15 times>}, v8_int16 = {0xff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0xff, 0x0, 0x0, 0x0}, v2_int64 = {0xff, 0x0}, uint128 = 0x000000000000000000000000000000ff}
xmm13          {v4_float = {0x0, 0xffffffff, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0xf9, 0xc8, 0xde, 0xfc, 0xd1, 0x21, 0x89, 0xbf, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0xc8f9, 0xfcde, 0x21d1, 0xbf89, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0xfcdec8f9, 0xbf8921d1, 0x0, 0x0}, v2_int64 = {0xbf8921d1fcdec8f9, 0x0},
  uint128 = 0x0000000000000000bf8921d1fcdec8f9}
xmm14          {v4_float = {0x0, 0xffffffff, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0xf9, 0xc8, 0xde, 0xfc, 0xd1, 0x21, 0x89, 0xbf, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0xc8f9, 0xfcde, 0x21d1, 0xbf89, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0xfcdec8f9, 0xbf8921d1, 0x0, 0x0}, v2_int64 = {0xbf8921d1fcdec8f9, 0x0},
  uint128 = 0x0000000000000000bf8921d1fcdec8f9}
xmm15          {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
mxcsr          0x1fa8   [ OE PE IM DM ZM OM UM PM ]
(gdb) up
#1  0x0000000000b6681e in ff_thread_decode_frame (avctx=0x22cc170, picture=0x22ca780, got_picture_ptr=0x7fffffffe114, avpkt=0x7fffffffe070) at libavcodec/pthread_frame.c:496
496                     pthread_cond_wait(&p->output_cond, &p->progress_mutex);
(gdb) l
 491             p = &fctx->threads[finished++];
 492
 493             if (atomic_load(&p->state) != STATE_INPUT_READY) {
 494                 pthread_mutex_lock(&p->progress_mutex);
 495                 while (atomic_load_explicit(&p->state, memory_order_relaxed) != STATE_INPUT_READY)
*496                     pthread_cond_wait(&p->output_cond, &p->progress_mutex);
 497                 pthread_mutex_unlock(&p->progress_mutex);
 498             }
 499
 500             av_frame_move_ref(picture, p->frame);
(gdb)

Valgrind:

==4185== HEAP SUMMARY:
==4185==     in use at exit: 400,453 bytes in 428 blocks
==4185==   total heap usage: 1,649 allocs, 1,221 frees, 889,427 bytes allocated
==4185==
==4185== 544 bytes in 2 blocks are possibly lost in loss record 143 of 176
==4185==    at 0x4C2AD10: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==4185==    by 0x4010F91: allocate_dtv (dl-tls.c:296)
==4185==    by 0x401169D: _dl_allocate_tls (dl-tls.c:460)
==4185==    by 0x5342BE7: allocate_stack (allocatestack.c:589)
==4185==    by 0x5342BE7: pthread_create@@GLIBC_2.2.5 (pthread_create.c:495)
==4185==    by 0xB67661: ff_frame_thread_init (pthread_frame.c:810)
==4185==    by 0x115BCD4: ff_thread_init (pthread.c:77)
==4185==    by 0xC74B6C: avcodec_open2 (utils.c:1419)
==4185==    by 0x4257F9: init_input_stream (ffmpeg.c:2890)
==4185==    by 0x427F81: transcode_init (ffmpeg.c:3592)
==4185==    by 0x42B55F: transcode (ffmpeg.c:4506)
==4185==    by 0x42BCE4: main (ffmpeg.c:4740)
==4185==
==4185== 6,800 bytes in 25 blocks are possibly lost in loss record 170 of 176
==4185==    at 0x4C2AD10: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==4185==    by 0x4010F91: allocate_dtv (dl-tls.c:296)
==4185==    by 0x401169D: _dl_allocate_tls (dl-tls.c:460)
==4185==    by 0x5342BE7: allocate_stack (allocatestack.c:589)
==4185==    by 0x5342BE7: pthread_create@@GLIBC_2.2.5 (pthread_create.c:495)
==4185==    by 0x469F35: thread_init_internal (pthread.c:179)
==4185==    by 0x46A004: ff_graph_thread_init (pthread.c:210)
==4185==    by 0x4515A5: avfilter_graph_alloc_filter (avfiltergraph.c:194)
==4185==    by 0x46831C: create_filter (graphparser.c:114)
==4185==    by 0x468533: parse_filter (graphparser.c:176)
==4185==    by 0x468D7E: avfilter_graph_parse2 (graphparser.c:411)
==4185==    by 0x41AC85: configure_filtergraph (ffmpeg_filter.c:1031)
==4185==    by 0x423184: ifilter_send_frame (ffmpeg.c:2194)
==4185==
==4185== LEAK SUMMARY:
==4185==    definitely lost: 0 bytes in 0 blocks
==4185==    indirectly lost: 0 bytes in 0 blocks
==4185==      possibly lost: 7,344 bytes in 27 blocks
==4185==    still reachable: 393,109 bytes in 401 blocks
==4185==         suppressed: 0 bytes in 0 blocks
==4185== Reachable blocks (those to which a pointer was found) are not shown.
==4185== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==4185==
==4185== For counts of detected and suppressed errors, rerun with: -v
==4185== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
Killed

#6275 mov to libvorbis conversion fails undetermined defect Mar 28, 2017

Summary of the bug: conversion of certain inputs fails on ubuntu, works on e.g. Mac How to reproduce:

$ ffmpeg -v verbose -i test.mov -c:v libvpx -c:a libvorbis -b:a 64k test.webm
ffmpeg version N-84735-g3b80f73 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
  configuration: --enable-gpl --enable-nonfree --disable-doc --disable-ffplay --disable-ffserver --disable-libxcb --enable-libspeex --enable-libx264 --enable-libfdk-aac --enable-libvpx --enable-libvorbis
  libavutil      55. 51.100 / 55. 51.100
  libavcodec     57. 86.103 / 57. 86.103
  libavformat    57. 68.100 / 57. 68.100
  libavdevice    57.  3.101 / 57.  3.101
  libavfilter     6. 78.101 /  6. 78.101
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
[h264 @ 0x29d74e0] Reinit context to 1920x1088, pix_fmt: yuv420p
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 537199360
    compatible_brands: qt  
    creation_time   : 2017-03-22T18:49:20.000000Z
  Duration: 00:01:31.40, start: 0.000000, bitrate: 25639 kb/s
    Stream #0:0(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)
    Metadata:
      creation_time   : 2017-03-22T18:49:20.000000Z
      handler_name    : Apple Alias Data Handler
    Stream #0:1(eng): Video: h264 (Main), 1 reference frame (avc1 / 0x31637661), yuv420p(tv, bt709, left), 1920x1080 (1920x1088), 24100 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 2500 tbn, 5k tbc (default)
    Metadata:
      creation_time   : 2017-03-22T18:49:20.000000Z
      handler_name    : Apple Alias Data Handler
      encoder         : H.264
Stream mapping:
  Stream #0:1 -> #0:0 (h264 (native) -> vp8 (libvpx))
  Stream #0:0 -> #0:1 (pcm_s16le (native) -> vorbis (libvorbis))
Press [q] to stop, [?] for help
[graph_1_in_0_0 @ 0x2c31c60] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3
[format_out_0_1 @ 0x2c32000] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter 'format_out_0_1'
[auto_resampler_0 @ 0x2c32ca0] ch:2 chl:stereo fmt:s16 r:48000Hz -> ch:2 chl:stereo fmt:fltp r:48000Hz
[h264 @ 0x29fb460] Reinit context to 1920x1088, pix_fmt: yuv420p
[h264 @ 0x2a648c0] Increasing reorder buffer to 1
Too many packets buffered for output stream 0:1.
[libvorbis @ 0x29f2ae0] 32 frames left in the queue on closing
Conversion failed!
  • works on other platforms, like Darwin 16.4.0 Darwin Kernel Version 16.4.0: Thu Dec 22 22:53:21 PST 2016; root:xnu-3789.41.3~3/RELEASE_X86_64 x86_64 i386
  • works with shorter inputs, even a copy of the first 10 seconds of the above test.mov
  • works with 0686537002278f8802ecf2af1d5b2d0d5afe308a - I haven't had time to bisect what the exact breaking change is

#6282 Wrong bitrate information on produced .mp3 when using default options undetermined defect Mar 31, 2017

What i try to do: I am trying to get the audio stream from a .flv and save it as .mp3 (using default options)

Problem: When inspecting the output file with VLC media player, it shows a bitrate of 64 kB/s. As far as i read, default bitrate from ffmpeg should be 128kB/s, which also fits the actual file size.

Consequence: When using the file in a HTML <audio>-Tag, some browsers (Internet Explorer, Safari) estimate the duration double as high as it actually is.

Command line only specifies input and output file like

ffmpeg -i input.flv output.mp3

Additional Information: This problem does not occur when explicitely setting the bitrate with '-b:a 128k'. I tried this with several .flv files, also one from the web (http://www.mediacollege.com/video-gallery/testclips/barsandtone.flv) and also with a .mp3 file

verbose -report output:

ffmpeg version N-84348-gdb7a05d Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 6.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --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-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --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-zlib
  libavutil      55. 50.100 / 55. 50.100
  libavcodec     57. 83.101 / 57. 83.101
  libavformat    57. 66.105 / 57. 66.105
  libavdevice    57.  3.100 / 57.  3.100
  libavfilter     6. 78.100 /  6. 78.100
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.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 url with argument 'test/mataudio/barsandtone.flv'.
Reading option 'barsandtone.mp3' ... matched as output url.
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 url test/mataudio/barsandtone.flv.
Successfully parsed a group of options.
Opening an input file: test/mataudio/barsandtone.flv.
[file @ 000000000050aa00] Setting default whitelist 'file,crypto'
Probing flv score:100 size:2048
Probing mp3 score:1 size:2048
[flv @ 00000000006579e0] Format flv probed with size=2048 and score=100
[flv @ 00000000006579e0] Before avformat_find_stream_info() pos: 13 bytes read:32768 seeks:0 nb_streams:0
[flv @ 00000000006579e0] type:18, size:224, last:-1, dts:0 pos:21
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:0 pos:260
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:26 pos:590
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:9, size:5775, last:-1, dts:38 pos:920
[flv @ 00000000006579e0] 0 14 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:52 pos:6710
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:78 pos:7040
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:104 pos:7370
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:130 pos:7700
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:156 pos:8030
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:182 pos:8360
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:208 pos:8690
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:235 pos:9020
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:261 pos:9350
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:287 pos:9680
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:313 pos:10010
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:339 pos:10340
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:365 pos:10670
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:391 pos:11000
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:417 pos:11330
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:444 pos:11660
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:470 pos:11990
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:496 pos:12320
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:522 pos:12650
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:548 pos:12980
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:574 pos:13310
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:600 pos:13640
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:626 pos:13970
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:653 pos:14300
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:679 pos:14630
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:705 pos:14960
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:731 pos:15290
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:757 pos:15620
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:783 pos:15950
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:809 pos:16280
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:835 pos:16610
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:862 pos:16940
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:888 pos:17270
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:914 pos:17600
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:940 pos:17930
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:966 pos:18260
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:992 pos:18590
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1018 pos:18920
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1044 pos:19250
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1071 pos:19580
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1097 pos:19910
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1123 pos:20240
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1149 pos:20570
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1175 pos:20900
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1201 pos:21230
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1227 pos:21560
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1253 pos:21890
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1280 pos:22220
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1306 pos:22550
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1332 pos:22880
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1358 pos:23210
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1384 pos:23540
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1410 pos:23870
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1436 pos:24200
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1462 pos:24530
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1488 pos:24860
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1515 pos:25190
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1541 pos:25520
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1567 pos:25850
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1593 pos:26180
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1619 pos:26510
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1645 pos:26840
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1671 pos:27170
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1697 pos:27500
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1724 pos:27830
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1750 pos:28160
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1776 pos:28490
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1802 pos:28820
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1828 pos:29150
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1854 pos:29480
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1880 pos:29810
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1906 pos:30140
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1933 pos:30470
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1959 pos:30800
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:1985 pos:31130
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2011 pos:31460
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2037 pos:31790
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2063 pos:32120
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2089 pos:32450
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2115 pos:32780
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2142 pos:33110
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2168 pos:33440
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2194 pos:33770
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2220 pos:34100
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2246 pos:34430
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2272 pos:34760
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2298 pos:35090
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2324 pos:35420
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2351 pos:35750
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2377 pos:36080
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2403 pos:36410
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2429 pos:36740
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2455 pos:37070
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2481 pos:37400
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2507 pos:37730
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2533 pos:38060
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2560 pos:38390
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2586 pos:38720
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2612 pos:39050
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2638 pos:39380
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2664 pos:39710
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2690 pos:40040
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2716 pos:40370
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2742 pos:40700
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2768 pos:41030
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2795 pos:41360
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2821 pos:41690
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2847 pos:42020
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2873 pos:42350
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2899 pos:42680
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2925 pos:43010
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2951 pos:43340
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:2977 pos:43670
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3004 pos:44000
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3030 pos:44330
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3056 pos:44660
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3082 pos:44990
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3108 pos:45320
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3134 pos:45650
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3160 pos:45980
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3186 pos:46310
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3213 pos:46640
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3239 pos:46970
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3265 pos:47300
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3291 pos:47630
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3317 pos:47960
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3343 pos:48290
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3369 pos:48620
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3395 pos:48950
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3422 pos:49280
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3448 pos:49610
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3474 pos:49940
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3500 pos:50270
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3526 pos:50600
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3552 pos:50930
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3578 pos:51260
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3604 pos:51590
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3631 pos:51920
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3657 pos:52250
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3683 pos:52580
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3709 pos:52910
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3735 pos:53240
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3761 pos:53570
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3787 pos:53900
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3813 pos:54230
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3840 pos:54560
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3866 pos:54890
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3892 pos:55220
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3918 pos:55550
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3944 pos:55880
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3970 pos:56210
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:3996 pos:56540
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4022 pos:56870
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4048 pos:57200
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4075 pos:57530
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4101 pos:57860
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4127 pos:58190
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4153 pos:58520
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4179 pos:58850
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4205 pos:59180
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4231 pos:59510
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4257 pos:59840
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4284 pos:60170
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4310 pos:60500
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4336 pos:60830
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4362 pos:61160
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4388 pos:61490
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4414 pos:61820
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4440 pos:62150
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4466 pos:62480
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4493 pos:62810
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4519 pos:63140
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4545 pos:63470
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4571 pos:63800
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4597 pos:64130
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4623 pos:64460
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4649 pos:64790
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4675 pos:65120
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4702 pos:65450
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4728 pos:65780
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4754 pos:66110
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4780 pos:66440
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4806 pos:66770
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4832 pos:67100
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4858 pos:67430
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4884 pos:67760
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4911 pos:68090
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4937 pos:68420
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4963 pos:68750
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:4989 pos:69080
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5015 pos:69410
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5041 pos:69740
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5067 pos:70070
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5093 pos:70400
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5120 pos:70730
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5146 pos:71060
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5172 pos:71390
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5198 pos:71720
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5224 pos:72050
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5250 pos:72380
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5276 pos:72710
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5302 pos:73040
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5328 pos:73370
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5355 pos:73700
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5381 pos:74030
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5407 pos:74360
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5433 pos:74690
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5459 pos:75020
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5485 pos:75350
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5511 pos:75680
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5537 pos:76010
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5564 pos:76340
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5590 pos:76670
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5616 pos:77000
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5642 pos:77330
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5668 pos:77660
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5694 pos:77990
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5720 pos:78320
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5746 pos:78650
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5773 pos:78980
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5799 pos:79310
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5825 pos:79640
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5851 pos:79970
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5877 pos:80300
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5903 pos:80630
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5929 pos:80960
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5955 pos:81290
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:5982 pos:81620
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:6008 pos:81950
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:6034 pos:82280
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:9, size:5775, last:-1, dts:6038 pos:82610
[flv @ 00000000006579e0] 0 14 0 
[flv @ 00000000006579e0] type:8, size:315, last:-1, dts:6060 pos:88400
[flv @ 00000000006579e0] 1 2F 0 
[flv @ 00000000006579e0] type:0, size:0, last:-1, dts:0 pos:88722
[flv @ 00000000006579e0] stream 0: start_time: 0.000 duration: -9223372036854776.000
[flv @ 00000000006579e0] stream 1: start_time: 0.038 duration: -9223372036854776.000
[flv @ 00000000006579e0] format: start_time: 0.000 duration: 6.000 bitrate=118 kb/s
[flv @ 00000000006579e0] After avformat_find_stream_info() pos: 88722 bytes read:88722 seeks:0 frames:235
Input #0, flv, from 'test/mataudio/barsandtone.flv':
  Metadata:
    audiodelay      : 0
    canSeekToEnd    : true
  Duration: 00:00:06.00, start: 0.000000, bitrate: 118 kb/s
    Stream #0:0, 233, 1/1000: Audio: mp3, 44100 Hz, stereo, s16p, 98 kb/s
    Stream #0:1, 2, 1/1000: Video: vp6f, 1 reference frame, yuv420p, 360x288 (368x288), 0/1, 409 kb/s, 10 fps, 1k tbr, 1k tbn
Successfully opened the file.
Parsing a group of options: output url barsandtone.mp3.
Successfully parsed a group of options.
Opening an output file: barsandtone.mp3.
[file @ 0000000000512520] Setting default whitelist 'file,crypto'
Successfully opened the file.
Stream mapping:
  Stream #0:0 -> #0:0 (mp3 (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
detected 8 logical cores
[graph_0_in_0_0 @ 000000000051bee0] Setting 'time_base' to value '1/44100'
[graph_0_in_0_0 @ 000000000051bee0] Setting 'sample_rate' to value '44100'
[graph_0_in_0_0 @ 000000000051bee0] Setting 'sample_fmt' to value 's16p'
[graph_0_in_0_0 @ 000000000051bee0] Setting 'channel_layout' to value '0x3'
[graph_0_in_0_0 @ 000000000051bee0] tb:1/44100 samplefmt:s16p samplerate:44100 chlayout:0x3
[format_out_0_0 @ 00000000005610e0] Setting 'sample_fmts' to value 's32p|fltp|s16p'
[format_out_0_0 @ 00000000005610e0] Setting 'sample_rates' to value '44100|48000|32000|22050|24000|16000|11025|12000|8000'
[format_out_0_0 @ 00000000005610e0] Setting 'channel_layouts' to value '0x4|0x3'
[AVFilterGraph @ 0000000000581980] query_formats: 4 queried, 9 merged, 0 already done, 0 delayed
Output #0, mp3, to 'barsandtone.mp3':
  Metadata:
    audiodelay      : 0
    canSeekToEnd    : true
    TSSE            : Lavf57.66.105
    Stream #0:0, 0, 1/44100: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p, delay 1105
    Metadata:
      encoder         : Lavc57.83.101 libmp3lame
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 2 times
[flv @ 00000000006579e0] type:0, size:0, last:-1, dts:0 pos:88722
No more output streams to write to, finishing.
[libmp3lame @ 000000000055b480] Trying to remove 47 more samples than there are in the queue
size=      96kB time=00:00:06.08 bitrate= 128.9kbits/s speed=18.1x    
video:0kB audio:96kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.312877%
Input file #0 (test/mataudio/barsandtone.flv):
  Input stream #0:0 (audio): 233 packets read (73162 bytes); 233 frames decoded (268416 samples); 
  Input stream #0:1 (video): 2 packets read (11546 bytes); 
  Total: 235 packets (84708 bytes) demuxed
Output file #0 (barsandtone.mp3):
  Output stream #0:0 (audio): 233 frames encoded (268416 samples); 234 packets muxed (97802 bytes); 
  Total: 234 packets (97802 bytes) muxed
233 frames successfully decoded, 0 decoding errors
[AVIOContext @ 000000000051bdc0] Statistics: 1 seeks, 236 writeouts
[AVIOContext @ 0000000000512c60] Statistics: 88722 bytes read, 0 seeks

#6284 FFMPEG doesn't output video with MP4 file that has broken frames undetermined defect Mar 31, 2017

I'm trying to re-encode a MP4 video with FFMPEG version 3.2.4-1~14.04.york1 (the original video is playable in all Windows players like WMP or MPC):

ffmpeg -re -i /home/clip.mp4 -y -preset ultrafast -crf 35 -c:a aac -threads 2 /home/conv1.mp4

But the converter freezes at the first frame, there are many such identical strings:

frame=    0 fps=0.0 q=0.0 Lsize= 

So the output has no video, just an audio track. And FFProbe says that it seems the video container normally:

ffprobe version git-2017-01-22-f1214ad Copyright (c) 2007-2017 the FFmpeg  developers built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --mandir=/usr/share/man --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libfreetype --enable-gnutls --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvidstab --enable-libwavpack --enable-nvenc
libavutil      55. 44.100 / 55. 44.100
libavcodec     57. 75.100 / 57. 75.100
libavformat    57. 63.100 / 57. 63.100
libavdevice    57.  2.100 / 57.  2.100
libavfilter     6. 69.100 /  6. 69.100
libavresample   3.  2.  0 /  3.  2.  0
libswscale      4.  3.101 /  4.  3.101
libswresample   2.  4.100 /  2.  4.100
libpostproc    54.  2.100 / 54.  2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/clip.mp4':
Metadata:
major_brand     : dash
minor_version   : 0
compatible_brands: iso6avc1mp41
creation_time   : 2016-03-17T09:39:29.000000Z
Duration: 00:04:18.46, start: 0.000000, bitrate: 3109 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1440x1080 [SAR 1:1 DAR 4:3], 2981 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)
Metadata:
  creation_time   : 2016-03-17T09:39:29.000000Z
  handler_name    : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
Metadata:
  creation_time   : 2016-03-17T09:36:59.000000Z
  handler_name    : SoundHandler

Tried converting the video to different formats - still same results, no video.


#6332 ffprobe fails to analyse caf files (returns with 1) ffprobe defect Apr 19, 2017

Summary of the bug: ffprobe fails to analyze the caf file that contains 128 channels. Last version that I have and this was working is 3.0.1 How to reproduce:

% ffprobe -of json -show_format 128channel_caf_file.caf
ffprobe version N-85548-g3390a2b-tessus
built with Apple LLVM version 8.0.0 (clang-800.0.42.1)

Output that I get from this analysis (return code is 1):

ffprobe version N-85548-g3390a2b-tessus Copyright (c) 2007-2017 the FFmpeg developers
  built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
  configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzmq --enable-libzvbi --enable-version3 --disable-ffplay --disable-indev=qtkit
  libavutil      55. 61.100 / 55. 61.100
  libavcodec     57. 92.100 / 57. 92.100
  libavformat    57. 72.101 / 57. 72.101
  libavdevice    57.  7.100 / 57.  7.100
  libavfilter     6. 84.101 /  6. 84.101
  libswscale      4.  7.101 /  4.  7.101
  libswresample   2.  8.100 /  2.  8.100
  libpostproc    54.  6.100 / 54.  6.100
{
[caf @ 0x7fb944806400] Failed to open codec in avformat_find_stream_info
[caf @ 0x7fb944806400] Estimating duration from bitrate, this may be inaccurate
Input #0, caf, from '/Users/kmura/Downloads/damf_single_bed_10ch_118obj_dynamic_3s/damf_single_bed_128obj_dynamic.caf':
  Duration: 00:00:03.00, start: 0.000000, bitrate: 147466 kb/s
    Stream #0:0: Audio: pcm_s24be (lpcm / 0x6D63706C), 48000 Hz, 128 channels, 147456 kb/s
Could not open codec for input stream 0

Output from working version (return code is 0):

ffprobe version 3.0.1-tessus Copyright (c) 2007-2016 the FFmpeg developers
  built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
  configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --as=yasm --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzmq --enable-version3 --disable-ffplay --disable-indev=qtkit --disable-indev=x11grab_xcb
  libavutil      55. 17.103 / 55. 17.103
  libavcodec     57. 24.102 / 57. 24.102
  libavformat    57. 25.100 / 57. 25.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 31.100 /  6. 31.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
{
[caf @ 0x7f9fc5801000] Failed to open codec in av_find_stream_info
[caf @ 0x7f9fc5801000] Estimating duration from bitrate, this may be inaccurate
Input #0, caf, from '/Users/kmura/Downloads/damf_single_bed_10ch_118obj_dynamic_3s/damf_single_bed_128obj_dynamic.caf':
  Duration: 00:00:03.00, start: 0.000000, bitrate: 147466 kb/s
    Stream #0:0: Audio: pcm_s24be (lpcm / 0x6D63706C), 48000 Hz, 128 channels, 147456 kb/s
Could not open codec for input stream 0
    "format": {
        "filename": "/Users/kmura/Downloads/damf_single_bed_10ch_118obj_dynamic_3s/damf_single_bed_128obj_dynamic.caf",
        "nb_streams": 1,
        "nb_programs": 0,
        "format_name": "caf",
        "format_long_name": "Apple CAF (Core Audio Format)",
        "start_time": "0.000000",
        "duration": "3.000000",
        "size": "55300096",
        "bit_rate": "147466922",
        "probe_score": 100
    }
}

#6333 ffplay returns error in case of flac picture data error avformat defect Apr 19, 2017

libavformat/flac_picture.c:116: av_log(s, AV_LOG_ERROR, "Error reading attached picture data.\n");

In that code, in case of error, it does "goto fail":

    memset(data->data + len, 0, AV_INPUT_BUFFER_PADDING_SIZE);
    if (avio_read(pb, data->data, len) != len) {
        av_log(s, AV_LOG_ERROR, "Error reading attached picture data.\n");
        if (s->error_recognition & AV_EF_EXPLODE)
            ret = AVERROR(EIO);
        goto fail;
    }

So, I try to ffplay this file and ffmpeg does not play it, returning an error:

$ ffplay file.flac
ffplay version 3.2.4-2~xenial Copyright (c) 2003-2017 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
  configuration: --prefix=/usr --extra-version='2~xenial' --libdir=/usr/lib/ffmpeg --shlibdir=/usr/lib/ffmpeg --disable-static --disable-debug --toolchain=hardened --enable-pthreads --enable-runtime-cpudetect --enable-gpl --enable-shared --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-netcdf --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-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv --enable-libkvazaar --enable-libopenh264 --enable-nonfree --enable-libfdk-aac
  libavutil      55. 34.101 / 55. 34.101
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.101 / 57. 56.101
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libavresample   3.  1.  0 /  3.  1.  0
  libswscale      4.  2.100 /  4.  2.100                                                                                                                                                                          
  libswresample   2.  3.100 /  2.  3.100                                                                                                                                                                          
  libpostproc    54.  1.100 / 54.  1.100                                                                                                                                                                          
[flac @ 0x7f57b0000920] Error reading attached picture data.f=0/0                                                                                                                                                 
Input #0, flac, from 'file.flac':  0KB vq=    0KB sq=    0B f=0/0                                                                                                                                                 
  Duration: 00:04:02.23, bitrate: 4517 kb/s                                                                                                                                                                       
    Stream #0:0: Audio: flac, 44100 Hz, 5.1(side), s32 (24 bit)                                                                                                                                                   
    nan M-A:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0 

The same is with other programs using ffmpeg for decoding, e.g. mpv:

$ mpv file.flac                                                                                                                                                                          
Playing: file.flac                                                                                                                                                                                                
[ffmpeg/demuxer] flac: Error reading attached picture data.                                                                                                                                                       
 (+) Audio --aid=1 (flac)                                                                                                                                                                                         
Error initializing audio.
Audio: no audio

Exiting... (Errors when loading file)

But the file IS WELL playable with other decoders (e.g. in Amarok, Banshee, Clementine), and ffmpeg cannot transcode the file, while it seems to not return propper erros, the vast majority of console output is green, see the screenshot.

$ ffmpeg -v 9 -loglevel 99 -i file.flac file2.flac                                                                                                                                       
ffmpeg version 3.2.4-2~xenial Copyright (c) 2000-2017 the FFmpeg developers                                                                                                                                       
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609                                                                                                                                                   
  configuration: --prefix=/usr --extra-version='2~xenial' --libdir=/usr/lib/ffmpeg --shlibdir=/usr/lib/ffmpeg --disable-static --disable-debug --toolchain=hardened --enable-pthreads --enable-runtime-cpudetect --enable-gpl --enable-shared --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-netcdf --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-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv --enable-libkvazaar --enable-libopenh264 --enable-nonfree --enable-libfdk-aac
  libavutil      55. 34.101 / 55. 34.101
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.101 / 57. 56.101
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libavresample   3.  1.  0 /  3.  1.  0
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.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 url with argument 'file.flac'.                                                                                                                                           
Reading option 'file2.flac' ... matched as output url.                                                                                                                                                            
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 url file.flac.                                                                                                                                                                  
Successfully parsed a group of options.                                                                                                                                                                           
Opening an input file: file.flac.                                                                                                                                                                                 
[file @ 0x55f7b9425cc0] Setting default whitelist 'file,crypto'                                                                                                                                                   
Probing flac score:50 size:2048                                                                                                                                                                                   
[flac @ 0x55f7b9425460] Format flac probed with size=2048 and score=50                                                                                                                                            
[flac @ 0x55f7b9425460] Error reading attached picture data.
[flac @ 0x55f7b9425460] Before avformat_find_stream_info() pos: 4815279 bytes read:214681 seeks:1 nb_streams:1
[flac @ 0x55f7b9425460] stream 0: start_time: -209146758205323.719 duration: 242.227                                                                                                                              
[flac @ 0x55f7b9425460] format: start_time: -9223372036854.775 duration: 242.227 bitrate=4517 kb/s                                                                                                                
[flac @ 0x55f7b9425460] After avformat_find_stream_info() pos: 136786045 bytes read:132185447 seeks:1 frames:0                                                                                                    
Input #0, flac, from 'file.flac':
  Duration: 00:04:02.23, bitrate: 4517 kb/s
    Stream #0:0, 0, 1/44100: Audio: flac, 44100 Hz, 5.1(side), s32 (24 bit)
Successfully opened the file.
Parsing a group of options: output url file2.flac.                                                                                                                                                                
Successfully parsed a group of options.                                                                                                                                                                           
Opening an output file: file2.flac.                                                                                                                                                                               
[file @ 0x55f7b9429c20] Setting default whitelist 'file,crypto'                                                                                                                                                   
Successfully opened the file.                                                                                                                                                                                     
detected 4 logical cores                                                                                                                                                                                          
[graph 0 input from stream 0:0 @ 0x55f7b942af00] Setting 'time_base' to value '1/44100'                                                                                                                           
[graph 0 input from stream 0:0 @ 0x55f7b942af00] Setting 'sample_rate' to value '44100'                                                                                                                           
[graph 0 input from stream 0:0 @ 0x55f7b942af00] Setting 'sample_fmt' to value 's32'                                                                                                                              
[graph 0 input from stream 0:0 @ 0x55f7b942af00] Setting 'channel_layout' to value '0x60f'                                                                                                                        
[graph 0 input from stream 0:0 @ 0x55f7b942af00] tb:1/44100 samplefmt:s32 samplerate:44100 chlayout:0x60f
[audio format for output stream 0:0 @ 0x55f7b942b6e0] Setting 'sample_fmts' to value 's16|s32'
[AVFilterGraph @ 0x55f7b9429de0] query_formats: 4 queried, 9 merged, 0 already done, 0 delayed                                                                                                                    
[flac @ 0x55f7b94290a0]  compression: 5                                                                                                                                                                           
[flac @ 0x55f7b94290a0]  lpc type: Levinson-Durbin recursion with Welch window                                                                                                                                    
[flac @ 0x55f7b94290a0]  prediction order: 1, 8                                                                                                                                                                   
[flac @ 0x55f7b94290a0]  order method: estimate
[flac @ 0x55f7b94290a0]  partition order: 0, 8
[flac @ 0x55f7b94290a0]  block size: 4608
[flac @ 0x55f7b94290a0]  lpc precision: 15
Output #0, flac, to 'file2.flac':
  Metadata:
    encoder         : Lavf57.56.101
    Stream #0:0, 0, 1/44100: Audio: flac, 44100 Hz, 5.1(side), s32 (24 bit), 128 kb/s
    Metadata:
      encoder         : Lavc57.64.101 flac
Stream mapping:
  Stream #0:0 -> #0:0 (flac (native) -> flac (native))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 2 times
[output stream 0:0 @ 0x55f7b942ad80] EOF on sink link output stream 0:0:default.
No more output streams to write to, finishing.
size=       8kB 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
Input file #0 (file.flac):
  Input stream #0:0 (audio): 0 packets read (0 bytes); 0 frames decoded (0 samples); 
  Total: 0 packets (0 bytes) demuxed
Output file #0 (file2.flac):
  Output stream #0:0 (audio): 0 frames encoded (0 samples); 1 packets muxed (0 bytes); 
  Total: 1 packets (0 bytes) muxed
0 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x55f7b9429aa0] Statistics: 2 seeks, 2 writeouts
[AVIOContext @ 0x55f7b942e060] Statistics: 132185447 bytes read, 1 seeks

So it reports successfull transcoding, while the output file is not decodable. The input (file.flac) is 130 MB, the output (file2.flac) is 8 KB.


#6354 segfault using signature filter on some videos avfilter defect Apr 25, 2017

The attached videos produce a segfault when using the signature filter.

Using the x64 binary build for ffmpeg 3.3:

https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz

How to reproduce:

ffmpeg -i v1.avi -i v2.avi -filter_complex "[0:v][1:v] signature=nb_inputs=2:detectmode=full" -map :v -f null - 

Most videos work fine, but these particular ones cause a segfault and core dump though the static build does not contain debugging symbols so I was not able to get a backtrace.

ffmpeg version 3.3-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2017 the FFmpeg developers built with gcc 5.4.1 (Debian 5.4.1-8) 20170304 configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg libavutil 55. 58.100 / 55. 58.100 libavcodec 57. 89.100 / 57. 89.100 libavformat 57. 71.100 / 57. 71.100 libavdevice 57. 6.100 / 57. 6.100 libavfilter 6. 82.100 / 6. 82.100 libswscale 4. 6.100 / 4. 6.100 libswresample 2. 7.100 / 2. 7.100 libpostproc 54. 5.100 / 54. 5.100


#6364 ffmpeg is triggering an assertion and the assertion is causing a malloc corruption undetermined defect May 2, 2017

Summary of the bug: it looks like ffmpeg is triggering an assertion (which it shouldn't) and the assertion is causing a malloc corruption. The malloc corruption probably isn't a bug in ffmpeg (but in libc), but the assertion triggering seems like a probable bug in ffmpeg. This above was written by "c_14" on IRC!

The backtrace could be found in the attachment.

This isn't happening with the ffmpeg 3.2.4 .

How to reproduce: with using VDR and its vdr-softhdevice output plugin with Live TV. I'll try to provide recording of this Live TV channel with the ffmpeg 3.2.4 and provide it here.

% ffmpeg -i input ... output
ffmpeg version 3.3
built on Archlinux x86_64 with glibc 2.25

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


#6370 Change in rotate metadata treatment between ffmpeg 3.2 and ffmpeg 3.3 ffmpeg defect May 4, 2017

Hello

I'm not sure if this is a deliberate change, but given a h264 video with rotate=90 in its meta data, when you then rotated the video using the command below, the output video used to have no rotate metadata. As of 3.3, it retains the metadata which makes the output display incorrectly.

Summary of the bug: How to reproduce:

ffmpeg version 3.2.4:

ffmpeg -noautorotate -i original.mp4 -metadata:s:v rotate=0 -vf scale=640:480,transpose=clock  -f mp4 -y rotated.mp4
... output all ok ...

ffprobe -i rotated.mp4
... snip ...
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'rotated.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.56.101
  Duration: 00:00:08.24, start: 0.000000, bitrate: 1298 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 480x640, 1181 kb/s, 14.92 fps, 14.92 tbr, 11456 tbn, 29.83 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 120 kb/s (default)
    Metadata:
      handler_name    : SoundHandler

ffmpeg version 3.3:

ffmpeg -noautorotate -i original.mp4 -metadata:s:v rotate=0 -vf scale=640:480,transpose=clock  -f mp4 -y rotated.mp4
... all looks ok ...

ffprobe  -i rotated.mp4
... snip ...
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'rotated.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.71.100
  Duration: 00:00:08.24, start: 0.000000, bitrate: 1299 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 480x640, 1182 kb/s, 14.92 fps, 14.92 tbr, 11456 tbn, 29.83 tbc (default)
    Metadata:
      rotate          : 90                                  <---- DIFFERENCE HERE
      handler_name    : VideoHandler
    Side data:
      displaymatrix: rotation of -90.00 degrees
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 120 kb/s (default)
    Metadata:
      handler_name    : SoundHandler

Note the difference in the metadata in the second output.

I've verified that HEAD appears to give the same result at 3.3

Is this a bug? Or have we been using ffmpeg incorrectly?

Our goal is to resize videos and transpose them so they are the same way up (we use ffprobe to check their incoming rotation, and then apply the appropriate transpose flags)


#6418 ffmpeg QSV doesnt work with live streams undetermined defect May 24, 2017

Summary of the bug: How to reproduce:

% ffmpeg  -hwaccel qsv -c:v mpeg2_qsv -i udp://@239.0.1.1:1234 -c:v h264_qsv -b:v 3M -maxrate 3M -look_ahead 0 -c:a copy -f mpegts udp://127.0.0.1:1234
ffmpeg version 3.3.1 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
  configuration: --enable-libmfx --enable-nonfree --enable-ffplay
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
[mpeg2video @ 0x36c6220] Invalid frame dimensions 0x0.
    Last message repeated 12 times
Input #0, mpegts, from 'udp://@239.0.1.1:1234':
  Duration: N/A, start: 22672.662644, bitrate: 4218 kb/s
  Program 157
    Metadata:
      service_name    : Info tv
      service_provider: Noname
    Stream #0:0[0x623]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], 4026 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x624]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s (clean effects)
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (mpeg2_qsv) -> h264 (h264_qsv))
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
[mpeg2_qsv @ 0x36cd100] Decoding pixel format '(null)' is not supported
Error while decoding stream #0:0: Function not implemented
Too many packets buffered for output stream 0:1.
Conversion failed!

If i dump a stream to file:

% ffmpeg -i udp://@239.0.1.1:1234 -map 0 -c copy -f mpegts test_stream.ts
ffmpeg version 3.3.1 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
  configuration: --enable-libmfx --enable-nonfree --enable-ffplay
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
[mpeg2video @ 0x258d000] Invalid frame dimensions 0x0.
    Last message repeated 13 times
Input #0, mpegts, from 'udp://@239.0.1.1:1234':
  Duration: N/A, start: 22881.846644, bitrate: 4218 kb/s
  Program 157
    Metadata:
      service_name    : Info tv
      service_provider: Noname
    Stream #0:0[0x623]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], 4026 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x624]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s (clean effects)
Output #0, mpegts, to 'test_stream.ts':
  Metadata:
    encoder         : Lavf57.71.100
    Stream #0:0: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], q=2-31, 4026 kb/s, 25 fps, 25 tbr, 90k tbn, 90k tbc
    Stream #0:1: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s (clean effects)
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=  400 fps= 35 q=-1.0 Lsize=    8928kB time=00:00:16.90 bitrate=4326.9kbits/s speed=1.46x
video:7864kB audio:389kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 8.178244%

and then try to transcode and stream it - it works, dont pay attention to errors, i know it's a bug wih qsv interlaced video encoding.

ffmpeg -hwaccel qsv -c:v mpeg2_qsv -i test_stream.ts -c:v h264_qsv -b:v 3M -maxrate 3M -look_ahead 0 -c:a copy -f mpegts udp://127.0.0.1:1234
ffmpeg version 3.3.1 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
  configuration: --enable-libmfx --enable-nonfree --enable-ffplay
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
Input #0, mpegts, from 'test_stream.ts':
  Duration: 00:00:17.06, start: 1.400000, bitrate: 4286 kb/s
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], 4026 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x101]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s (clean effects)
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (mpeg2_qsv) -> h264 (h264_qsv))
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
libva info: VA-API version 0.99.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0
Output #0, mpegts, to 'udp://127.0.0.1:1234':
  Metadata:
    encoder         : Lavf57.71.100
    Stream #0:0: Video: h264 (h264_qsv), qsv, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 3000 kb/s, 25 fps, 90k tbn, 25 tbc
    Metadata:
      encoder         : Lavc57.89.100 h264_qsv
    Side data:
      cpb: bitrate max/min/avg: 3000000/0/3000000 buffer size: 0 vbv_delay: -1
    Stream #0:1: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s (clean effects)
[h264_qsv @ 0x3dcd420] Warning during encoding: incompatible video parameters (5)
    Last message repeated 18 times
[mpegts @ 0x3da97a0] Non-monotonous DTS in output stream 0:0; previous: 154800, current: 136800; changing to 154801. This may result in incorrect timestamps in the output file.
[h264_qsv @ 0x3dcd420] Warning during encoding: incompatible video parameters (5)
[mpegts @ 0x3da97a0] Non-monotonous DTS in output stream 0:0; previous: 154801, current: 151200; changing to 154802. This may result in incorrect timestamps in the output file.
[h264_qsv @ 0x3dcd420] Warning during encoding: incompatible video parameters (5)
    Last message repeated 6 times
[mpegts @ 0x3da97a0] Non-monotonous DTS in output stream 0:0; previous: 187200, current: 187200; changing to 187201. This may result in incorrect timestamps in the output file.
[h264_qsv @ 0x3dcd420] Warning during encoding: incompatible video parameters (5)
    Last message repeated 15 times
[mpegts @ 0x3da97a0] Non-monotonous DTS in output stream 0:0; previous: 248400, current: 248400; changing to 248401. This may result in incorrect timestamps in the output file.
[h264_qsv @ 0x3dcd420] Warning during encoding: incompatible video parameters (5)
    Last message repeated 11 times
[mpegts @ 0x3da97a0] Non-monotonous DTS in output stream 0:0; previous: 295200, current: 295200; changing to 295201. This may result in incorrect timestamps in the output file.
[h264_qsv @ 0x3dcd420] Warning during encoding: incompatible video parameters (5)
    Last message repeated 15 times
[mpegts @ 0x3da97a0] Non-monotonous DTS in output stream 0:0; previous: 356400, current: 356400; changing to 356401. This may result in incorrect timestamps in the output file.
[h264_qsv @ 0x3dcd420] Warning during encoding: incompatible video parameters (5)
    Last message repeated 11 times
[mpegts @ 0x3da97a0] Non-monotonous DTS in output stream 0:0; previous: 403200, current: 403200; changing to 403201. This may result in incorrect timestamps in the output file.
[h264_qsv @ 0x3dcd420] Warning during encoding: incompatible video parameters (5)
    Last message repeated 15 times
[mpegts @ 0x3da97a0] Non-monotonous DTS in output stream 0:0; previous: 464400, current: 464400; changing to 464401. This may result in incorrect timestamps in the output file.
[h264_qsv @ 0x3dcd420] Warning during encoding: incompatible video parameters (5)
    Last message repeated 11 times
[mpegts @ 0x3da97a0] Non-monotonous DTS in output stream 0:0; previous: 511200, current: 511200; changing to 511201. This may result in incorrect timestamps in the output file.
[h264_qsv @ 0x3dcd420] Warning during encoding: incompatible video parameters (5)
    Last message repeated 15 times
[mpegts @ 0x3da97a0] Non-monotonous DTS in output stream 0:0; previous: 572400, current: 572400; changing to 572401. This may result in incorrect timestamps in the output file.
[h264_qsv @ 0x3dcd420] Warning during encoding: incompatible video parameters (5)
    Last message repeated 11 times
[mpegts @ 0x3da97a0] Non-monotonous DTS in output stream 0:0; previous: 619200, current: 619200; changing to 619201. This may result in incorrect timestamps in the output file.
[h264_qsv @ 0x3dcd420] Warning during encoding: incompatible video parameters (5)
    Last message repeated 15 times
[mpegts @ 0x3da97a0] Non-monotonous DTS in output stream 0:0; previous: 680400, current: 680400; changing to 680401. This may result in incorrect timestamps in the output file.
[h264_qsv @ 0x3dcd420] Warning during encoding: incompatible video parameters (5)
    Last message repeated 11 times
[mpegts @ 0x3da97a0] Non-monotonous DTS in output stream 0:0; previous: 727200, current: 727200; changing to 727201. This may result in incorrect timestamps in the output file.
[h264_qsv @ 0x3dcd420] Warning during encoding: incompatible video parameters (5)
    Last message repeated 15 times
[mpegts @ 0x3da97a0] Non-monotonous DTS in output stream 0:0; previous: 788400, current: 788400; changing to 788401. This may result in incorrect timestamps in the output file.
[h264_qsv @ 0x3dcd420] Warning during encoding: incompatible video parameters (5)
    Last message repeated 11 times
[mpegts @ 0x3da97a0] Non-monotonous DTS in output stream 0:0; previous: 835200, current: 835200; changing to 835201. This may result in incorrect timestamps in the output file.
[h264_qsv @ 0x3dcd420] Warning during encoding: incompatible video parameters (5)
    Last message repeated 15 times
[mpegts @ 0x3da97a0] Non-monotonous DTS in output stream 0:0; previous: 896400, current: 896400; changing to 896401. This may result in incorrect timestamps in the output file.
[h264_qsv @ 0x3dcd420] Warning during encoding: incompatible video parameters (5)
    Last message repeated 23 times
[mpegts @ 0x3da97a0] Non-monotonous DTS in output stream 0:0; previous: 990000, current: 990000; changing to 990001. This may result in incorrect timestamps in the output file.
[h264_qsv @ 0x3dcd420] Warning during encoding: incompatible video parameters (5)
    Last message repeated 1 times
[h264_qsv @ 0x3dcd420] Warning during encoding: incompatible video parameters (5) speed=22.9x
    Last message repeated 13 times
[mpegts @ 0x3da97a0] Non-monotonous DTS in output stream 0:0; previous: 1054800, current: 1054800; changing to 1054801. This may result in incorrect timestamps in the output file.
[h264_qsv @ 0x3dcd420] Warning during encoding: incompatible video parameters (5)
    Last message repeated 13 times
[mpegts @ 0x3da97a0] Non-monotonous DTS in output stream 0:0; previous: 1108800, current: 1108800; changing to 1108801. This may result in incorrect timestamps in the output file.
[h264_qsv @ 0x3dcd420] Warning during encoding: incompatible video parameters (5)
    Last message repeated 27 times
[mpegts @ 0x3da97a0] Non-monotonous DTS in output stream 0:0; previous: 1216800, current: 1216800; changing to 1216801. This may result in incorrect timestamps in the output file.
[h264_qsv @ 0x3dcd420] Warning during encoding: incompatible video parameters (5)
    Last message repeated 27 times
[mpegts @ 0x3da97a0] Non-monotonous DTS in output stream 0:0; previous: 1324800, current: 1324800; changing to 1324801. This may result in incorrect timestamps in the output file.
[h264_qsv @ 0x3dcd420] Warning during encoding: incompatible video parameters (5)
    Last message repeated 27 times
[mpegts @ 0x3da97a0] Non-monotonous DTS in output stream 0:0; previous: 1432800, current: 1432800; changing to 1432801. This may result in incorrect timestamps in the output file.
[h264_qsv @ 0x3dcd420] Warning during encoding: incompatible video parameters (5)
    Last message repeated 13 times
[mpeg2_qsv @ 0x3da8840] A decode call did not consume any data: expect more data at input (-10)
    Last message repeated 1 times
[h264_qsv @ 0x3dcd420] Warning during encoding: incompatible video parameters (5)
[mpeg2_qsv @ 0x3da8840] A decode call did not consume any data: expect more data at input (-10)
    Last message repeated 1 times
frame=  368 fps=0.0 q=-0.0 Lsize=    6210kB time=00:00:16.92 bitrate=3006.8kbits/s dup=0 drop=5 speed=22.1x
video:5322kB audio:389kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 8.741579%

If i try to use software decoder, and qsv encoder, i get partial HW acceleration, in practice it's software because and get load on CPU and no GPU:

ffmpeg -i udp://@239.0.1.1:1234 -vf yadif -c:v h264_qsv -b:v 3M -maxrate 3M -look_ahead 0 -c:a copy -f mpegts udp://127.0.0.1:1234
ffmpeg version 3.3.1 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
  configuration: --enable-libmfx --enable-nonfree --enable-ffplay
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
[mpeg2video @ 0x2e1d000] Invalid frame dimensions 0x0.
    Last message repeated 1 times
Input #0, mpegts, from 'udp://@239.0.1.1:1234':
  Duration: N/A, start: 23492.598644, bitrate: 4218 kb/s
  Program 157
    Metadata:
      service_name    : Info tv
      service_provider: Noname
    Stream #0:0[0x623]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], 4026 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x624]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s (clean effects)
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (h264_qsv))
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[h264_qsv @ 0x2e119a0] Warning in encoder initialization: partial acceleration (4)
Output #0, mpegts, to 'udp://127.0.0.1:1234':
  Metadata:
    encoder         : Lavf57.71.100
    Stream #0:0: Video: h264 (h264_qsv), nv12, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 3000 kb/s, 25 fps, 90k tbn, 25 tbc
    Metadata:
      encoder         : Lavc57.89.100 h264_qsv
    Side data:
      cpb: bitrate max/min/avg: 3000000/0/3000000 buffer size: 0 vbv_delay: -1
    Stream #0:1: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s (clean effects)
frame=  272 fps= 44 q=-0.0 Lsize=    4486kB time=00:00:11.28 bitrate=3258.0kbits/s speed=1.83x
video:3864kB audio:262kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 8.732510%

Tested on OS: Ubuntu 16.04LTS + Intel Media SDK 2017 r2 Centos 7.2.1511 + Intel Media SDK 2017 r2 Centos 7.1.1503 + Intel Media SDK 2016

% vainfo
error: can't connect to X server!
libva info: VA-API version 0.99.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.99 (libva 1.67.0.pre1)
vainfo: Driver version: 16.5.1.59511-ubit
vainfo: Supported profile and entrypoints
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: <unknown entrypoint>
      VAProfileH264ConstrainedBaseline: <unknown entrypoint>
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264Main               : <unknown entrypoint>
      VAProfileH264Main               : <unknown entrypoint>
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264High               : <unknown entrypoint>
      VAProfileH264High               : <unknown entrypoint>
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointEncPicture
      VAProfileVP8Version0_3          : VAEntrypointEncSlice
      VAProfileVP8Version0_3          : VAEntrypointVLD
      VAProfileVP8Version0_3          : <unknown entrypoint>
      VAProfileVP9Profile0            : <unknown entrypoint>
      <unknown profile>               : VAEntrypointVideoProc
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileNone                   : <unknown entrypoint>
sys_analyzer_linux.py
--------------------------
Hardware readiness checks:
--------------------------
 [ OK ] Processor name: Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz
--------------------------
OS readiness checks:
--------------------------
 [ OK ] GPU visible to OS
--------------------------
Intel(R) Media Server Studio Install:
--------------------------
 [ OK ] user in video group
 [ OK ] libva.so.1 found
 [ OK ] vainfo reports valid codec entry points
 [ OK ] /dev/dri/renderD128 connects to Intel i915

--------------------------
Media SDK Plugins available:
(for more info see /opt/intel/mediasdk/plugins/plugins.cfg)
--------------------------
    H264LA Encoder      = 588f1185d47b42968dea377bb5d0dcb4
    VP8 Decoder         = f622394d8d87452f878c51f2fc9b4131
    HEVC Decoder        = 33a61c0b4c27454ca8d85dde757c6f8e
    HEVC Encoder        = 6fadc791a0c2eb479ab6dcd5ea9da347
--------------------------
Component Smoke Tests:
--------------------------
 [ OK ] Media SDK HW API level:1.21
 [ OK ] Media SDK SW API level:1.21
 [ OK ] OpenCL check:platform:Intel(R) OpenCL GPU OK CPU FAIL

I have tested the same transcoding scenarios with ffmpeg 2.8.11 and it works in all cases.


#6500 Fails to playback a certain .WAV audio file avformat defect Jun 28, 2017

Summary of the bug: ffplay fails to playback a certain .WAV audio file. VLC and other non-ffmpeg-based players can play it correctly; I'd assume the audio file is malformed in some way because it seems to be detected as a MP3 file. How to reproduce:

% ffplay -i FF_massfowl.wav
FF_massfowl.wav: Invalid data found when processing input0B f=0/0

#6561 Certain DTS in WAV can't be recognised avformat defect Aug 2, 2017

Summary of the bug: The attachments are two DTS files. One is 2ch/44.1KHz, the other is 2ch/88.2KHz. FFmpeg fails to recognise either of them. They can be correctly decoded by VLC and MPC-BE. How to reproduce:

2ch/44.1KHz

ffmpeg -i /Volumes/RamDisk/MUSIC_441_1234.wav -f null -
ffmpeg version 3.3.git Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 8.1.0 (clang-802.0.42)
  configuration: --optflags=-Ofast --prefix=/usr/local --extra-cflags='-march=haswell -mtune=intel -m64 -minline-all-stringops -fomit-frame-pointer -fforce-addr -finline-functions -funit-at-a-time -funroll-loops -ffunction-sections -fdata-sections -Ofast -pipe -fomit-frame-pointer -ftree-vectorize' --target-os=darwin --arch=x86_64 --cpu=haswell --disable-runtime-cpudetect --disable-debug --disable-opencl --disable-avdevice --disable-ffplay --disable-ffprobe --disable-postproc --disable-ffserver --disable-devices --disable-avresample --disable-indev=qtkit --disable-doc --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-gpl --enable-nonfree
  libavutil      55. 69.100 / 55. 69.100
  libavcodec     57.102.100 / 57.102.100
  libavformat    57. 76.100 / 57. 76.100
  libavfilter     6. 95.100 /  6. 95.100
  libswscale      4.  7.101 /  4.  7.101
  libswresample   2.  8.100 /  2.  8.100
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, wav, from '/Volumes/RamDisk/MUSIC_441_1234.wav':
  Metadata:
    encoder         : Lavf57.76.100
  Duration: 00:00:07.01, bitrate: 1411 kb/s
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s16le (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf57.76.100
    Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
    Metadata:
      encoder         : Lavc57.102.100 pcm_s16le
size=N/A time=00:00:07.01 bitrate=N/A speed=2.13e+03x    
video:0kB audio:1208kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

2ch/88.2KHz

ffmpeg -i /Volumes/RamDisk/MUSIC_882_1234.wav -f null -
ffmpeg version 3.3.git Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 8.1.0 (clang-802.0.42)
  configuration: --optflags=-Ofast --prefix=/usr/local --extra-cflags='-march=haswell -mtune=intel -m64 -minline-all-stringops -fomit-frame-pointer -fforce-addr -finline-functions -funit-at-a-time -funroll-loops -ffunction-sections -fdata-sections -Ofast -pipe -fomit-frame-pointer -ftree-vectorize' --target-os=darwin --arch=x86_64 --cpu=haswell --disable-runtime-cpudetect --disable-debug --disable-opencl --disable-avdevice --disable-ffplay --disable-ffprobe --disable-postproc --disable-ffserver --disable-devices --disable-avresample --disable-indev=qtkit --disable-doc --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-gpl --enable-nonfree
  libavutil      55. 69.100 / 55. 69.100
  libavcodec     57.102.100 / 57.102.100
  libavformat    57. 76.100 / 57. 76.100
  libavfilter     6. 95.100 /  6. 95.100
  libswscale      4.  7.101 /  4.  7.101
  libswresample   2.  8.100 /  2.  8.100
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, wav, from '/Volumes/RamDisk/MUSIC_882_1234.wav':
  Metadata:
    encoder         : Lavf57.76.100
  Duration: 00:00:07.01, bitrate: 1411 kb/s
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s16le (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf57.76.100
    Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
    Metadata:
      encoder         : Lavc57.102.100 pcm_s16le
size=N/A time=00:00:07.01 bitrate=N/A speed=2.22e+03x    
video:0kB audio:1208kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown}}}

#6563 LPCM is recognised as MLP in VOB avformat defect Aug 2, 2017

Summary of the bug: The sample file can be downloaded here. http://s1.demo-world.eu/sd_trailers.php?file=dts_sparks_sprite_suite_mix-DWEU.vob
The second audio track is LPCM while FFmpeg recognises as MLP and fails to decode it. How to reproduce:

ffmpeg -i /Volumes/RamDisk/dts_sparks_sprite_suite_mix-DWEU.vob -f null -
ffmpeg version 3.3.git Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 8.1.0 (clang-802.0.42)
  configuration: --optflags=-Ofast --prefix=/usr/local --extra-cflags='-march=haswell -mtune=intel -m64 -minline-all-stringops -fomit-frame-pointer -fforce-addr -finline-functions -funit-at-a-time -funroll-loops -ffunction-sections -fdata-sections -Ofast -pipe -fomit-frame-pointer -ftree-vectorize' --target-os=darwin --arch=x86_64 --cpu=haswell --disable-runtime-cpudetect --disable-debug --disable-opencl --disable-avdevice --disable-ffplay --disable-ffprobe --disable-postproc --disable-ffserver --disable-devices --disable-avresample --disable-indev=qtkit --disable-doc --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-gpl --enable-nonfree
  libavutil      55. 69.100 / 55. 69.100
  libavcodec     57.102.100 / 57.102.100
  libavformat    57. 76.100 / 57. 76.100
  libavfilter     6. 95.100 /  6. 95.100
  libswscale      4.  7.101 /  4.  7.101
  libswresample   2.  8.100 /  2.  8.100
[mpeg @ 0x7fe625002600] start time for stream 3 is not set in estimate_timings_from_pts
[mpeg @ 0x7fe625002600] Could not find codec parameters for stream 3 (Audio: mlp, 0 channels): unspecified sample format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpeg, from '/Volumes/RamDisk/dts_sparks_sprite_suite_mix-DWEU.vob':
  Duration: 00:00:18.68, start: 0.300300, bitrate: 9240 kb/s
    Stream #0:0[0x1bf]: Data: dvd_nav_packet
    Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, top first), 720x480 [SAR 32:27 DAR 16:9], 6000 kb/s, 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc
    Stream #0:2[0x88]: Audio: dts (DTS-ES), 48000 Hz, 6.1, fltp, 1536 kb/s
    Stream #0:3[0xa1]: Audio: mlp, 0 channels
Stream mapping:
  Stream #0:1 -> #0:0 (mpeg2video (native) -> wrapped_avframe (native))
  Stream #0:2 -> #0:1 (dts (dca) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf57.76.100
    Stream #0:0: Video: wrapped_avframe, yuv420p(top coded first (swapped)), 720x480 [SAR 32:27 DAR 16:9], q=2-31, 200 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc
    Metadata:
      encoder         : Lavc57.102.100 wrapped_avframe
    Stream #0:1: Audio: pcm_s16le, 48000 Hz, 6.1, s16, 5376 kb/s
    Metadata:
      encoder         : Lavc57.102.100 pcm_s16le
[null @ 0x7fe62503e200] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 475 >= 475
frame=  504 fps=0.0 q=-0.0 Lsize=N/A time=00:00:18.68 bitrate=N/A speed=63.5x    
video:260kB audio:12264kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

#6581 ffmpeg refuses to process Indeo3 resolutions not a multiple of 4. avcodec defect Aug 12, 2017

Summary of the bug:

ffmpeg refuses to process Indeo3 resolutions not a multiple of 4. Attached is a video extracted from a game that appears to have such a resolution

How to reproduce:

Attempt to play attached video. Video extracted from a game via

ffmpeg -i SCIGUY.MOV -c copy

(and some manipulation of that file's first few bytes to extract different videos. Note that this process has, in fact, resulted in valid videos, see https://github.com/Sgeo/therock_decoder ) 

ffmpeg version:

C:\Users\Sgeo\Documents\Dev\Rust\therock_decoder>ffmpeg --help
ffmpeg version N-86950-g1bef008 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 7.1.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --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-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --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-zlib
  libavutil      55. 70.100 / 55. 70.100
  libavcodec     57.102.100 / 57.102.100
  libavformat    57. 76.100 / 57. 76.100
  libavdevice    57.  7.100 / 57.  7.100
  libavfilter     6. 98.100 /  6. 98.100
  libswscale      4.  7.102 /  4.  7.102
  libswresample   2.  8.100 /  2.  8.100
  libpostproc    54.  6.100 / 54.  6.100
Hyper fast Audio and Video encoder


built on ...

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


#6591 Unable to read mp4/h264 caused by SPS decoding failure avcodec defect Aug 16, 2017

Attempting to transcode the attached sample file results in an error for both 3.3.2 as well as git version N-86933-g80bc64.

This has been previously been known to work with version n2.7.2-3-gb1863e3.

Example shown for 3.3.2 (git version looks identical)

% ffmpeg -i test.mp4 -c:v libx264 -c:a aac test2.mp4
ffmpeg version 3.3.2 Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 8.1.0 (clang-802.0.42)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/3.3.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libavresample   3.  5.  0 /  3.  5.  0
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
Splitting the commandline.
Reading option '-i' ... matched as input url with argument 'test.mp4'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'libx264'.
Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'aac'.
Reading option 'test2.mp4' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Successfully parsed a group of options.
Parsing a group of options: input url test.mp4.
Successfully parsed a group of options.
Opening an input file: test.mp4.
[NULL @ 0x7fc902001000] Opening 'test.mp4' for reading
[file @ 0x7fc9016000a0] Setting default whitelist 'file,crypto'
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc902001000] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc902001000] ISO: File Type Major Brand: f4v 
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc902001000] Unknown dref type 0x206c7275 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc902001000] Unknown dref type 0x206c7275 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc902001000] rfps: 24.916667 0.010848
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc902001000] rfps: 24.916667 0.010848
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc902001000] rfps: 25.000000 0.000140
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc902001000] rfps: 25.083333 0.007202
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc902001000] rfps: 25.083333 0.007202
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc902001000] rfps: 50.000000 0.000558
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc902001000] Before avformat_find_stream_info() pos: 887991 bytes read:35746 seeks:1 nb_streams:2
[h264 @ 0x7fc902001600] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x7fc902001600] Overread VUI by 2 bits
[h264 @ 0x7fc902001600] SPS decoding failure, trying again after escaping the NAL
[h264 @ 0x7fc902001600] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x7fc902001600] Overread VUI by 2 bits
[h264 @ 0x7fc902001600] Decoding sps 0 from avcC failed
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc902001000] Failed to open codec in avformat_find_stream_info
[h264 @ 0x7fc902001600] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x7fc902001600] Overread VUI by 2 bits
[h264 @ 0x7fc902001600] SPS decoding failure, trying again after escaping the NAL
[h264 @ 0x7fc902001600] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x7fc902001600] Overread VUI by 2 bits
[h264 @ 0x7fc902001600] Decoding sps 0 from avcC failed
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc902001000] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc902001000] After avformat_find_stream_info() pos: 194497 bytes read:232354 seeks:2 frames:27
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
  Metadata:
    major_brand     : f4v 
    minor_version   : 0
    compatible_brands: isommp42m4v 
    creation_time   : 2014-10-07T14:35:54.000000Z
  Duration: 00:00:04.12, start: 0.000000, bitrate: 1725 kb/s
    Stream #0:0(eng), 26, 1/90000: Video: h264 (avc1 / 0x31637661), none, 1280x720, 1655 kb/s, 25.01 fps, 25 tbr, 90k tbn, 180k tbc (default)
    Metadata:
      creation_time   : 2014-10-07T14:35:54.000000Z
      handler_name    : WowzaStreamingEngine
      encoder         : WowzaStreamingEngine
    Stream #0:1(eng), 1, 1/90000: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 65 kb/s (default)
    Metadata:
      creation_time   : 2014-10-07T14:35:54.000000Z
      handler_name    : WowzaStreamingEngine
Successfully opened the file.
Parsing a group of options: output url test2.mp4.
Applying option c:v (codec name) with argument libx264.
Applying option c:a (codec name) with argument aac.
Successfully parsed a group of options.
Opening an output file: test2.mp4.
[file @ 0x7fc901600ec0] Setting default whitelist 'file,crypto'
Successfully opened the file.
detected 8 logical cores
[h264 @ 0x7fc902802c00] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x7fc902802c00] Overread VUI by 2 bits
[h264 @ 0x7fc902802c00] SPS decoding failure, trying again after escaping the NAL
[h264 @ 0x7fc902802c00] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x7fc902802c00] Overread VUI by 2 bits
[h264 @ 0x7fc902802c00] Decoding sps 0 from avcC failed
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Error while opening decoder for input stream #0:0 : Invalid data found when processing input
[AVIOContext @ 0x7fc901600f40] Statistics: 0 seeks, 0 writeouts
[AVIOContext @ 0x7fc9016001e0] Statistics: 232354 bytes read, 2 seeks

FFprobe suffers from the same failure:

% ffprobe test.mp4
ffprobe version 3.3.2 Copyright (c) 2007-2017 the FFmpeg developers
  built with Apple LLVM version 8.1.0 (clang-802.0.42)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/3.3.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libavresample   3.  5.  0 /  3.  5.  0
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
[NULL @ 0x7fd1be002a00] Opening 'test.mp4' for reading
[file @ 0x7fd1bc402680] Setting default whitelist 'file,crypto'
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd1be002a00] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd1be002a00] ISO: File Type Major Brand: f4v 
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd1be002a00] Unknown dref type 0x206c7275 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd1be002a00] Unknown dref type 0x206c7275 size 12
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd1be002a00] rfps: 24.916667 0.010848
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd1be002a00] rfps: 24.916667 0.010848
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd1be002a00] rfps: 25.000000 0.000140
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd1be002a00] rfps: 25.083333 0.007202
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd1be002a00] rfps: 25.083333 0.007202
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd1be002a00] rfps: 50.000000 0.000558
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd1be002a00] Before avformat_find_stream_info() pos: 887991 bytes read:35746 seeks:1 nb_streams:2
[h264 @ 0x7fd1be00b600] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x7fd1be00b600] Overread VUI by 2 bits
[h264 @ 0x7fd1be00b600] SPS decoding failure, trying again after escaping the NAL
[h264 @ 0x7fd1be00b600] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x7fd1be00b600] Overread VUI by 2 bits
[h264 @ 0x7fd1be00b600] Decoding sps 0 from avcC failed
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd1be002a00] Failed to open codec in avformat_find_stream_info
[h264 @ 0x7fd1be00b600] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x7fd1be00b600] Overread VUI by 2 bits
[h264 @ 0x7fd1be00b600] SPS decoding failure, trying again after escaping the NAL
[h264 @ 0x7fd1be00b600] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x7fd1be00b600] Overread VUI by 2 bits
[h264 @ 0x7fd1be00b600] Decoding sps 0 from avcC failed
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd1be002a00] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd1be002a00] After avformat_find_stream_info() pos: 194497 bytes read:232354 seeks:2 frames:27
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
  Metadata:
    major_brand     : f4v 
    minor_version   : 0
    compatible_brands: isommp42m4v 
    creation_time   : 2014-10-07T14:35:54.000000Z
  Duration: 00:00:04.12, start: 0.000000, bitrate: 1725 kb/s
    Stream #0:0(eng), 26, 1/90000: Video: h264 (avc1 / 0x31637661), none, 1280x720, 1655 kb/s, 25.01 fps, 25 tbr, 90k tbn, 180k tbc (default)
    Metadata:
      creation_time   : 2014-10-07T14:35:54.000000Z
      handler_name    : WowzaStreamingEngine
      encoder         : WowzaStreamingEngine
    Stream #0:1(eng), 1, 1/90000: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 65 kb/s (default)
    Metadata:
      creation_time   : 2014-10-07T14:35:54.000000Z
      handler_name    : WowzaStreamingEngine
[h264 @ 0x7fd1bc800000] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x7fd1bc800000] Overread VUI by 2 bits
[h264 @ 0x7fd1bc800000] SPS decoding failure, trying again after escaping the NAL
[h264 @ 0x7fd1bc800000] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x7fd1bc800000] Overread VUI by 2 bits
[h264 @ 0x7fd1bc800000] Decoding sps 0 from avcC failed
Could not open codec for input stream 0

Working version:

% ffmpeg -i test.mp4 -c:v libx264 -c:a libfaac test2.mp4
ffmpeg version n2.7.2-3-gb1863e3 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (Debian 4.9.2-10)
  configuration: --prefix=/var/transcoder/dist/package/usr --enable-libspeex --enable-libfaac --enable-libfdk-aac --enable-libx264 --enable-gpl --enable-libmp3lame --enable-libvorbis --enable-pthreads --enable-postproc --enable-nonfree --enable-librtmp --enable-shared --enable-libtheora --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libvpx --disable-demuxer='hls,applehttp' --disable-protocol=hls
  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
  libpostproc    53.  3.100 / 53.  3.100
[h264 @ 0xba2fe0] Overread VUI by 2 bits
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
  Metadata:
    major_brand     : f4v 
    minor_version   : 0
    compatible_brands: isommp42m4v 
    creation_time   : 2014-10-07 14:35:54
  Duration: 00:00:04.12, start: 0.000000, bitrate: 1725 kb/s
    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv), 1280x720, 1655 kb/s, 25.01 fps, 25 tbr, 90k tbn, 180k tbc (default)
    Metadata:
      creation_time   : 2014-10-07 14:35:54
      handler_name    : WowzaStreamingEngine
      encoder         : WowzaStreamingEngine
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 65 kb/s (default)
    Metadata:
      creation_time   : 2014-10-07 14:35:54
      handler_name    : WowzaStreamingEngine
File 'test2.mp4' already exists. Overwrite ? [y/N] y
[libx264 @ 0xd59d20] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0xd59d20] profile High, level 3.1
[libx264 @ 0xd59d20] 264 - core 146 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - 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=12 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=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[h264 @ 0x1264ae0] Overread VUI by 2 bits
Output #0, mp4, to 'test2.mp4':
  Metadata:
    major_brand     : f4v 
    minor_version   : 0
    compatible_brands: isommp42m4v 
    encoder         : Lavf56.36.100
    Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1280x720, q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
    Metadata:
      creation_time   : 2014-10-07 14:35:54
      handler_name    : WowzaStreamingEngine
      encoder         : Lavc56.41.100 libx264
    Stream #0:1(eng): Audio: aac (libfaac) ([64][0][0][0] / 0x0040), 44100 Hz, mono, s16, 128 kb/s (default)
    Metadata:
      creation_time   : 2014-10-07 14:35:54
      handler_name    : WowzaStreamingEngine
      encoder         : Lavc56.41.100 libfaac
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (aac (native) -> aac (libfaac))
Press [q] to stop, [?] for help
[h264 @ 0x13937c0] Overread VUI by 2 bits
[h264 @ 0x1264ae0] Overread VUI by 2 bitsB time=00:00:02.85 bitrate= 502.0kbits/s    
frame=  103 fps= 52 q=-1.0 Lsize=     620kB time=00:00:04.04 bitrate=1256.9kbits/s    
video:577kB audio:37kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.874109%
[libx264 @ 0xd59d20] frame I:2     Avg QP:18.74  size: 19168
[libx264 @ 0xd59d20] frame P:65    Avg QP:20.67  size:  6911
[libx264 @ 0xd59d20] frame B:36    Avg QP:22.38  size:  2860
[libx264 @ 0xd59d20] consecutive B-frames: 46.6% 17.5%  8.7% 27.2%
[libx264 @ 0xd59d20] mb I  I16..4: 35.5% 58.8%  5.7%
[libx264 @ 0xd59d20] mb P  I16..4:  2.2%  3.4%  0.1%  P16..4: 45.0%  5.2%  4.7%  0.0%  0.0%    skip:39.3%
[libx264 @ 0xd59d20] mb B  I16..4:  0.1%  0.1%  0.0%  B16..8: 42.7%  0.8%  0.0%  direct: 2.7%  skip:53.5%  L0:47.6% L1:52.0% BI: 0.4%
[libx264 @ 0xd59d20] 8x8 transform intra:59.1% inter:90.2%
[libx264 @ 0xd59d20] coded y,uvDC,uvAC intra: 31.7% 42.4% 1.6% inter: 8.4% 18.2% 0.0%
[libx264 @ 0xd59d20] i16 v,h,dc,p: 23% 26% 23% 28%
[libx264 @ 0xd59d20] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 21% 42%  3%  2%  2%  3%  2%  7%
[libx264 @ 0xd59d20] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 27% 19%  5%  6%  6%  4%  3% 10%
[libx264 @ 0xd59d20] i8c dc,h,v,p: 59% 24% 15%  3%
[libx264 @ 0xd59d20] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0xd59d20] ref P L0: 75.3%  4.1% 14.8%  5.8%
[libx264 @ 0xd59d20] ref B L0: 89.3%  9.5%  1.1%
[libx264 @ 0xd59d20] ref B L1: 95.3%  4.7%
[libx264 @ 0xd59d20] kb/s:1146.66

Note that because of the older version, libfaac is used instead of aac but the end result is the same (also tried with other output formats, it makes no difference to either the working or non-working versions.


#6658 Dash demuxer segfault avformat defect Sep 13, 2017

Summary of the bug: How to reproduce:

% ffmpeg -i http://download.tsi.telecom-paristech.fr/gpac/dataset/dash/uhd/dashevc-main-6s/dashevc-main-6s.mpd
ffmpeg version N-87286-g6ce4a635ed Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
  configuration: --enable-gpl --enable-nonfree --enable-libx264 --enable-libopus --enable-shared --enable-libcaca --enable-openssl --enable-libxml2
  libavutil      55. 74.100 / 55. 74.100
  libavcodec     57.105.100 / 57.105.100
  libavformat    57. 82.100 / 57. 82.100
  libavdevice    57.  8.100 / 57.  8.100
  libavfilter     6.105.100 /  6.105.100
  libswscale      4.  7.103 /  4.  7.103
  libswresample   2.  8.100 /  2.  8.100
  libpostproc    54.  6.100 / 54.  6.100
[2]    26794 segmentation fault (core dumped)  ffmpeg -i 

Backtrace:

Program received signal SIGSEGV, Segmentation fault.
0x00007fbf08d83ce3 in ff_dash_fill_tmpl_params (dst=dst@entry=0x7fffffffb7b0 " ", 
    buffer_size=buffer_size@entry=4096, template=0x0, rep_id=rep_id@entry=0, number=0, 
    bit_rate=bit_rate@entry=0, time=0) at libavformat/dash.c:102
102	    while (dst_pos < buffer_size - 1 && *t_cur) {
(gdb) bt
#0  0x00007fbf08d83ce3 in ff_dash_fill_tmpl_params (dst=dst@entry=0x7fffffffb7b0 " ", 
    buffer_size=buffer_size@entry=4096, template=0x0, rep_id=rep_id@entry=0, number=0, 
    bit_rate=bit_rate@entry=0, time=0) at libavformat/dash.c:102
#1  0x00007fbf08d87c5d in get_current_fragment (pls=pls@entry=0x66e6e0)
    at libavformat/dashdec.c:1253
#2  0x00007fbf08d87f24 in read_data (opaque=0x66e6e0, buf=0x67e060 "Ȓ\030\006\277\177", 
    buf_size=32768) at libavformat/dashdec.c:1406
#3  0x00007fbf08d78157 in fill_buffer (s=0x66e6e8) at libavformat/aviobuf.c:573
#4  avio_read (s=s@entry=0x66e6e8, buf=0x66ef00 "\270\222\030\006\277\177", 
    size=size@entry=2048) at libavformat/aviobuf.c:667
#5  0x00007fbf08da1ed3 in av_probe_input_buffer2 (pb=pb@entry=0x66e6e8, 
    fmt=fmt@entry=0x7fffffffc968, filename=filename@entry=0x7fbf08ee021c "", 
    logctx=logctx@entry=0x0, offset=offset@entry=0, max_probe_size=1048576, 
    max_probe_size@entry=0) at libavformat/format.c:314
#6  0x00007fbf08da20e9 in av_probe_input_buffer (pb=pb@entry=0x66e6e8, 
    fmt=fmt@entry=0x7fffffffc968, filename=filename@entry=0x7fbf08ee021c "", 
    logctx=logctx@entry=0x0, offset=offset@entry=0, max_probe_size=max_probe_size@entry=0)
    at libavformat/format.c:368
#7  0x00007fbf08d84536 in reopen_demux_for_component (s=s@entry=0x669e20, 
    pls=pls@entry=0x66e6e0) at libavformat/dashdec.c:1530
#8  0x00007fbf08d84dd5 in open_demux_for_component (s=s@entry=0x669e20, pls=0x66e6e0)
    at libavformat/dashdec.c:1565
#9  0x00007fbf08d8841d in dash_read_header (s=0x669e20) at libavformat/dashdec.c:1615
#10 0x00007fbf08eaf0ee in avformat_open_input (ps=ps@entry=0x7fffffffcb88, 
    filename=filename@entry=0x7fffffffde40 "http://download.tsi.telecom-paristech.fr/gpac/dataset/dash/uhd/dashevc-main-6s/dashevc-main-6s.mpd", fmt=fmt@entry=0x0, options=0x669c28)
    at libavformat/utils.c:595
#11 0x0000000000417b55 in open_input_file (o=o@entry=0x7fffffffcd40, 
    filename=<optimized out>) at ffmpeg_opt.c:1060
#12 0x0000000000419a23 in open_files (l=0x669bd8, l=0x669bd8, 
    open_file=0x4160d0 <open_input_file>, inout=0x43299f "input") at ffmpeg_opt.c:3278
#13 ffmpeg_parse_options (argc=argc@entry=3, argv=argv@entry=0x7fffffffda98)
    at ffmpeg_opt.c:3318
#14 0x0000000000408542 in main (argc=3, argv=0x7fffffffda98) at ffmpeg.c:4786

#244 rm muxer fails with frames larger than 64k byte avformat defect May 26, 2011

pbm file: https://ffmpeg.org/trac/ffmpeg/ticket/193

When I convert "bikerace.pbm" file to rv10

ffmpeg -i C:\bikerace.pbm -vcodec rv10 out.rm

everything works ok, but when I try to decode it I get error:

C:\>ffmpeg -i out.rm out.avi
ffmpeg version git-N-30155-g01a73d6, Copyright (c) 2000-2011 the FFmpeg develope
rs
  built on May 23 2011 03:43:18 with gcc 4.5.3
  configuration: --enable-gpl --enable-version3 --enable-memalign-hack --enable-
runtime-cpudetect --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 --pkg-config=pkg-confi
g
  libavutil    51.  2. 1 / 51.  2. 1
  libavcodec   53.  6. 0 / 53.  6. 0
  libavformat  53.  2. 0 / 53.  2. 0
  libavdevice  53.  0. 0 / 53.  0. 0
  libavfilter   2. 10. 0 /  2. 10. 0
  libswscale    0. 14. 0 /  0. 14. 0
  libpostproc  51.  2. 0 / 51.  2. 0
Input #0, rm, from 'out.rm':
  Metadata:
    title           :
    author          :
    copyright       :
    comment         :
  Duration: 00:00:00.04, start: 0.000000, bitrate: 33538 kb/s
    Stream #0.0: Video: rv10, yuv420p, 550x423, 200 kb/s, 25 tbr, 1k tbn, 25 tbc

[buffer @ 01DE1620] w:550 h:423 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:
Output #0, avi, to 'out.avi':
  Metadata:
    INAM            :
    author          :
    ICOP            :
    ICMT            :
    ISFT            : Lavf53.2.0
    Stream #0.0: Video: mpeg4, yuv420p, 550x423, q=2-31, 200 kb/s, 25 tbn, 25 tb
c
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop, [?] for help
[rv10 @ 02360780] illegal ac vlc code at 15x7
[rv10 @ 02360780] ERROR at MB 15 7
frame=    0 fps=  0 q=0.0 Lsize=       6kB time=10000000000.00 bitrate=   0.0kbi
ts/s
video:0kB audio:0kB global headers:0kB muxing overhead 1.#INF00%

I think this is a bug in RV10 / RV20 encoder that it doesn't check which picture sizes are valid for this codec, so probably a check like for H263 codec should be added to these codecs as well (I don't know which picture sizes are valid for RV10 and RV10, but for example 320x240 resolution seems to work correctly, but for example is not allowed for h263).

libavcodec/mpegvideo_env.c:

    case CODEC_ID_H263:
        if (!CONFIG_H263_ENCODER)  return -1;
        if (ff_match_2uint16(h263_format, FF_ARRAY_ELEMS(h263_format), s->width, s->height) == 8) {
            av_log(avctx, AV_LOG_ERROR, "The specified picture size of %dx%d is not valid for the H.263 codec.\nValid sizes are 128x96, 176x144, 352x288, 704x576, and 1408x1152. Try H.263+.\n", s->width, s->height);
            return -1;
        }
        s->out_format = FMT_H263;
        s->obmc= (avctx->flags & CODEC_FLAG_OBMC) ? 1:0;
        avctx->delay=0;
        s->low_delay=1;
        break;

[...]

    case CODEC_ID_RV10:
        s->out_format = FMT_H263;
        avctx->delay=0;
        s->low_delay=1;
        break;
    case CODEC_ID_RV20:
        s->out_format = FMT_H263;
        avctx->delay=0;
        s->low_delay=1;
        s->modified_quant=1;
        s->h263_aic=1;
        s->h263_plus=1;
        s->loop_filter=1;
        s->unrestricted_mv= 0;
        break;

#259 framerate detection does not work properly. (mkv with default duration != actual average duration) undetermined defect Jun 1, 2011

Frameratedetection does not work well on some of my files:

ffmpeg -i wrong_framerate.mkv: [matroska,webm @ 0x276e420] Estimating duration from bitrate, this may be inaccurate Input #0, matroska,webm, from 'wrong_framerate.mkv':

Duration: 01:47:42.18, start: 0.000000, bitrate: 1984 kb/s

Stream #0.0: Video: vc1 (Advanced), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 1k tbn, 29.97 tbc (default) Stream #0.1: Audio: eac3, 48000 Hz, 5.1, s16, 1536 kb/s (default) Stream #0.2: Audio: eac3, 48000 Hz, 5.1, s16, 448 kb/s

At least one output file must be specified

ffmpeg version: git-N-30444-geb5a3ab correct framerate: 23.98/24 fps same false framerate detection with latest VLC xbmc does play it with the correct framerate and does play it without problems.


#443 -color_range AVOption appears to do nothing documentation defect Sep 7, 2011

according to source -color_range <int> can take the following values:- "0" auto "1" 16-235 "2" 0-255

and it functions on encode and decode. However altering the option value appears to make no change to the way media is processed, either on input, or output.

Attached stills sources and script to generate outputs using variations in value attached.


#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.


#730 Encoded video plays too fast for network input undetermined defect Dec 10, 2011

Many IP cameras have MJPEG streams that vary in framerate depending network conditions, ambient light, just plain slow processors on the camera itself, etc. This can be anything from 8fps to 30fps - even if the camera is set to a fixed framerate.

Right now, if you set a framerate in ffmpeg, the duration ffmpeg thinks the movie is does not match reality, sometimes by a factor of more than 3x. While ffmpeg supports variable framerate it requires timestamps which in this case do not exist.

Gstreamer has an option called do-timestamp=true that would be very useful in ffmpeg. From their website: "Timestamps are set on the buffers as they arrive from the camera. These are used by the mime/multipart demultiplexer to emit timestamps on the JPEG-encoded video frame buffers. This allows the multiplexer to timestamp the frames in the resulting file."

This would allow ffmpeg to set the timestamp of "now" on every single frame as it comes in and know the correct duration of the recording. This means correct duration, a/v sync and just being able to seek to specific parts of the recording.


#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

#819 ffmpeg fails to read an image if the image filename contains an accent (win32) avformat defect Dec 22, 2011

When I want to convert a JPG file to a video, ffmpeg fail if the JPG filename contains an accent. Plateform is Windows Vista (6.0.6002) Command line :

xx:>dir
11/07/2009  11:15             7 536 Vidéo000-title.png

xx:>ffmpeg.exe -y -i Vidéo000-title.png -target pal-dvd -aspect 16/9 -loop 1 -r 25 -t 10 Vidéo000-title.mpg

ffmpeg version N-35966-g1d0ae92, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 19 2011 13:01:15 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 --enable-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. 32. 0 / 51. 32. 0
  libavcodec   53. 46. 1 / 53. 46. 1
  libavformat  53. 27. 0 / 53. 27. 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
Vidéo000-title.png: No such file or directory

Same result with double-quote escaping, or fullpath to the file. If I remove the accentued char it works.

ffplay can play this image.


#912 mpegts muxer does not follow TS buffering requirements specified in iso13818-1 section 2.4.2.3 avformat defect Jan 11, 2012

The mpegts muxer in ffmpeg (tested with 0.9.1) does not respect the 512 byte transport buffer for each pid as described in iso13818-1 section 2.4.2.3.

Streams created with ffmpeg (with the muxrate option) have been seen to send over 100 packets in sequence (at least on video data) which exceeds the maximum buffer extraction rate for streams in the Main Level (as defined in iso13818-2 table 8-13). The same also applies to audio packets, albeit with different limits.

For any stream >18mbit/sec the maximum number of packets for a PID that can be inserted in sequence is 2 or 3 (assuming an empty buffer prior to insertion).

This can cause errors in decoding the ts on certain hardware. The packets should therefore be ordered appropriately in the stream to comply with the TS buffer limit of 512 bytes when the muxrate parameter is 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

#948 No audio in output when the audio starts late in VOB file avformat defect Jan 29, 2012

Here are the details about the issue:

Source: .VOB file extracted from DVD decrypter (first chapter of the movie). This has one video stream, one audio stream (AC3 5.1).

Issue: When I try to encode into any format, it reports 0 channels in ac3 stream and there is no audio track in the output. I tried with directly copying the AC3 stream, encoding AC3 to AAC, using analyzeduration option etc., But, the same file is working fine when I use Handbrake, MEncoder.

Source to download: You can download .VOB file here: http://poacric.blob.core.windows.net/$root/TestClip.zip Command Used: ffmpeg -i d:\testclip.vob -acodec copy d:\ffmpegout.mp4 Console output:

C:\ffmpeg>ffmpeg -i d:\testclip.vob -acode
c copy d:\ffmpegout.mp4
ffmpeg version N-35966-g1d0ae92, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 19 2011 13:10:19 with gcc 4.6.2
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3
 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzli
b --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-l
ibrtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-li
bvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-l
ibx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil    51. 32. 0 / 51. 32. 0
  libavcodec   53. 46. 1 / 53. 46. 1
  libavformat  53. 27. 0 / 53. 27. 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
[mpeg @ 0000000000497FD0] max_analyze_duration 5000000 reached at 5004667

Seems stream 0 codec frame rate differs from container frame rate: 59.94 (60000/
1001) -> 59.94 (60000/1001)
Input #0, mpeg, from 'd:\testclip.vob':
  Duration: 00:04:51.99, start: 0.316978, bitrate: 4939 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DA
R 16:9], 8000 kb/s, 23.98 fps, 59.94 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x80]: Audio: ac3, 0 channels
[buffer @ 00000000029E0BE0] w:720 h:480 pixfmt:yuv420p tb:1/1000000 sar:32/27 sw
s_param:
[libx264 @ 00000000027E0810] using SAR=32/27
[libx264 @ 00000000027E0810] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShu
ffle SSE4.2
[libx264 @ 00000000027E0810] profile High, level 3.1
[libx264 @ 00000000027E0810] 264 - core 119 r2106 07efeb4 - H.264/MPEG-4 AVC cod
ec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 r
ef=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_pski
p=1 chroma_qp_offset=-2 threads=12 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 di
rect=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 'd:\ffmpegout.mp4':
  Metadata:
    encoder         : Lavf53.27.0
    Stream #0:0: Video: h264 (![0][0][0] / 0x0021), yuv420p, 720x480 [SAR 32:27
DAR 16:9], q=-1--1, 60k tbn, 59.94 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video -> libx264)
Press [q] to stop, [?] for help
[mpeg2video @ 00000000004AB7C0] warning: first frame is no keyframe
    Last message repeated 1 times
frame=  117 fps=  0 q=31.0 size=     273kB time=00:00:00.98 bitrate=2273.2kbits/
frame=  205 fps=201 q=31.0 size=     602kB time=00:00:02.45 bitrate=2011.7kbits/
frame=  282 fps=183 q=31.0 size=     861kB time=00:00:03.73 bitrate=1887.4kbits/
frame=  367 fps=178 q=31.0 size=    1179kB time=00:00:05.15 bitrate=1874.1kbits/
frame=  466 fps=182 q=31.0 size=    1376kB time=00:00:06.80 bitrate=1655.8kbits/
frame=  475 fps=175 q=-1.0 Lsize=    1401kB time=00:00:07.89 bitrate=1454.6kbits
/s dup=273 drop=0
video:1396kB audio:0kB global headers:0kB muxing overhead 0.367020%
[libx264 @ 00000000027E0810] frame I:3     Avg QP:23.66  size: 48841
[libx264 @ 00000000027E0810] frame P:309   Avg QP:26.15  size:  4086
[libx264 @ 00000000027E0810] frame B:163   Avg QP:30.33  size:   122
[libx264 @ 00000000027E0810] consecutive B-frames: 49.5%  7.2% 21.5% 21.9%
[libx264 @ 00000000027E0810] mb I  I16..4: 25.5% 46.0% 28.5%
[libx264 @ 00000000027E0810] mb P  I16..4:  1.0%  0.6%  0.0%  P16..4: 22.2%  4.5
%  4.5%  0.0%  0.0%    skip:67.1%
[libx264 @ 00000000027E0810] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8: 11.1%  0.0
%  0.0%  direct: 0.0%  skip:88.9%  L0:57.4% L1:39.9% BI: 2.6%
[libx264 @ 00000000027E0810] 8x8 transform intra:40.0% inter:74.5%
[libx264 @ 00000000027E0810] coded y,uvDC,uvAC intra: 44.1% 49.2% 24.7% inter: 1
1.6% 4.2% 1.0%
[libx264 @ 00000000027E0810] i16 v,h,dc,p: 39% 42%  6% 13%
[libx264 @ 00000000027E0810] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 32% 37%  3%  2%
 2%  4%  3%  7%
[libx264 @ 00000000027E0810] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu:  6% 64% 14%  2%  2%
 2%  3%  2%  5%
[libx264 @ 00000000027E0810] i8c dc,h,v,p: 40% 48% 10%  2%
[libx264 @ 00000000027E0810] Weighted P-Frames: Y:0.3% UV:0.3%
[libx264 @ 00000000027E0810] ref P L0: 67.2% 13.1% 10.0%  9.8%
[libx264 @ 00000000027E0810] ref B L0: 98.4%  1.3%  0.3%
[libx264 @ 00000000027E0810] ref B L1: 96.1%  3.9%
[libx264 @ 00000000027E0810] kb/s:1442.51
Received signal 2: terminating.

Please let me know, if you need any more information.

I have been searching for a proper encoder from past 2 months and couldn't find a working solution.

My requirement: I have several DVDs and want to convert them into MP4/M2TS/TS files with 2 audio streams (AC3 5.1 and AAC). Also, want to add watermark on the output. Tried different encoders, but nothing is working as per my requirement. Thank you for your time!


#979 Unexpected Color Conversion (bgr->yuv vs rgb->yuv) swscale defect Feb 4, 2012

Input file is bgr24. Output file is yuv420p. If I instruct ffmpeg to convert to rgb24 first (instead of bgr24->yuv420p directly), the colors are slightly different.

Test input, exact command lines, and console output attached.


#1150 H264 Main remuxing to TS fails (missing timestamps) undetermined defect Mar 30, 2012

ffmpeg -i test.264 -vcodec copy -an -f mpegts test.ts

Fails with errors.

Earlier builds did produce TS streams but playback was jittery.

I know this is already a known but but I'm submitting this in order to provide test material.

version N-38772-gc2e3b56

attached files will include: test.pcap -- raw rtp session of H264 stream from a real-time encoder test.sdp -- matching sdp file to the live feed test.264 -- extracted raw H264 elementary stream from RTP feed, ie what is supposed to be able to be mux'd inside of ffmpeg. This is a H264 Main compliant stream (ie B frames).


#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.


#1438 Seeking in vob file with timestamp discontinuities fails avformat defect Jun 11, 2012

I am trying to transcode from *.vob to *.avi. As long as I don't use -ss option everything works as expected. With -ss option ffmpeg exits with following error:

[ac3 @ 0xa0c75a0] frame sync error Error while decoding stream #0:9 [mpeg @ 0xa0133c0] Adjusting PTS forward

Last message repeated 27 times

frame= 0 fps=0.0 q=0.0 Lsize= 27kB time=00:-17:-25.-89 bitrate= -0.2kbits/s dup=0 drop=7 video:0kB audio:16kB global headers:0kB muxing overhead 65.411932%

The command line that I use is: ffmpeg -ss 0:17:47 -t 01:28:48.4 -i '/A/film.vob' '/A/film.avi'

The information about input file: -> ffmpeg -v 9 -loglevel 99 -i '/A/film.vob' ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers

built on Jun 9 2012 00:17:30 with gcc 4.6.2 configuration: --cpu=i686 --prefix=/usr --disable-static --enable-shared --enable-gpl --enable-version3 --disable-ffserver --enable-x11grab --disable--amrnb --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora libavutil 51. 54.100 / 51. 54.100 libavcodec 54. 23.100 / 54. 23.100 libavformat 54. 6.100 / 54. 6.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 2. 77.100 / 2. 77.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100

[mpeg @ 0x906f3c0] Format mpeg probed with size=8192 and score=52 [mpeg @ 0x906f3c0] File position before avformat_find_stream_info() is 0 [mpeg @ 0x906f3c0] probing stream 0 pp:2500 [mpeg @ 0x906f3c0] Probe with size=2012, packets=1 detected mpegvideo with score=25 [mpeg @ 0x906f3c0] probing stream 0 pp:2499 [mpeg @ 0x906f3c0] Probe with size=4037, packets=2 detected mpegvideo with score=25 [mpeg @ 0x906f3c0] probing stream 0 pp:2498 [mpeg @ 0x906f3c0] Probe with size=6062, packets=3 detected mpegvideo with score=25 [mpeg @ 0x906f3c0] probing stream 0 pp:2497 [mpeg @ 0x906f3c0] probing stream 0 pp:2496 [mpeg @ 0x906f3c0] Probe with size=10112, packets=5 detected mpegvideo with score=51 [mpeg @ 0x906f3c0] probed stream 0 [mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 29454 in que

Last message repeated 3 times

[mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 47454 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 31614 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 34494 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 40254 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 46014 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 65454 in que [mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 72654 in que

Last message repeated 3 times

[mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 90654 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 48894 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 54654 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 57534 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 63294 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 69054 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 77694 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 74814 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 83454 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 92094 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 108654 in que [mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 115854 in que

Last message repeated 3 times

[mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 133854 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 94974 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 100734 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 106494 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 115134 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 118014 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 123774 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 126654 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 129534 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 138174 in que [mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 151854 in que [mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 159054 in que

Last message repeated 3 times

[mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 177054 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 143934 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 152574 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 155454 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 161214 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 166974 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 175614 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 22254 not matching first dts 198654 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 178494 in que

Last message repeated 3 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 184254 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 190014 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 198654 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 204414 in que

Last message repeated 5 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 213054 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 215934 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 221694 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 227454 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 230334 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 236094 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 238974 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 244734 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 250494 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 259134 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 256254 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 264894 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 273534 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 276414 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 282174 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 287934 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 296574 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 299454 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 305214 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 308094 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 310974 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 319614 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 325374 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 334014 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 336894 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 342654 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 348414 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 357054 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 359934 in que

Last message repeated 3 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 365694 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 371454 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 380094 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 385854 in que

Last message repeated 5 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 394494 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 397374 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 403134 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 408894 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 411774 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 417534 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 420414 in que

Last message repeated 2 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 426174 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 431934 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 440574 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 437694 in que [mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 446334 in que

Last message repeated 4 times

[mpeg @ 0x906f3c0] first_dts 25854 not matching first dts 454974 in que

Last message repeated 1 times

[mpeg @ 0x906f3c0] max_analyze_duration 5000000 reached at 5000000 [mpeg @ 0x906f3c0] File position after avformat_find_stream_info() is 0 Input #0, mpeg, from '/A/film.vob':

Duration: 00:00:21.02, start: 0.287267, bitrate: -2147483 kb/s

Stream #0:0[0x1e0], 127, 1/90000: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 1/50, 9800 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x20], 1, 1/90000: Subtitle: dvd_subtitle Stream #0:2[0x21], 1, 1/90000: Subtitle: dvd_subtitle Stream #0:3[0x22], 1, 1/90000: Subtitle: dvd_subtitle Stream #0:4[0x23], 1, 1/90000: Subtitle: dvd_subtitle Stream #0:5[0x24], 1, 1/90000: Subtitle: dvd_subtitle Stream #0:6[0x25], 1, 1/90000: Subtitle: dvd_subtitle Stream #0:7[0x26], 1, 1/90000: Subtitle: dvd_subtitle Stream #0:8[0x27], 1, 1/90000: Subtitle: dvd_subtitle Stream #0:9[0x80], 149, 1/90000: Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s Stream #0:10[0x81], 149, 1/90000: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s Stream #0:11[0x82], 149, 1/90000: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s Stream #0:12[0x83], 149, 1/90000: Audio: ac3, 48000 Hz, 5.1(side), s16, 384 kb/s Stream #0:13[0x84], 152, 1/90000: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s Stream #0:14[0x28], 1, 1/90000: Subtitle: dvd_subtitle Stream #0:15[0x29], 1, 1/90000: Subtitle: dvd_subtitle Stream #0:16[0x2a], 1, 1/90000: Subtitle: dvd_subtitle

At least one output file must be specified

best regards

Andrzej

P.S. I've already reported this issue almost 2 years ago. It disappeared from bug reports in ffmpeg but I google it out: http://roundup.libav.org/issue2199


#1582 Banding/discoloration in darker gradients when converting to rgb24 swscale defect Jul 28, 2012

Summary: I've discovered that when I'm converting videos to the rgb24 format (in attempting to use the libx264rgb codec) I get banding and discoloration in darker areas with (color) gradients. To eliminate the possibility that it was the codec (as opposed to the format filter) causing the problem, I did some tests converting the video to .png images. Specifically, I found that: yuv420p10le(source video) -- looks nice yuv420p10le -> rgb24 -- banding/discoloration yuv420p10le -> rgb48be -- looks nice yuv420p10le -> rgb48be -> rgb24 -- banding/discoloration yuv420p10le -> yuv420p -> rgb24 -- banding but no discoloration

I assume that the banding in the yuv420p example is simply a result of the reduced colorspace, but I don't see why any of the other conversions should result in any visible changes. I'm using one of Zeranoe's windows builds (win7 64bit) so I don't know if this happens on Linux. Log file output for the yuv420p10le->rgb24 example follows:

ffmpeg started on 2012-07-28 at 10:56:16
Report written to "ffmpeg-20120728-105616.log"
Command line:
ffmpeg -i vtst0.mp4 -map 0:0 -vsync 0 -report -filter:v "format=rgb24" "tst%03d.png"
ffmpeg version N-42704-g85761ef Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul 20 2012 20:39:19 with gcc 4.7.1 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      51. 65.100 / 51. 65.100
  libavcodec     54. 42.100 / 54. 42.100
  libavformat    54. 18.100 / 54. 18.100
  libavdevice    54.  1.100 / 54.  1.100
  libavfilter     3.  2.100 /  3.  2.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000002e2ec0] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000002e2ec0] ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000002e2ec0] File position before avformat_find_stream_info() is 7074306
[h264 @ 00000000002f40a0] no picture 
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000002e2ec0] All info found
rfps: 23.750000 0.011875
rfps: 23.833333 0.004757
rfps: 23.916667 0.000859
rfps: 24.000000 0.000180
rfps: 24.083333 0.002721
rfps: 24.166667 0.008482
rfps: 24.250000 0.017461
rfps: 47.666667 0.019029
rfps: 47.750000 0.009623
rfps: 47.833333 0.003436
rfps: 47.916667 0.000469
rfps: 48.000000 0.000722
rfps: 48.083333 0.004194
rfps: 48.166667 0.010885
rfps: 23.976024 0.000046
rfps: 47.952048 0.000183
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000000002e2ec0] File position after avformat_find_stream_info() is 1243950
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'vtst0.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf54.18.100
  Duration: 00:00:10.09, start: 0.000000, bitrate: 5607 kb/s
    Stream #0:0(und), 41, 1/1000: Video: h264 (High 10) (avc1 / 0x31637661), yuv420p10le, 1920x1080, 5604 kb/s, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
    Metadata:
      handler_name    : VideoHandler
[buffer @ 0000000004ba0f20] Setting entry with key 'video_size' to value '1920x1080'
[buffer @ 0000000004ba0f20] Setting entry with key 'pix_fmt' to value '72'
[buffer @ 0000000004ba0f20] Setting entry with key 'time_base' to value '1/1000'
[buffer @ 0000000004ba0f20] Setting entry with key 'pixel_aspect' to value '0/1'
[buffer @ 0000000004ba0f20] Setting entry with key 'sws_param' to value 'flags=2'
[buffer @ 0000000004ba0f20] Setting entry with key 'frame_rate' to value '24000/1001'
[graph 0 input from stream 0:0 @ 0000000004d73980] w:1920 h:1080 pixfmt:yuv420p10le tb:1/1000 fr:24000/1001 sar:0/1 sws_param:flags=2
[Parsed_format_0 @ 0000000004d738e0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'graph 0 input from stream 0:0' and the filter 'Parsed_format_0'
[auto-inserted scaler 0 @ 0000000004d73b20] w:1920 h:1080 fmt:yuv420p10le sar:0/1 -> w:1920 h:1080 fmt:rgb24 sar:0/1 flags:0x4
[h264 @ 00000000002f40a0] detected 2 logical cores
Output #0, image2, to 'tst%03d.png':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf54.18.100
    Stream #0:0(und), 0, 1/90000: Video: png, rgb24, 1920x1080, q=2-31, 200 kb/s, 90k tbn, 23.98 tbc
    Metadata:
      handler_name    : VideoHandler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> png)
Press [q] to stop, [?] for help
[h264 @ 00000000003aa100] no picture 
DTS -42, next:-62146 st:0 invalid dropping
[h264 @ 0000000004cdbf00] no picture 
frame=    3 fps=0.0 q=0.0 size=       0kB time=00:00:00.12 bitrate=   0.0kbits/s    
frame=    5 fps=3.1 q=0.0 size=       0kB time=00:00:00.20 bitrate=   0.0kbits/s    
frame=    7 fps=3.0 q=0.0 size=       0kB time=00:00:00.29 bitrate=   0.0kbits/s    

...
 
frame=  237 fps=2.6 q=0.0 size=       0kB time=00:00:09.88 bitrate=   0.0kbits/s    
No more inputs to read from, finishing.
[output stream 0:0 @ 0000000004d73a00] EOF on sink link output stream 0:0:default.
frame=  242 fps=2.6 q=0.0 Lsize=       0kB time=00:00:10.26 bitrate=   0.0kbits/s    

video:276218kB audio:0kB subtitle:0 global headers:0kB muxing overhead -100.000000%
[AVIOContext @ 000000000216fd80] Statistics: 4336059 bytes read, 2 seeks

#1598 Muxing raw h264 into mpegts (and mkv) fails. undetermined defect Aug 2, 2012

Can not multiplex h264 and AAC into MPEG2-TS container.

  1. Encode a file

ffmpeg -i $source_file -acodec libfaac -vcodec libx264 test.ts

  1. Demux:

ffmpeg -i test.ts -acodec copy 1.aac -vcodec copy 1.h264

  1. Attempt to mux back:

ffmpeg -i 1.aac -i 1.h264 -acodec copy -vcodec copy mux.ts

#3 Fails with error:

[mpegts @ 0x124de2a0] first pts value must set av_interleaved_write_frame(): Invalid data found when processing input

FFmpeg version 0.11, gcc 4.1.2 20080704 (Red Hat 4.1.2-52). Running Centos 5.8 on 64bit 12 core Intel.


#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


#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
    

#1625 avformat_find_stream_info waits for non-existing video track in mms stream avformat defect Aug 10, 2012

url: mms://live.rgd.com.cn/993

stuck on avformat_find_stream_info

version: 0.11.1


#1712 Audio precision in lossless and long time to encode. ffmpeg defect Sep 2, 2012

Summary of the bug: Hi, first of all, i'm sorry for my english. I've tried the last ffmpeg build and i get a problem with Audio precision in lossless audio file, the audio is delayed about 2 seconds. The audio is passed to another program throught a pipe, but i know that the other program isn't the problem, because with a very old ffmpeg version (SVN 16573, Jan 13 2009) works fine, and i've tried with wav output without pipe and get the same problem.

If you want, here's a test wav files: http://www.mediafire.com/?1ewceliyjhspedk

The command line that i've used is : ffmpeg_old -i "input.ape" -ss 00:59:18.71 -t 00:00:15.55 out_oldffmpeg.wav ffmpeg -i "input.ape" -ss 00:59:18.71 -t 00:00:15.55 out_newffmpeg.wav

How to reproduce:

% ffmpeg -i input -ss 00:45:25 -t 00:05:25 -ac 2 -f wav -

The output is a pipe to another program.

'''ffmpeg version''' N-44080-gdfb4757
'''built on''' Aug 31 2012 16:58:51 with gcc 4.7.1 (GCC)
configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runt
ime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass -
-enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-l
ibfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenj
peg --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

The other thing that i wan to answer is why the program take a long time to convert a portion of a file, for example: ffmpeg -i input.ape -ss 00:45:15.42 -t 00:00:15.25 output.wav

the program stay a long time without do anything and then start to convert. I take about 2 minutes to convert 15s of audio.


#1719 MPEG-TS demuxer : don't parse a PAT (and clear programs) if its version number is the same as the previous one avformat defect Sep 5, 2012
ffmpeg -i euronews_long_pmt_over_pat.ts
ffmpeg version N-44162-gfc15f58 Copyright (c) 2000-2012 the FFmpeg developers   
  built on Sep  5 2012 12:24:04 with gcc 4.7 (Debian 4.7.1-2)
  configuration: --prefix=/home/aurelien/local --enable-postproc --enable-nonfree --enable-gpl --enable-libopencore-amrnb --enable-libfaac --enable-libmp3lame --enable-shared --enable-libxvid --enable-libx264 --extra-cflags=-I/home/aurelien/local/include --extra-ldflags=-L/home/aurelien/local/lib --enable-version3 --disable-optimizations --enable-libfreetype --disable-stripping --enable-libaacplus --enable-libfaac
  libavutil      51. 70.100 / 51. 70.100
  libavcodec     54. 55.100 / 54. 55.100
  libavformat    54. 25.104 / 54. 25.104
  libavdevice    54.  2.100 / 54.  2.100
  libavfilter     3. 15.103 /  3. 15.103
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[mpegts @ 0x1b61240] probed stream 1 failed
[mpegts @ 0x1b61240] max_analyze_duration 5000000 reached at 5016000
[mpegts @ 0x1b61240] Could not find codec parameters for stream 1 (Unknown: none): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x1b61240] PES packet size mismatch
    Last message repeated 9 times
Input #0, mpegts, from '/home/dump/euronews_long_pmt_over_pat.ts':
  Duration: 00:02:59.27, start: 10770.595789, bitrate: 4407 kb/s
  Program 8202
    Metadata:
      service_name    : ARM_1
      service_provider: GlobeCast   
[...]  
  No Program
    Stream #0:0[0x8c6]: Audio: mp2, 48000 Hz, mono, s16, 64 kb/s
    Stream #0:1[0x300]: Unknown: none
    Stream #0:2[0x8ad]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 3240 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:3[0x8c1]: Audio: mp2, 48000 Hz, mono, s16, 64 kb/s
    Stream #0:4[0x8bf]: Audio: mp2, 48000 Hz, mono, s16, 64 kb/s
    Stream #0:5[0x8c0]: Audio: mp2, 48000 Hz, mono, s16, 64 kb/s
    Stream #0:6[0x8bd]: Audio: mp2, 48000 Hz, mono, s16, 64 kb/s
    Stream #0:7[0x8be]: Audio: mp2, 48000 Hz, mono, s16, 64 kb/s
    Stream #0:8[0x8bb]: Audio: mp2, 48000 Hz, mono, s16, 64 kb/s
    Stream #0:9[0x8ba]: Audio: mp2, 48000 Hz, mono, s16, 64 kb/s
    Stream #0:10[0x8bc]: Audio: mp2, 48000 Hz, mono, s16, 64 kb/s
    Stream #0:11[0x8b9]: Audio: mp2, 48000 Hz, mono, s16, 64 kb/s
    Stream #0:12[0x8b8]: Audio: mp2, 48000 Hz, mono, s16, 64 kb/s
    Stream #0:13[0x8b7]: Audio: mp2, 48000 Hz, mono, s16, 64 kb/s

The stream looks like :
[PAT]
[PAT]
[PAT]
[PMT_first packet]
[PAT]
[PAT]
[PAT]
[PMT_last_packet]
[etc...]

In pat_cb(), clear_programs() is called unconditionally so the when the second half of the PMT is received it will be discarded. The attached patch fixes that.

The sample is on the ffmpeg ftp : euronews_long_pmt_over_pat.ts


#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.


#1798 Real-world transport stream with incorrect PMT plays fine with WMP avformat defect Oct 10, 2012

There's no sound with this file. It comes from a dvb-s2 channel.

WMP is the only player working. ffplay git, MPlayer 1.1, MPlayer2, VLC 2.0.3, xbmc git (07/Oct/12) does not play audio (either windows or linux)

I managed to play audio only with mplayer -novideo switch.

It seems that PMT indicates the wrong stream type.


#1806 Audio/video stream order reversed in remuxed VOB files avformat defect Oct 12, 2012

Summary of the bug: I am using ffmpeg to edit and remultiplex unencrypted VOB files (from a HD recorder). When copying (ie not transcoding) the streams ffmpeg ALWAYS insists on making the audio stream ID 0 and video stream ID 1 even though the input file was the other way round and it reports itself as NOT doing this.

Using the -map commands also seem to be ignored wherever they appear on the command line.

(This is a problem because I am using dvdauthor on the files and it only seems to work with VOB files with video as the first stream. Fails with infamous ERR: Cannot infer pts for VOBU if there is no audio or video and it is the first VOBU.)

How to reproduce (with any vob file 'input.vob'): % ffmpeg -i input.vob -target pal-dvd -codec copy output.vob ffmpeg version N-45279-g1a104bf Copyright (c) 2000-2012 the FFmpeg developers

built on Oct 10 2012 19:21:13 with gcc 4.7.2 (GCC)

Input #0, mpeg, from 'input.vob':

Duration: 00:01:28.15, start: 137.626044, bitrate: 2858 kb/s

Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 352x576 [SAR 24:11 DAR 4:3], 3060 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 256 kb/s

Output #0, dvd, to 'output.vob':

Metadata:

encoder : Lavf54.31.100 Stream #0:0: Video: mpeg2video, yuv420p, 352x576 [SAR 24:11 DAR 4:3], q=2-31

, 3060 kb/s, 25 fps, 90k tbn, 25 tbc

Stream #0:1: Audio: ac3, 48000 Hz, stereo, 256 kb/s

Stream mapping:

Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy)

But running ffprobe on resulting 'output.vob': Input #0, mpeg, from 'output.vob':

Duration: 00:01:28.15, start: 1.000000, bitrate: 2877 kb/s

Stream #0:0[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 256 kb/s Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p, 352x576 [SAR 24:11 DAR 4:3], 3060 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc

Streams swapped round!


#1810 ffprobe: some .m4a files' metatags are not read by ffprobe avformat defect Oct 13, 2012

Summary of the bug: How to reproduce:

% ffprobe Portugal.m4a
ffprobe version 0.11.2 Copyright (c) 2007-2012 the FFmpeg developers
  built on Oct 10 2012 18:26:07 with gcc 4.7.1

Running ffprobe on alac encoded files (.m4a), only returns the creation_date metadata. Album, artist, title, etc. are not returned.

The mp4v2 tool returns those correctly. Also, AtomicParsley? and Mp3tag read the metadata correctly.

Here are the outputs of ffprobe and mp4v2:

configuration: --enable-libmp3lame --enable-libtheora --enable-libx264 --disable-libgsm --enable-postproc --disable-libxvid --enable-libfaac --enable-pthreads --enable-libvorbis --enable-gpl --disable-x11grab --enable-nonfree

libavutil 51. 54.100 / 51. 54.100 libavcodec 54. 23.100 / 54. 23.100 libavformat 54. 6.100 / 54. 6.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 2. 77.100 / 2. 77.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Portugal.m4a':

Metadata:

major_brand : M4A minor_version : 0 compatible_brands: mp42isomM4A creation_time : 2012-09-29 15:28:41

Duration: 00:01:28.80, start: 0.000000, bitrate: 608 kb/s

Stream #0:0(und): Audio: alac (alac / 0x63616C61), 44100 Hz, 2 channels, s16, 608 kb/s Metadata:

creation_time : 2012-09-29 15:28:41

[FORMAT] filename=Portugal.m4a nb_streams=1 format_name=mov,mp4,m4a,3gp,3g2,mj2 format_long_name=QuickTime?/MPEG-4/Motion JPEG 2000 format start_time=0.000000 duration=88.800000 size=6756165 bit_rate=608663 TAG:major_brand=M4A TAG:minor_version=0 TAG:compatible_brands=mp42isomM4A TAG:creation_time=2012-09-29 15:28:41 FORMAT

mp4info version 2.0.0 Portugal.m4a: ReadChildAtoms?: "Portugal.m4a": In atom meta missing child atom hdlr Track Type Info 1 audio alac, 88.800 secs, 608 kbps, 44100 Hz ReadChildAtoms?: "Portugal.m4a": In atom meta missing child atom hdlr

Name: Sonhei que estava em Portugal Artist: Cristina Branco Album: Ulisses Track: 1 of 0 Genre: Fado


#1853 libswscale writes past scanline end swscale defect Oct 27, 2012

libswscale sometimes writes to the memory past the end of each scanline, into the space between end of scanline and start of the next pixel, or in other words, it overwrites pixels between (dstw, y) and (0, y+1).

Often, this memory is just padding to satisfy alignment constraints on strides, but there are use cases where it's reasonable to expect that pixels outside the specified destination width should not be overwritten. For example, the destination image could be set up as cropped region of a larger image, and the regions of the larger images not covered by the destination region should not be overwritten.

I suspect this bug/caveat happens due to use of SIMD to work on multiple pixels at once. libswscale should just use an unaccelerated code path to handle trailing pixels.

This happens at least with PIX_FMT_BGRA.


#1891 Problem transcoding realmedia file avformat defect Nov 6, 2012

Summary of the bug: When trying to convert a certain file, ffmpeg does not terminate. Seems to be related to the input file, since no output formats i have tried works.

How to reproduce:

This is the command I am trying to execute:
$ ffmpeg.exe -xerror -i "438bdca27d59ed83f91cb8dd9dc127cd.rm" -r 30 -vcodec mpeg1video -b:v 200k -acodec libvorbis -ac 2 -ar 48000 -ab 128k -y "test.mpg"

This is the output of "ffmpeg -v 9 -loglevel 99 -i 438bdca27d59ed83f91cb8dd9dc127cd.rm":
$ ffmpeg -v 9 -loglevel 99 -i 438bdca27d59ed83f91cb8dd9dc127cd.rm
ffmpeg version N-41668-g564bb24 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jun 17 2012 20:18:05 with gcc 4.6.3
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --ena  libavutil      51. 58.100 / 51. 58.100
  libavcodec     54. 25.100 / 54. 25.100
  libavformat    54.  6.101 / 54.  6.101
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 81.100 /  2. 81.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[rm @ 00000000021df300] Format rm probed with size=2048 and score=100
[rm @ 00000000021df300] Unsupported stream type 00000187
[rm @ 00000000021df300] Unsupported stream type 00000431
[rm @ 00000000021df300] Unsupported stream type 0000028f
[rm @ 00000000021df300] File position before avformat_find_stream_info() is 3953
[cook @ 000000000034da60] codecdata_length=8
[cook @ 000000000034da60] subpacket[0].cookversion=1000001
[cook @ 000000000034da60] MONO
[cook @ 000000000034da60] sqvh VLC init
[cook @ 000000000034da60] VLC tables initialized.
[cook @ 000000000034da60] MDCT initialized, order = 11.
[rm @ 00000000021df300] parser not found for codec rv20, packets or times may be invalid.
    Last message repeated 2 times
[cook @ 0000000000365bc0] codecdata_length=8
[cook @ 0000000000365bc0] subpacket[0].cookversion=1000001
[cook @ 0000000000365bc0] MONO
[cook @ 0000000000365bc0] sqvh VLC init
[cook @ 0000000000365bc0] VLC tables initialized.
[cook @ 0000000000365bc0] MDCT initialized, order = 11.
[cook @ 000000000036e240] codecdata_length=8
[cook @ 000000000036e240] subpacket[0].cookversion=1000001
[cook @ 000000000036e240] MONO
[cook @ 000000000036e240] sqvh VLC init
[cook @ 000000000036e240] VLC tables initialized.
[cook @ 000000000036e240] MDCT initialized, order = 11.
[rm @ 00000000021df300] parser not found for codec rv20, packets or times may be invalid.
    Last message repeated 4 times
[rm @ 00000000021df300] max_analyze_duration 5000000 reached at 5000000
[cook @ 000000000034da60] Deallocating memory.
[cook @ 000000000034da60] Memory deallocated.
[cook @ 0000000000365bc0] Deallocating memory.
[cook @ 0000000000365bc0] Memory deallocated.
[cook @ 000000000036e240] Deallocating memory.
[cook @ 000000000036e240] Memory deallocated.
[rm @ 00000000021df300] File position after avformat_find_stream_info() is 163859
Input #0, rm, from '438bdca27d59ed83f91cb8dd9dc127cd.rm':
  Metadata:
    title           : Title
    author          : Author
    copyright       : (c)2000
    comment         :
  Duration: 00:01:03.71, start: 0.000000, bitrate: 649 kb/s
    Stream #0:0, 0, 1/1000: Data: none
    Stream #0:1, 0, 1/1000: Data: none
    Stream #0:2, 0, 1/1000: Data: none
    Stream #0:3, 0, 1/1000: Audio: cook (cook / 0x6B6F6F63), 44100 Hz, mono, flt, 32 kb/s
    Stream #0:4, 0, 1/1000: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 1/1000, 187 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc
    Stream #0:5, 0, 1/1000: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 1/1000, 132 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc
    Stream #0:6, 0, 1/1000: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 1/1000, 68 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc
    Stream #0:7, 196, 1/1000: Audio: cook (cook / 0x6B6F6F63), 44100 Hz, mono, flt, 32 kb/s
    Stream #0:8, 0, 1/1000: Audio: cook (cook / 0x6B6F6F63), 44100 Hz, mono, flt, 32 kb/s
    Stream #0:9, 75, 1/1000: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 1/1000, 187 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc
    Stream #0:10, 0, 1/1000: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 1/1000, 187 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc
    Stream #0:11, 0, 1/1000: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 1/1000, 187 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc
    Stream #0:12, 0, 1/1000: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 1/1000, 68 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc
At least one output file must be specified
[AVIOContext @ 00000000021df840] Statistics: 200630 bytes read, 2 seeks

PS. I work at a company (www.netclean.com) that makes software used to analyzes data from seized computers in child sexual abuse investigations, and we use ffmpeg to convert video files. We sometimes test our software on legal porn to test functionality such as nudity detection etc. This is why the file I am trying to convert is porn.


#1927 ffplay loop triggers image corruption with cut realvideo sample undetermined defect Nov 17, 2012

After the resolution changes in the attached file which is from ticket #1507, any attempt to seek to absolute zero will cause distortion. For the video stream, the first index entry timestamp is zero and the first_dts is zero. Any value greater than zero and it works. The reason for the distortion is because the packets contain the old resolution values, as does the AVFrame and AVCodecContext.

You can seek to zero fine before the resolution change.

The best way to show you the problem is to make ffplay loop. This is because using left arrow does not go back far enough in time to produce the problem and by allowing ffplay to loop it will seek to zero or to the very beginning of playback.

This is not an ffplay problem as I can reproduce it in my own code.

After the loop back to zero it will correct itself and get the resolution change about 6/7 seconds into playback.

ffplay -loop 10 Wrong_aspect_after_resolution_change.rmvb
ffplay version N-46469-gc995644 Copyright (c) 2003-2012 the FFmpeg developers
  built on Nov  5 2012 17:56:17 with gcc 4.7.2 (GCC)
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3
 --disable-pthreads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib
--enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-
amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut -
-enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --
enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enab
le-libxavs --enable-libxvid --enable-zlib
  libavutil      52.  5.100 / 52.  5.100
  libavcodec     54. 71.100 / 54. 71.100
  libavformat    54. 36.100 / 54. 36.100
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 21.106 /  3. 21.106
  libswscale      2.  1.102 /  2.  1.102
  libswresample   0. 16.100 /  0. 16.100
  libpostproc    52.  1.100 / 52.  1.100
Input #0, rm, from 'Wrong_aspect_after_resolution_change.rmvb':
  Metadata:
    Audiences       : Easy RealMedia Tool's Audience;
    audioMode       : music
    Creation Date   : 3/22/2005 10:25:31
    Description     : +ú+++·+˜ú¦¦+-+¦¦+«¦¼+¦íó++-++·+¦+++Ñ-¬-°ú¼+÷¦¬+÷+-+¦-++¦+˜
-º
                    : -¦íó++-˜+«++íú¦+¦t+¦¦µ+¿¦T+¡¦t+¦¦½-+-·+-íú++¦++T+»+=+÷+-¦+
¦+¦½+¬¦
    Email           : rick@redcheek.net
    Generated By    : Easy RealMedia Tools V1.8
    HomeWeb         : http://redcheek.net
    Keywords        :
    Modification Date: 3/22/2005 10:25:31
    videoMode       : sharp
    File ID         : 545932b0-2885-caea-bdd7-d268c869a693
    title           : [YY]0419.¦++-+¦¦¦_¦¦¦·+t+¦+-+n-O-¦f(+-)- -++-¦8 +¦-([YY]¦ñ
+˜-- YYTvO+¦+˜
    author          : feng
    copyright       : YY@2005
    comment         :
  Duration: 00:43:16.92, start: 0.000000, bitrate: 7 kb/s
    Stream #0:0: Audio: cook (cook / 0x6B6F6F63), 44100 Hz, stereo, fltp, 44 kb/s
    Stream #0:1: Video: rv40 (RV40 / 0x30345652), yuv420p, 480x360, 391 kb/s, 23
 fps, 23 tbr, 1k tbn, 1k tbc
Frame changed from size:0x0 to size:480x360  97KB sq=    0B f=0/0
  15.74 A-V: -0.017 f[rv40 @ 0119d800] d= Changing dimensions to 480x288
  15.82 A-V: -0.021 fd=   7 aq=    1KB vq=   28KB sq=   Frame changed from size:
480x360 to size:480x288
  39.3[rv40 @ 0117dc20] 6 AFirst slice header is incorrectB f=0/0
[rv40 @ 0119d800] warning: first frame is no keyframe    0B f=0/0
   9.76 A-V: -0.004[rv40 @ 0119d800]  fdChanging dimensions to 480x360
   9.83 A-V: -0.008 fd=  60 aq=    1KB vq=   4Frame changed from size:480x288 to
 size:480x360
  12.34 A-V:  0.086 fd=  62 aq=    1KB vq=   17KB sq=    0B f=0/1

#1993 Badly interleaved partial AVI file causes audio/video desync avformat defect Dec 5, 2012

Reproducible with streams.videolan.org/issues/ffmpeg/yet-another-broken-interleaved-avi.avi and

dd if=yet-another-broken-interleaved-avi.avi of=test.avi bs=1048576 count=200

The problem description is exactly the same as #333, except with partial files (the complete test file as linked above works fine, just cutting it makes it fail).

Just like with bug #333 (before it was fixed), it causes desync after some time of normal playback in ffplay/mplayer, and it works correctly with mplayer -demuxer avi.

Compared to playback of the complete file, the following ffplay message is missing:

[avi @ 0x7f94980008c0] non-interleaved AVI

which possibly means that the demuxer fails to recognize the file as badly interleaved if the trailing part of the file is missing.


#2009 Bogus library dependencies (e.g. on SDL) build system defect Dec 10, 2012

Summary of the bug: pkg-config files contain unneeded dependencies (e.g. libavcodec.pc contains -lSDL)

How to reproduce:

% grep SDL /usr/lib/pkgconfig/libav*
/usr/lib/pkgconfig/libavcodec.pc:Libs: -L${libdir} -lavcodec -ldl -lva -lXfixes -lXext -lX11 -ljack -lasound -lSDL -lpthread -lx264 -lvorbisenc -lvorbis -logg -ltheoraenc -ltheoradec -logg -lmp3lame -lfdk-aac -lfaac -lass -lm -pthread -lbz2 -lz -lrt
/usr/lib/pkgconfig/libavdevice.pc:Libs: -L${libdir} -lavdevice -ldl -lva -lXfixes -lXext -lX11 -ljack -lasound -lSDL -lpthread -lx264 -lvorbisenc -lvorbis -logg -ltheoraenc -ltheoradec -logg -lmp3lame -lfdk-aac -lfaac -lass -lm -pthread -lbz2 -lz -lrt
/usr/lib/pkgconfig/libavfilter.pc:Libs: -L${libdir} -lavfilter -ldl -lva -lXfixes -lXext -lX11 -ljack -lasound -lSDL -lpthread -lx264 -lvorbisenc -lvorbis -logg -ltheoraenc -ltheoradec -logg -lmp3lame -lfdk-aac -lfaac -lass -lm -pthread -lbz2 -lz -lrt
/usr/lib/pkgconfig/libavformat.pc:Libs: -L${libdir} -lavformat -ldl -lva -lXfixes -lXext -lX11 -ljack -lasound -lSDL -lpthread -lx264 -lvorbisenc -lvorbis -logg -ltheoraenc -ltheoradec -logg -lmp3lame -lfdk-aac -lfaac -lass -lm -pthread -lbz2 -lz -lrt
% nm -A /usr/lib/libavcodec.a  | grep SDL
%

Issue is that $extralibs is generally used in the configure script for multiple modules, despite them needing different things. It causes issues for programs linking to both libavcodec/libavformat and SDL2.


#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

#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


#2078 FFMPEG created WTV files cannot be fast forwarded or fast rewound in Windows Media Center avformat defect Dec 29, 2012

Summary of the bug: Any WTV file created by FFMPEG, they can be seeked directly in MCE but when one tries toe fast forward or rewind (using the FF and RW buttons on the remote or the console) it does not go beyond at best 1 FF or 1 RW. i.e. WTV files recorded by MCE one can press the FF button upto 4 times to get 4x fast forward. Files created by FFMPEG sometimes get 1x FF and never go beyond 1x FF, it just returns to normal play.

This happens with any WTV file, so you can take any file you have in your archive and remux it to wtv and see the results.

something as simple as: ffmpeg -i test.ts -c copy test.wtv

I'm not uploading a sample since it can be reproduced with any file remuxed to WTV.


#2085 h264 remuxed from flv to mov fails on Android (duplicated SPS) undetermined defect Dec 30, 2012

Summary of the bug:

We use FLV captured stream from webcam (using application build for Flash Player), h264 comes direct from the flash, but audio stream Speex should be encoded to AAC to make the streams compatible with mobile devices h264 (Baseline) + AAC.

Video stream should not be encoded again, so we use the copy method, like the following:

ffmpeg -i input.flv -c:v copy -c:a libvo_aacenc output.mp4

The resulted MP4 video files plays back well on Flash Player 11.4+ and iPhone/iPad with iOS 5+ (Baseline compatible video stream). but on Android devices and Flash Player 11.1/11.2 the playback freezes at 2-3 seconds. We also use qt-faststart, but it doesn't affect on stuck problem.

Stdout of ffmpeg encoding script:

ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers
  built on Nov 17 2012 23:45:34 with Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/1.0 --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libvo-aacenc --enable-libspeex
  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
[libspeex @ 0x7fabb902ea00] Missing Speex header, assuming defaults.
Guessed Channel Layout for  Input Stream #0.1 : mono
Input #0, flv, from '1.flv':
  Metadata:
    creationdate    : Thu Nov 22 09:46:36
    duration2       : 29964
  Duration: 00:00:30.25, start: 0.000000, bitrate: 212 kb/s
    Stream #0:0: Video: h264 (Baseline), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 20 tbr, 1k tbn, 40 tbc
    Stream #0:1: Audio: speex, 16000 Hz, mono, s16
File '1.mp4' already exists. Overwrite ? [y/N] y
Missing Speex header, assuming defaults.
Output #0, mp4, to '1.mp4':
  Metadata:
    creationdate    : Thu Nov 22 09:46:36
    duration2       : 29964
    encoder         : Lavf54.29.104
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 1k tbn, 1k tbc
    Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 16000 Hz, mono, s16, 96 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (libspeex -> libvo_aacenc)
Press [q] to stop, [?] for help
[mp4 @ 0x7fabb9012800] st:0 PTS: 2139 DTS: 2139 < 2140 invalid, clipping
[mp4 @ 0x7fabb9012800] st:0 PTS: 2722 DTS: 2722 < 2723 invalid, clipping
[mp4 @ 0x7fabb9012800] st:0 PTS: 5440 DTS: 5440 < 5441 invalid, clipping
[mp4 @ 0x7fabb9012800] st:0 PTS: 8105 DTS: 8105 < 8106 invalid, clipping
[mp4 @ 0x7fabb9012800] st:0 PTS: 10772 DTS: 10772 < 10773 invalid, clipping
[mp4 @ 0x7fabb9012800] st:0 PTS: 13456 DTS: 13456 < 13457 invalid, clipping
[mp4 @ 0x7fabb9012800] st:0 PTS: 16127 DTS: 16127 < 16128 invalid, clipping
[mp4 @ 0x7fabb9012800] st:0 PTS: 18835 DTS: 18835 < 18836 invalid, clipping
[mp4 @ 0x7fabb9012800] st:0 PTS: 21675 DTS: 21675 < 21676 invalid, clipping
[mp4 @ 0x7fabb9012800] st:0 PTS: 24476 DTS: 24476 < 24477 invalid, clipping
[mp4 @ 0x7fabb9012800] st:0 PTS: 27283 DTS: 27283 < 27284 invalid, clipping
[mp4 @ 0x7fabb9012800] st:0 PTS: 30079 DTS: 30079 < 30080 invalid, clipping
frame=  454 fps=0.0 q=-1.0 Lsize=     978kB time=00:00:30.31 bitrate= 264.4kbits/s    
video:620kB audio:346kB subtitle:0 global headers:0kB muxing overhead 1.170369%

I tried different versions of ffmpeg (0.10, 0.11, 1.0, 1.01) compiled with mandatory --with-libvo-aacenc --with-speex, but the problem still not resolved.


#2162 ffmpeg does not create PS3 compatible m2ts files avformat defect Jan 21, 2013

I have some movies (mpeg2 video, AC3 audio) that I would like to convert to m2ts. If I do this with tsMuxerGUI, it plays like a charm on my PS3. If I try this with ffmpeg the PS3 does never recognize the audio track. I've used "ffmpeg -i sample.vob -acodec copy -vcodec copy sample.m2ts"

Sample files were uploaded to the ftp Server upload.ffmpeg.org: PS3Issue_Readme.txt PS3IssueSampleFFMPEG.m2ts PS3IssueSampleTSMUXERGUI.m2ts

============================== 1.) convert the file with "ffmpeg.exe" -i sample.mkv -acodec copy -vcodec copy -t 7 sampleFFMPEG.m2ts" ==============================

ffmpeg version 1.1 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jan  8 2013 16:16:22 with gcc 4.7.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg
sm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --e
nable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --e
nable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil      52. 13.100 / 52. 13.100
  libavcodec     54. 86.100 / 54. 86.100
  libavformat    54. 59.106 / 54. 59.106
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 32.100 /  3. 32.100
  libswscale      2.  1.103 /  2.  1.103
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, matroska,webm, from 'sample.mkv':
  Metadata:
    creation_time   : 2013-01-21 07:30:54
  Duration: 00:11:12.24, start: 0.000000, bitrate: 8453 kb/s
    Chapter #0.0: start 0.000000, end 672.238000
    Metadata:
      title           : Chapter 01
    Stream #0:0(eng): Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR
16:9], SAR 186:157 DAR 279:157, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
    Metadata:
      title           : 3/2+1
Output #0, mpegts, to 'sampleFFMPEG.m2ts':
  Metadata:
    encoder         : Lavf54.59.106
    Chapter #0.0: start 0.000000, end 7.000000
    Metadata:
      title           : Chapter 01
    Stream #0:0(eng): Video: mpeg2video, yuv420p, 720x480 [SAR 186:157 DAR 279:1
57], q=2-31, 29.97 fps, 90k tbn, 29.97 tbc
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), 448 kb/s (default)
    Metadata:
      title           : 3/2+1
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=  211 fps=0.0 q=-1.0 Lsize=    8038kB time=00:00:07.00 bitrate=9396.6kbits
/s
video:6880kB audio:383kB subtitle:0 global headers:0kB muxing overhead 10.673105
%

============================== here ist the output of "ffmpeg -i sampleFFMPEG.m2ts" ==============================

ffmpeg version 1.1 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jan  8 2013 16:16:22 with gcc 4.7.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg
sm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --e
nable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --e
nable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil      52. 13.100 / 52. 13.100
  libavcodec     54. 86.100 / 54. 86.100
  libavformat    54. 59.106 / 54. 59.106
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 32.100 /  3. 32.100
  libswscale      2.  1.103 /  2.  1.103
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, mpegts, from 'sampleFFMPEG.m2ts':
  Duration: 00:00:07.04, start: 1.400000, bitrate: 9353 kb/s
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420
p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x101](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1
(side), fltp, 448 kb/s
At least one output file must be specified

============================== then I have "posprocessed" the sampleFFMPEG.m2ts with tsMuxerGUI here ist the output of "ffmpeg -i sampleTSMUXERGGUI.m2ts" ==============================

ffmpeg version 1.1 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jan  8 2013 16:16:22 with gcc 4.7.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg
sm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --e
nable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --e
nable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil      52. 13.100 / 52. 13.100
  libavcodec     54. 86.100 / 54. 86.100
  libavformat    54. 59.106 / 54. 59.106
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 32.100 /  3. 32.100
  libswscale      2.  1.103 /  2.  1.103
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, mpegts, from 'sampleTSMUXERGUI.m2ts':
  Duration: 00:00:07.04, start: 600.000000, bitrate: 8894 kb/s
  Program 1
    Stream #0:0[0x1011]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv42
0p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x1100](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side
), fltp, 448 kb/s
At least one output file must be specified

============================== The differences that I see between ffmpeg output and tsMuxerGUI output are the track IDs and then "ac3 ([129][0][0][0] / 0x0081)" vs. "(AC-3 / 0x332D4341)".


#2270 ffmpeg transcodes cover art to a video stream with a single frame avformat defect Feb 14, 2013
$ ffmpeg -i tests/sample.mp3 out.mkv 
ffmpeg version 1.0.3 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jan 24 2013 14:52:18 with gcc 4.7 (Debian 4.7.2-5)
  configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -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/i386-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libdc1394 --disable-altivec --disable-armv5te --disable  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
[mp3 @ 0x8091a60] max_analyze_duration 5000000 reached at 5015510
[mp3 @ 0x8091a60] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from 'tests/sample.mp3':
  Metadata:
    album_artist    : Armin Van Buuren
    track           : 26
    encoded_by      : Https://Www.Facebook.Com/Inspirontrance
    title           : Serenity (Andrew Rayel Aether Remix) [Future Favorite]
    artist          : Armin Van Buuren Feat. Jan Vayne
    album           : A State Of Trance Episode 587 (2012-11-15)
    genre           : Trance
    date            : 2012

  Duration: 00:05:20.20, start: 0.000000, bitrate: 255 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16, 256 kb/s
    Stream #0:1: Video: mjpeg, yuvj444p, 720x720 [SAR 72:72 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      title           : 
      comment         : Cover (front)
[libx264 @ 0x80a82e0] using SAR=1/1
[libx264 @ 0x80a82e0] MB rate (182250000) > level limit (2073600)
[libx264 @ 0x80a82e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
[libx264 @ 0x80a82e0] profile High, level 5.2
[libx264 @ 0x80a82e0] 264 - core 129 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - 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=3 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, matroska, to 'out.mkv':
  Metadata:
    album_artist    : Armin Van Buuren
    PART_NUMBER     : 26
    encoded_by      : Https://Www.Facebook.Com/Inspirontrance
    title           : Serenity (Andrew Rayel Aether Remix) [Future Favorite]
    artist          : Armin Van Buuren Feat. Jan Vayne
    album           : A State Of Trance Episode 587 (2012-11-15)
    genre           : Trance
    date            : 2012
    encoder         : Lavf54.29.104
    Stream #0:0: Video: h264 (H264 / 0x34363248), yuvj420p, 720x720 [SAR 1:1 DAR 1:1], q=-1--1, 1k tbn, 90k tbc
    Metadata:
      title           : 
      comment         : Cover (front)
    Stream #0:1: Audio: vorbis (oV[0][0] / 0x566F), 44100 Hz, stereo, flt
Stream mapping:
  Stream #0:1 -> #0:0 (mjpeg -> libx264)
  Stream #0:0 -> #0:1 (mp3 -> libvorbis)
Press [q] to stop, [?] for help
frame=    1 fps=0.1 q=33.0 Lsize=    4410kB time=00:05:12.99 bitrate= 115.4kbits/s    
video:11kB audio:4276kB subtitle:0 global headers:4kB muxing overhead 2.766691%

[libx264 @ 0x80a82e0] frame I:1     Avg QP:31.73  size: 10211
[libx264 @ 0x80a82e0] mb I  I16..4: 46.9% 35.0% 18.1%
[libx264 @ 0x80a82e0] 8x8 transform intra:35.0%
[libx264 @ 0x80a82e0] coded y,uvDC,uvAC intra: 26.8% 8.9% 3.2%
[libx264 @ 0x80a82e0] i16 v,h,dc,p: 70% 16%  7%  7%
[libx264 @ 0x80a82e0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 14% 23%  4%  5% 11%  5%  6%  5%
[libx264 @ 0x80a82e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 40% 20% 13%  4%  5%  7%  4%  4%  3%
[libx264 @ 0x80a82e0] i8c dc,h,v,p: 91%  4%  5%  0%
[libx264 @ 0x80a82e0] kb/s:7351920.00
$ ffprobe out.mkv 
ffprobe version 1.0.3 Copyright (c) 2007-2012 the FFmpeg developers
  built on Jan 24 2013 14:52:18 with gcc 4.7 (Debian 4.7.2-5)
  configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -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/i386-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libdc1394 --disable-altivec --disable-armv5te --disable  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
[matroska,webm @ 0x807f6e0] max_analyze_duration 5000000 reached at 5017000
Input #0, matroska,webm, from 'out.mkv':
  Metadata:
    title           : Serenity (Andrew Rayel Aether Remix) [Future Favorite]
    ALBUM_ARTIST    : Armin Van Buuren
    track           : 26
    ENCODED_BY      : Https://Www.Facebook.Com/Inspirontrance
    ARTIST          : Armin Van Buuren Feat. Jan Vayne
    ALBUM           : A State Of Trance Episode 587 (2012-11-15)
    GENRE           : Trance
    DATE            : 2012
    ENCODER         : Lavf54.29.104
  Duration: 00:05:13.54, start: 0.000000, bitrate: 115 kb/s
    Stream #0:0: Video: h264 (High), yuvj420p, 720x720 [SAR 1:1 DAR 1:1], 30k fps, 30k tbr, 1k tbn, 180k tbc
    Metadata:
      title           : 
      COMMENT         : Cover (front)
    Stream #0:1: Audio: vorbis, 44100 Hz, stereo, s16 (default)

It should create an audio-only mkv with the picture embedded as metadata instead. Should it turn out that mkv does not have anything like image data in metadata, ffmpeg should not create a video stream anyway.


#2282 Failed seeks lead to undefined behavior avformat defect Feb 19, 2013

Play a .flac file with ffplay. Right at the start, hit the cursor-right and cursor-down key multiple times. Then ffplay prints some error messages, and the printed playback position doesn't actually match what you hear.

Specifically, it prints decoder errors after an (obviously) failed seek. This indicates a problem with demuxer behavior and/or the seek API. (And if not, it's a ffplay bug.)

On IRC, it was said that failed seeks leave the demuxer in an undefined state.

$ ffplay test.flac 
ffplay version 1.0.3 Copyright (c) 2003-2012 the FFmpeg developers
  built on Jan 24 2013 14:52:18 with gcc 4.7 (Debian 4.7.2-5)
  configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -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/i386-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libdc1394 --disable-altivec --disable-armv5te --disable  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
[flac @ 0x80e0620] max_analyze_duration 5000000 reached at 5015510
Input #0, flac, from 'test.flac':
  Metadata:
    ENCODER         : Lavf54.29.104
  Duration: 00:10:01.48, bitrate: 1186 kb/s
    Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
test.flac: error while seeking=   47KB vq=    0KB sq=    0B f=0/0   
[flac @ 0x80e8a80] invalid sync codeKB vq=    0KB sq=    0B f=0/0   
[flac @ 0x80e8a80] invalid frame header
[flac @ 0x80e8a80] decode_frame() failed
[flac @ 0x80e8a80] invalid sync codeKB vq=    0KB sq=    0B f=0/0   
[flac @ 0x80e8a80] invalid frame header
[flac @ 0x80e8a80] decode_frame() failed


#2349 Windows, continuously write progress on one line undetermined defect Mar 12, 2013

When encoding FFmpeg prints a new line every second with the progress, example

frame= 31 fps=0.0 q=0.0 size= 152kB time=00:00:00.72 bitrate=1726.3kbits/s frame= 59 fps= 57 q=0.0 size= 175kB time=00:00:01.90 bitrate= 751.1kbits/s frame= 89 fps= 58 q=0.0 size= 204kB time=00:00:03.04 bitrate= 549.8kbits/s

With a large file these lines can quickly fill the console screen. I would like to see the progress on one line if possible, that is to say each second the same line is overwritten with the updated progress.

http://superuser.com/questions/564483/how-to-make-ffmpeg-continuously-write-progress-on-one-line


#2398 Bad timestamps when remuxing h264 wtv to ts undetermined defect Mar 24, 2013

Summary of the bug:

How to reproduce:

ffmpeg -i input.wtv -vcodec copy -acodec copy -map 0:a -map 0:v -f mpegts output.ts

Command line : See attached log. Too large to paste.

#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'''

#2474 MKV transcoded to MKV with copied attachments is unplayable if output is stdout avformat defect Apr 16, 2013

Summary of the bug:

A MKV that contains attachments (for example additional fonts for subs) that is transcoded to another MKV, copying the attachements, results in an unplayable file ([02189f60] mkv demux error: cannot find any cluster, damaged file ?) if the output specified to ffmpeg is stdout (-) instead of a regular file.

If the attachements streams are omitted in the transcoded output file, the file is playable in both cases.

So there seems to be a specific problem with transcoding to stdout and MKV attachments.

How to reproduce:

First, donwload this MKV containing attachments: http://www.auby.no/files/video_tests/h264_720p_hp_5.1_6mbps_ac3_unstyled_subs_planet.mkv

Let's transcode it to MKV, copying the attachement streams, to a regular file named file1.mkv. This file is playabale.

$ ffmpeg -async 1 -i h264_720p_hp_5.1_6mbps_ac3_unstyled_subs_planet.mkv -map 0 -vf scale="trunc(oh*a/2)*2:240" -vcodec libx264 -preset medium -acodec libmp3lame -ac 2 -ab 128000 -f matroska file1.mkv
ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
  built on Mar 28 2013 00:28:48 with gcc 4.8.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --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-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 18.100 / 52. 18.100
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.104 / 54. 63.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 42.103 /  3. 42.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, matroska,webm, from 'h264_720p_hp_5.1_6mbps_ac3_unstyled_subs_planet.mkv':
  Metadata:
    title           : Planet.Earth.EP01.From.Pole.to.Pole.2006.720p.HDDVD.x264-ESiR
    creation_time   : 2011-03-01 00:35:17
  Duration: 00:01:52.83, start: 0.000000, bitrate: 7066 kb/s
    Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x720, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      title           : Planet Earth - EP01 - From Pole to Pole
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
    Metadata:
      title           : AC3 5.1
    Stream #0:2(eng): Subtitle: ssa (default)
    Stream #0:3(rum): Subtitle: ssa
Codec 0x18000 is not in the full list.
    Stream #0:4: Attachment: unknown_codec
    Metadata:
      filename        : exprswy_free.ttf
      mimetype        : application/x-truetype-font
Codec 0x18000 is not in the full list.
    Stream #0:5: Attachment: unknown_codec
    Metadata:
      filename        : Framd.TTF
      mimetype        : application/x-truetype-font
-async is forwarded to lavfi similarly to -af aresample=async=1:min_hard_comp=0.100000:first_pts=0.
[libx264 @ 0422f380] using SAR=640/639
[libx264 @ 0422f380] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0422f380] profile High, level 2.1
[libx264 @ 0422f380] 264 - core 130 r2274 c832fe9 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - 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=12 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=23 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, matroska, to 'file1.mkv':
  Metadata:
    title           : Planet.Earth.EP01.From.Pole.to.Pole.2006.720p.HDDVD.x264-ESiR
    encoder         : Lavf54.63.104
    Stream #0:0(eng): Video: h264 (H264 / 0x34363248), yuv420p, 426x240 [SAR 640:639 DAR 16:9], q=-1--1, 1k tbn, 23.98 tbc (default)
    Metadata:
      title           : Planet Earth - EP01 - From Pole to Pole
    Stream #0:1(eng): Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      title           : AC3 5.1
    Stream #0:2(eng): Subtitle: ssa (default)
    Stream #0:3(rum): Subtitle: ssa
Codec 0x18000 is not in the full list.
    Stream #0:4: Attachment: unknown_codec
    Metadata:
      filename        : exprswy_free.ttf
      mimetype        : application/x-truetype-font
Codec 0x18000 is not in the full list.
    Stream #0:5: Attachment: unknown_codec
    Metadata:
      filename        : Framd.TTF
      mimetype        : application/x-truetype-font
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> libx264)
  Stream #0:1 -> #0:1 (ac3 -> libmp3lame)
  Stream #0:2 -> #0:2 (ass -> ass)
  Stream #0:3 -> #0:3 (ass -> ass)
  Stream #0:4 -> #0:4 (copy)
  Stream #0:5 -> #0:5 (copy)
Press [q] to stop, [?] for help
frame= 2705 fps=155 q=2686567.0 Lsize=   11312kB time=00:01:52.84 bitrate= 821.2kbits/s
video:9298kB audio:1764kB subtitle:2 global headers:2kB muxing overhead 2.238986%
[libx264 @ 0422f380] frame I:20    Avg QP:19.09  size: 15456
[libx264 @ 0422f380] frame P:1418  Avg QP:23.83  size:  5843
[libx264 @ 0422f380] frame B:1267  Avg QP:25.03  size:   730
[libx264 @ 0422f380] consecutive B-frames: 29.4% 21.1% 10.3% 39.2%
[libx264 @ 0422f380] mb I  I16..4: 39.5% 30.6% 30.0%
[libx264 @ 0422f380] mb P  I16..4:  0.4%  0.4%  0.8%  P16..4: 26.9% 16.7% 13.4%  0.0%  0.0%    skip:41.4%
[libx264 @ 0422f380] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8: 29.4%  2.7%  1.3%  direct: 3.2%  skip:63.4%  L0:32.1% L1:49.9% BI:18.0%
[libx264 @ 0422f380] 8x8 transform intra:27.2% inter:46.1%
[libx264 @ 0422f380] coded y,uvDC,uvAC intra: 64.7% 65.6% 50.9% inter: 23.3% 12.8% 1.7%
[libx264 @ 0422f380] i16 v,h,dc,p: 70% 10%  9% 11%
[libx264 @ 0422f380] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 18% 19%  8%  8%  7%  8%  8% 13%
[libx264 @ 0422f380] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 18% 15%  9%  9%  8% 10%  7% 13%
[libx264 @ 0422f380] i8c dc,h,v,p: 65% 18% 11%  6%
[libx264 @ 0422f380] Weighted P-Frames: Y:11.3% UV:0.9%
[libx264 @ 0422f380] ref P L0: 70.0% 20.6%  5.8%  3.4%  0.2%
[libx264 @ 0422f380] ref B L0: 87.3%  9.6%  3.1%
[libx264 @ 0422f380] ref B L1: 87.6% 12.4%
[libx264 @ 0422f380] kb/s:675.06

Now let's transcode it but specifying stdout (-) as the output and redirecting stdout to file2.mkv. file2.mkv is not playabale and VLC gives error "mkv demux error: cannot find any cluster, damaged file ?". Discarding the attachement streams in the resulting file would render the file playable.

$ ffmpeg -async 1 -i h264_720p_hp_5.1_6mbps_ac3_unstyled_subs_planet.mkv -map 0 -vf scale="trunc(oh*a/2)*2:240" -vcodec libx264 -preset medium -acodec libmp3lame -ac 2 -ab 128000 -f matroska - > file2.mkv
ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
  built on Mar 28 2013 00:28:48 with gcc 4.8.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --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-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 18.100 / 52. 18.100
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.104 / 54. 63.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 42.103 /  3. 42.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, matroska,webm, from 'h264_720p_hp_5.1_6mbps_ac3_unstyled_subs_planet.mkv':
  Metadata:
    title           : Planet.Earth.EP01.From.Pole.to.Pole.2006.720p.HDDVD.x264-ESiR
    creation_time   : 2011-03-01 00:35:17
  Duration: 00:01:52.83, start: 0.000000, bitrate: 7066 kb/s
    Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x720, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      title           : Planet Earth - EP01 - From Pole to Pole
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
    Metadata:
      title           : AC3 5.1
    Stream #0:2(eng): Subtitle: ssa (default)
    Stream #0:3(rum): Subtitle: ssa
Codec 0x18000 is not in the full list.
    Stream #0:4: Attachment: unknown_codec
    Metadata:
      filename        : exprswy_free.ttf
      mimetype        : application/x-truetype-font
Codec 0x18000 is not in the full list.
    Stream #0:5: Attachment: unknown_codec
    Metadata:
      filename        : Framd.TTF
      mimetype        : application/x-truetype-font
-async is forwarded to lavfi similarly to -af aresample=async=1:min_hard_comp=0.100000:first_pts=0.
[libx264 @ 0433cba0] using SAR=640/639
[libx264 @ 0433cba0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0433cba0] profile High, level 2.1
[libx264 @ 0433cba0] 264 - core 130 r2274 c832fe9 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - 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=12 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=23 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, matroska, to 'pipe:':
  Metadata:
    title           : Planet.Earth.EP01.From.Pole.to.Pole.2006.720p.HDDVD.x264-ESiR
    encoder         : Lavf54.63.104
    Stream #0:0(eng): Video: h264 (H264 / 0x34363248), yuv420p, 426x240 [SAR 640:639 DAR 16:9], q=-1--1, 1k tbn, 23.98 tbc (default)
    Metadata:
      title           : Planet Earth - EP01 - From Pole to Pole
    Stream #0:1(eng): Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      title           : AC3 5.1
    Stream #0:2(eng): Subtitle: ssa (default)
    Stream #0:3(rum): Subtitle: ssa
Codec 0x18000 is not in the full list.
    Stream #0:4: Attachment: unknown_codec
    Metadata:
      filename        : exprswy_free.ttf
      mimetype        : application/x-truetype-font
Codec 0x18000 is not in the full list.
    Stream #0:5: Attachment: unknown_codec
    Metadata:
      filename        : Framd.TTF
      mimetype        : application/x-truetype-font
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> libx264)
  Stream #0:1 -> #0:1 (ac3 -> libmp3lame)
  Stream #0:2 -> #0:2 (ass -> ass)
  Stream #0:3 -> #0:3 (ass -> ass)
  Stream #0:4 -> #0:4 (copy)
  Stream #0:5 -> #0:5 (copy)
Press [q] to stop, [?] for help
frame= 2705 fps=160 q=2686567.0 Lsize=   11316kB time=00:01:52.84 bitrate= 821.5kbits/s
video:9298kB audio:1764kB subtitle:2 global headers:2kB muxing overhead 2.277988%
[libx264 @ 0433cba0] frame I:20    Avg QP:19.09  size: 15456
[libx264 @ 0433cba0] frame P:1418  Avg QP:23.83  size:  5843
[libx264 @ 0433cba0] frame B:1267  Avg QP:25.03  size:   730
[libx264 @ 0433cba0] consecutive B-frames: 29.4% 21.1% 10.3% 39.2%
[libx264 @ 0433cba0] mb I  I16..4: 39.5% 30.6% 30.0%
[libx264 @ 0433cba0] mb P  I16..4:  0.4%  0.4%  0.8%  P16..4: 26.9% 16.7% 13.4%  0.0%  0.0%    skip:41.4%
[libx264 @ 0433cba0] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8: 29.4%  2.7%  1.3%  direct: 3.2%  skip:63.4%  L0:32.1% L1:49.9% BI:18.0%
[libx264 @ 0433cba0] 8x8 transform intra:27.2% inter:46.1%
[libx264 @ 0433cba0] coded y,uvDC,uvAC intra: 64.7% 65.6% 50.9% inter: 23.3% 12.8% 1.7%
[libx264 @ 0433cba0] i16 v,h,dc,p: 70% 10%  9% 11%
[libx264 @ 0433cba0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 18% 19%  8%  8%  7%  8%  8% 13%
[libx264 @ 0433cba0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 18% 15%  9%  9%  8% 10%  7% 13%
[libx264 @ 0433cba0] i8c dc,h,v,p: 65% 18% 11%  6%
[libx264 @ 0433cba0] Weighted P-Frames: Y:11.3% UV:0.9%
[libx264 @ 0433cba0] ref P L0: 70.0% 20.6%  5.8%  3.4%  0.2%
[libx264 @ 0433cba0] ref B L0: 87.3%  9.6%  3.1%
[libx264 @ 0433cba0] ref B L1: 87.6% 12.4%
[libx264 @ 0433cba0] kb/s:675.06


#2496 seek swf file failed undetermined defect Apr 24, 2013

When I used ffmpeg lib in my application I met an error (av_seek_frame returned -1). And then I used ffplay to play the video, and when I seeked in ffplay, it failed again.

below is the output from ffplay $ ffplay.exe big_buck_bunny.swf

5.56 A-V: -0.004 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 = 0B f=0/0

ffplay version N-50025-gb8bb661 Copyright (c) 2003-2013 the FFmpeg developers

built on Feb 17 2013 02:37:45 with gcc 4.7.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --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-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.103 / 54. 91.103 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 38.100 / 3. 38.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100

[swf @ 03c41800] max_analyze_duration 5000000 reached at 5008151 microseconds [swf @ 03c41800] Estimating duration from bitrate, this may be inaccurate Input #0, swf, from 'big_buck_bunny.swf':

Duration: 00:06:30.11, start: 0.000000, bitrate: 47 kb/s

Stream #0:0: Audio: mp3, 22050 Hz, stereo, s16p, 48 kb/s Stream #0:1: Video: flv1, yuv420p, 640x360, 23.98 fps, 47.92 tbr, 23.96 tbn

Seek to 70% ( 0:04:33) of total duration ( 0:06:30) big_buck_bunny.swf: error while seeking


#2515 Output file incompatible with PS3 and a Panasonic TV when muxing h264 to mpegts undetermined defect Apr 30, 2013

I have a set of files that are identical in MediaInfo? except for bitrate. I'm trying to mux them to MPEG-TS using the following command:

ffmpeg -i input.mkv -c:a copy -v:a copy -vbsf h264_mp4toannexb -f mpegts output.mpeg

The strange thing is that one file in the set is coming out differently to the others, causing it to be incompatible with devices over DLNA (tested on a PS3 and a Panasonic TV). MediaInfo? doesn't report any difference between the output files, either, except for bitrate.

Windows Explorer reads them differently, though; the file that does work is read by Windows to have the correct resolution but incorrect duration (1920x1080 and 18 hours long) and the one that does not work is reported by Windows to have the incorrect resolution but correct duration (720x480 and 10 seconds). Windows is horrible at reading file info but the fact that it sees the two files very differently shows that there is a difference between them. Windows does not show any difference between the input files; it correctly detects their duration and resolution.

I have uploaded 10 second samples of 2 of the files after verifying that the bug is reproducible via the samples. Produces erroneous file: http://www.spirton.com/uploads/FFmpeg/20130430-1.mkv Produces normal file: http://www.spirton.com/uploads/FFmpeg/20130430-2.mkv

I have tried several versions of FFmpeg, from the latest from Git master to versions several years old, with the same result each time.


#2547 -muxrate option doesn't work with stream_segment mpegts output avformat defect May 9, 2013

When I use the -muxrate parameter with the mpegts muxer directly, it works fine without any errors and I get the desired muxrate. But it is not working when using the mpegts muxer indirectly via the stream_segment muxer (even after patching segment.c to pass the muxrate parameter to the mpegts muxer and verifying that the right value was passed - see below).

Using mpegts muxer directly: ffmpeg -i lg4test.ts -map 0:0 -vcodec libx264 -s 640x360 -b:v 1M -minrate 1M -maxrate 1M -bufsize 500K -muxrate 1.25M -g 60 -profile:v main -map 0:1 -acodec aac -strict experimental -b:a 128K -ac 2 -ar 48000 -f mpegts -v verbose test.ts

Complete console output attached as: mpegts_output.txt

Quote from the output: [mpegts @ 0x7fc381829c00] muxrate 1250000, pcr every 16 pkts, sdt every 415, pat/pmt every 83 pkts

So, that looks good. Next I want to do the same thing when using mpegts via the stream_segment muxer.

First I edited libavformat/segment.c to enable the muxrate option to be passed to the muxer specified by -segment_format, via a new option called -segment_format_muxrate (see patch attached). There may be a better way to accomplish this, but it works for now. If you prefer, I can submit this patch first to ffmpeg-devel and then inquire about this bug.

Next, making use of this new option:

ffmpeg -i lg4test.ts -map 0:0 -vcodec libx264 -s 640x360 -b:v 1M -minrate 1M -maxrate 1M -bufsize 500K -muxrate 1.25M -g 60 -profile:v main -map 0:1 -acodec aac -strict experimental -b:a 128K -ac 2 -ar 48000 -f ssegment -segment_list test.m3u8 -segment_list_flags +live -segment_time 10 -segment_format mpegts -segment_format_muxrate 1.25M -segment_time_delta 1.0 -v verbose test%05d.ts

Complete console output attached as: ssegment_output.txt

This message cofirms that the muxrate option was correctly passed to the mpegts muxer: [mpegts @ 0x7fdff3c16800] muxrate 1250000, pcr every 16 pkts, sdt every 415, pat/pmt every 83 pkts

However, as you can see in the console output, I now get this error message repeated very often: [mpegts @ 0x7fdff3c16800] dts < pcr, TS is invalid

Last message repeated 58 times

When this error occurs, I found that the size of each segment file (which should be all roughly the same size, since they are all approx. the same duration) is actually growing by multiples, e.g.: ls -al test0*.ts -rw-r--r-- 1 jasonlivingston admin 1657784 May 8 22:39 test00000.ts -rw-r--r-- 1 jasonlivingston admin 3273268 May 8 22:39 test00001.ts -rw-r--r-- 1 jasonlivingston admin 5023736 May 8 22:39 test00002.ts -rw-r--r-- 1 jasonlivingston admin 6452160 May 8 22:39 test00003.ts -rw-r--r-- 1 jasonlivingston admin 8077796 May 8 22:39 test00004.ts -rw-r--r-- 1 jasonlivingston admin 9741784 May 8 22:39 test00005.ts -rw-r--r-- 1 jasonlivingston admin 11516692 May 8 22:39 test00006.ts -rw-r--r-- 1 jasonlivingston admin 13087244 May 8 22:39 test00007.ts -rw-r--r-- 1 jasonlivingston admin 14500816 May 8 22:39 test00008.ts -rw-r--r-- 1 jasonlivingston admin 16241884 May 8 22:39 test00009.ts

Again, these are all the same duration and same CBR, so they should be roughly the same size.

Any ideas why this works fine for using mpegts directly, but not when using mpegts via ssegment?


#2594 ffmpeg stalls when accessing a live Windows Media stream with multiple audio and video streams undetermined defect May 21, 2013

Summary of the bug:

ffmpeg stalls when accessing a live Windows Media stream with multiple audio and video streams.

How to reproduce:

% ffmpeg -i mmsh://livewms.europarl.europa.eu/reflector:52819 -c copy -map 0:0 -map 0:23 -f matroska output.mkv

ffmpeg version N-52045-g694fa00 Copyright (c) 2000-2013 the FFmpeg developers
  built on Apr 12 2013 16:54:51 with gcc 4.8.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-l
bass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-l
bopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo
amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 26.100 / 52. 26.100
  libavcodec     55.  2.100 / 55.  2.100
  libavformat    55.  2.100 / 55.  2.100
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 53.101 /  3. 53.101
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[wmv3 @ 02770c80] Extra data: 8 bits left, value: 0
[wmv3 @ 027717c0] Extra data: 8 bits left, value: 0
[wmv3 @ 02772e80] Extra data: 8 bits left, value: 0
[asf @ 026579a0] max_analyze_duration 5000000 reached at 5180000 microseconds
Guessed Channel Layout for  Input Stream #0.0 : stereo
Guessed Channel Layout for  Input Stream #0.1 : stereo
Guessed Channel Layout for  Input Stream #0.2 : stereo
Guessed Channel Layout for  Input Stream #0.3 : stereo
Guessed Channel Layout for  Input Stream #0.4 : stereo
Guessed Channel Layout for  Input Stream #0.5 : stereo
Guessed Channel Layout for  Input Stream #0.6 : stereo
Guessed Channel Layout for  Input Stream #0.7 : stereo
Guessed Channel Layout for  Input Stream #0.8 : stereo
Guessed Channel Layout for  Input Stream #0.9 : stereo
Guessed Channel Layout for  Input Stream #0.10 : stereo
Guessed Channel Layout for  Input Stream #0.11 : stereo
Guessed Channel Layout for  Input Stream #0.12 : stereo
Guessed Channel Layout for  Input Stream #0.13 : stereo
Guessed Channel Layout for  Input Stream #0.14 : stereo
Guessed Channel Layout for  Input Stream #0.15 : stereo
Guessed Channel Layout for  Input Stream #0.16 : stereo
Guessed Channel Layout for  Input Stream #0.17 : stereo
Guessed Channel Layout for  Input Stream #0.18 : stereo
Guessed Channel Layout for  Input Stream #0.19 : stereo
Guessed Channel Layout for  Input Stream #0.20 : stereo
Guessed Channel Layout for  Input Stream #0.21 : stereo
Guessed Channel Layout for  Input Stream #0.22 : stereo
Guessed Channel Layout for  Input Stream #0.25 : stereo
Input #0, asf, from 'mmsh://livewms.europarl.europa.eu/reflector:52819':
  Metadata:
    WMFSDKVersion   : 11.0.5721.5145
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
    DeviceConformanceTemplate: MP@LL
  Duration: N/A, start: 70625.818000, bitrate: 1663 kb/s
    Stream #0:0(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:1(fre): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:2(ger): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:3(ita): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:4(spa): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:5(gre): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:6(por): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:7(dut): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:8(dan): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:9(fin): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:10(swe): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:11(cze): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:12(est): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:13(lav): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:14(lit): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:15(hun): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:16(mlt): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:17(pol): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:18(slo): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:19(slv): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:20(bul): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:21(rum): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:22(hrv): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:23(eng): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 384x288, 512 kb/s, 1k tbr, 1k tbn, 1k tbc
    Stream #0:24(eng): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 384x288, 256 kb/s, 1k tbr, 1k tbn, 1k tbc
    Stream #0:25(zul): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, fltp, 31 kb/s
    Stream #0:26(eng): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 192x144, 128 kb/s, 25 tbr, 1k tbn, 1k tbc
Output #0, matroska, to 'output.mkv':
  Metadata:
    WMFSDKVersion   : 11.0.5721.5145
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
    DeviceConformanceTemplate: MP@LL
    encoder         : Lavf55.2.100
    Stream #0:0(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, 31 kb/s
    Stream #0:1(eng): Video: wmv3 (WMV3 / 0x33564D57), yuv420p, 384x288, q=2-31, 512 kb/s, 1k tbn, 1k tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:23 -> #0:1 (copy)
Press [q] to stop, [?] for help
^C
Received signal 2: terminating.

Normally after the "press [q] to stop" ffmpeg outputs capture statistics. Here nothing happens and ffmpeg just stalls (I used "Ctrl+C" to exit). No rise in CPU either.

"mplayer -dumpstream" can save the file, albeit with some problems previously discussed in the closed bug #2572


#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.


#2617 Playback of HLS fails when one of the variant streams are down avformat defect May 31, 2013

Summary of the bug: In cases of poorly managed HLS streams where one of the variant streams inside the m3u8 playlist are down, ffmpeg fails to play as soon as it sees a 404 error for one of the variant streams, while iOS ignores the dead stream and just plays it with the ones that work. How to reproduce:

ffmpeg -i http://telly.powerrangermail.net/hlstest/playlist.m3u8
ffmpeg version N-53690-g2886e80 Copyright (c) 2000-2013 the FFmpeg developers
  built on May 30 2013 15:49:51 with gcc 4.7 (Ubuntu/Linaro 4.7.3-1ubuntu1)
  configuration: --prefix=/usr --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-postproc --enable-libx264 --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdc1394 --enable-libmp3lame --enable-libtheora --enable-libopenjpeg --enable-libvpx --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libxvid --enable-libfaac --cpu=amdfam10 --enable-x11grab --enable-libxavs --enable-libfreetype --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libcelt --enable-openal --enable-libcdio --enable-libaacplus --enable-libmodplug --enable-libpulse --enable-openssl --enable-libv4l2 --enable-libass --enable-libbluray --enable-avresample --enable-libiec61883 --enable-libopus --enable-libcaca --enable-libfdk-aac --enable-libilbc --enable-libtwolame --enable-librtmp --enable-libsoxr --disable-stripping --enable-libaacplus --enable-opencl --enable-libflite --enable-libquvi
  libavutil      52. 34.100 / 52. 34.100
  libavcodec     55. 12.102 / 55. 12.102
  libavformat    55.  8.100 / 55.  8.100
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 73.100 /  3. 73.100
  libavresample   1.  1.  0 /  1.  1.  0
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[http @ 0xf8d2c0] HTTP error 404 Not Found
http://telly.powerrangermail.net/hlstest/playlist.m3u8: Input/output error

Since the stream in question that I use is only available weekdays for one hour a day, the output above is with a sample I created that intentionally has the same error so you can reproduce.


#2622 Subtitle (hdmv pgs) remux fails avformat defect Jun 2, 2013

Summary of the bug:ffmpeg fails when remuxing hdmv pgs subtitles

How to reproduce:ffmpeg -i hdmv_pgs_subtitle_remux_fail.m2ts -map 0 -c copy out.m2ts

ffmpeg version: git-master
June 1, 2013
Files are available on the ftp under incoming/hdmv_pgs_subtitle_remux_fail.tgz

Attempted to run
skifreak@LedBox ~/Documents/x264 Encoding/hdmv_pgs_subtitle_remux_fail $ ffmpeg -i hdmv_pgs_subtitle_remux_fail.m2ts -map 0 -c copy /tmp/test.m2tsffmpeg version N-53758-g5711e4f Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun  1 2013 18:59:50 with gcc 4.5.4 (Gentoo 4.5.4 p1.1, pie-0.4.7)
  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 --enable-libvo-amrwbenc --enable-libmp3lame --disable-libfdk-aac --disable-libaacplus --disable-libfaac --enable-libtheora --disable-libtwolame --enable-libx264 --enable-libxvid --disable-libcdio --disable-libiec61883 --enable-libdc1394 -  libavutil      52. 34.100 / 52. 34.100
  libavcodec     55. 13.100 / 55. 13.100
  libavformat    55.  8.102 / 55.  8.102
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 74.101 /  3. 74.101
  libavresample   1.  1.  0 /  1.  1.  0
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[mpegts @ 0x25698a0] Stream #3: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x25698a0] Stream #4: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x25698a0] Could not find codec parameters for stream 3 (Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x25698a0] Could not find codec parameters for stream 4 (Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[NULL @ 0x256f780] start time is not set in estimate_timings_from_pts
[NULL @ 0x25701c0] start time is not set in estimate_timings_from_pts
[mpegts @ 0x25698a0] PES packet size mismatch
Input #0, mpegts, from 'hdmv_pgs_subtitle_remux_fail.m2ts':
  Duration: 00:00:05.22, start: 65.986667, bitrate: 23524 kb/s
  Program 1 
    Stream #0:0[0x1011]: Video: vc1 (VC-1 / 0x312D4356), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
    Stream #0:1[0x1100]: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, 5.1(side), s16, 4608 kb/s
    Stream #0:2[0x1101]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 640 kb/s
    Stream #0:3[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
    Stream #0:4[0x1201]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
File '/tmp/test.m2ts' already exists. Overwrite ? [y/N] y
Output #0, mpegts, to '/tmp/test.m2ts':
  Metadata:
    encoder         : Lavf55.8.102
    Stream #0:0: Video: vc1 (VC-1 / 0x312D4356), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 90k tbn, 23.98 tbc
    Stream #0:1: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, 5.1(side), 4608 kb/s
    Stream #0:2: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), 640 kb/s
    Stream #0:3: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
    Stream #0:4: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
  Stream #0:2 -> #0:2 (copy)
  Stream #0:3 -> #0:3 (copy)
  Stream #0:4 -> #0:4 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0x2570f20] Application provided invalid, non monotonically increasing dts to muxer in stream 3: 458492 >= 458492
av_interleaved_write_frame(): Invalid argument


skifreak@LedBox ~/Documents/x264 Encoding/hdmv_pgs_subtitle_remux_fail $ ffmpeg -v 9 -loglevel 99 -i hdmv_pgs_subtitle_remux_fail.m2ts 
ffmpeg version N-53758-g5711e4f Copyright (c) 2000-2013 the FFmpeg developers                                                                                      
  built on Jun  1 2013 18:59:50 with gcc 4.5.4 (Gentoo 4.5.4 p1.1, pie-0.4.7)                                                                                      
  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 --enable-libvo-amrwbenc --enable-libmp3lame --disable-libfdk-aac --disable-libaacplus --disable-libfaac --enable-libtheora --disable-libtwolame --enable-libx264 --enable-libxvid --disable-libcdio --disable-libiec61883 --enable-libdc1394 -  libavutil      52. 34.100 / 52. 34.100                                                                              
  libavcodec     55. 13.100 / 55. 13.100                                                                                                                           
  libavformat    55.  8.102 / 55.  8.102                                                                                                                           
  libavdevice    55.  2.100 / 55.  2.100                                                                                                                           
  libavfilter     3. 74.101 /  3. 74.101
  libavresample   1.  1.  0 /  1.  1.  0
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  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 'hdmv_pgs_subtitle_remux_fail.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 hdmv_pgs_subtitle_remux_fail.m2ts.                                                                                          
Successfully parsed a group of options.                                                                                                                            
Opening an input file: hdmv_pgs_subtitle_remux_fail.m2ts.                                                                                                          
[mpegts @ 0x12b3080] Format mpegts probed with size=2048 and score=100                                                                                             
[mpegts @ 0x12b3080] stream=0 stream_type=ea pid=1011 prog_reg_desc=HDMV                                                                                           
[mpegts @ 0x12b3080] stream=1 stream_type=80 pid=1100 prog_reg_desc=HDMV                                                                                           
[mpegts @ 0x12b3080] stream=2 stream_type=81 pid=1101 prog_reg_desc=HDMV                                                                                           
[mpegts @ 0x12b3080] stream=3 stream_type=90 pid=1200 prog_reg_desc=HDMV                                                                                           
[mpegts @ 0x12b3080] stream=4 stream_type=90 pid=1201 prog_reg_desc=HDMV                                                                                           
[mpegts @ 0x12b3080] File position before avformat_find_stream_info() is 0                                                                                         
[mpegts @ 0x12b3080] parser not found for codec pcm_bluray, packets or times may be invalid.                                                                       
[mpegts @ 0x12b3080] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.                                                                
    Last message repeated 1 times
[mpegts @ 0x12b3080] parser not found for codec pcm_bluray, packets or times may be invalid.
[NULL @ 0x12b7160] Header: DBFE3BF2                                                                                                                                
[NULL @ 0x12b7160] Advanced Profile level 3:                                                                                                                       
frmrtq_postproc=7, bitrtq_postproc=31                                                                                                                              
LoopFilter=0, ChromaFormat=1, Pulldown=1, Interlace: 0                                                                                                             
TFCTRflag=0, FINTERPflag=0                                                                                                                                         
[NULL @ 0x12b7160] Display extended info:                                                                                                                          
[NULL @ 0x12b7160] Display dimensions: 1920x1080                                                                                                                   
[NULL @ 0x12b7160] Aspect: 1:1                                                                                                                                     
[NULL @ 0x12b7160] Entry point: 1ADFFCEF                                                                                                                           
[NULL @ 0x12b7160] Entry point info:                                                                                                                               
BrokenLink=0, ClosedEntry=0, PanscanFlag=0                                                                                                                         
RefDist=1, Postproc=1, FastUVMC=0, ExtMV=1                                                                                                                         
DQuant=1, VSTransform=1, Overlap=0, Qmode=3                                                                                                                        
[NULL @ 0x12b7160] Header: DBFE3BF2                                                                                                                                
[NULL @ 0x12b7160] Advanced Profile level 3:                                                                                                                       
frmrtq_postproc=7, bitrtq_postproc=31                                                                                                                              
LoopFilter=1, ChromaFormat=1, Pulldown=1, Interlace: 0                                                                                                             
TFCTRflag=0, FINTERPflag=0                                                                                                                                         
[NULL @ 0x12b7160] Display extended info:                                                                                                                          
[NULL @ 0x12b7160] Display dimensions: 1920x1080                                                                                                                   
[NULL @ 0x12b7160] Aspect: 1:1                                                                                                                                     
[NULL @ 0x12b7160] Entry point: 1ADFFCEF                                                                                                                           
[NULL @ 0x12b7160] Entry point info:                                                                                                                               
BrokenLink=0, ClosedEntry=0, PanscanFlag=0                                                                                                                         
RefDist=1, Postproc=1, FastUVMC=0, ExtMV=1                                                                                                                         
DQuant=1, VSTransform=1, Overlap=0, Qmode=3                                                                                                                        
[NULL @ 0x12b7160] Header: DBFE3BF2                                                                                                                                
[NULL @ 0x12b7160] Advanced Profile level 3:                                                                                                                       
frmrtq_postproc=7, bitrtq_postproc=31                                                                                                                              
LoopFilter=1, ChromaFormat=1, Pulldown=1, Interlace: 0                                                                                                             
TFCTRflag=0, FINTERPflag=0                                                                                                                                         
[NULL @ 0x12b7160] Display extended info:                                                                                                                          
[NULL @ 0x12b7160] Display dimensions: 1920x1080                                                                                                                   
[NULL @ 0x12b7160] Aspect: 1:1                                                                                                                                     
[NULL @ 0x12b7160] Entry point: 1ADFFCEF                                                                                                                           
[NULL @ 0x12b7160] Entry point info:                                                                                                                               
BrokenLink=0, ClosedEntry=0, PanscanFlag=0                                                                                                                         
RefDist=1, Postproc=1, FastUVMC=0, ExtMV=1                                                                                                                         
DQuant=1, VSTransform=1, Overlap=0, Qmode=3                                                                                                                        
[mpegts @ 0x12b3080] Probe buffer size limit of 5000000 bytes reached                                                                                              
[mpegts @ 0x12b3080] Stream #3: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x12b3080] Stream #4: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x12b3080] Could not find codec parameters for stream 3 (Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x12b3080] Could not find codec parameters for stream 4 (Subtitle: hdmv_pgs_subtitle (pgssub) ([144][0][0][0] / 0x0090)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[NULL @ 0x12b9020] start time is not set in estimate_timings_from_pts
[NULL @ 0x12b9a60] start time is not set in estimate_timings_from_pts
[mpegts @ 0x12b3080] PES packet size mismatch
[mpegts @ 0x12b3080] File position after avformat_find_stream_info() is 0
Input #0, mpegts, from 'hdmv_pgs_subtitle_remux_fail.m2ts':
  Duration: 00:00:05.22, start: 65.986667, bitrate: 23524 kb/s
  Program 1 
    Stream #0:0[0x1011], 37, 1/90000: Video: vc1 (VC-1 / 0x312D4356), 1920x1080 [SAR 1:1 DAR 16:9], 1001/48000, 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
    Stream #0:1[0x1100], 325, 1/90000: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, 5.1(side), s16, 4608 kb/s
    Stream #0:2[0x1101], 50, 1/90000: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), fltp, 640 kb/s
    Stream #0:3[0x1200], 0, 1/90000: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
    Stream #0:4[0x1201], 0, 1/90000: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
Successfully opened the file.
At least one output file must be specified
[AVIOContext @ 0x12bb7a0] Statistics: 5984400 bytes read, 3 seeks

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


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