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

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

Results (1 - 100 of 524)

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.


#5741 Wrong probing of an mp3 file avformat defect Jul 27, 2016

Summary of the bug:

Probing a specific mp3 file gives strange and totally unacurrate results, while mediainfo or exiftool give the right result

How to reproduce:

% ffprobe defect_mp3.mp3
ffprobe started on 2016-07-27 at 20:06:17
Report written to "ffprobe-20160727-200617.log"
Command line:
ffprobe -report "01 - Mein Herz.mp3"
ffprobe version 3.1.1 Copyright (c) 2007-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
[file @ 0x55f43fce2400] Setting default whitelist 'file,crypto'
[mpeg @ 0x55f43fce1ca0] Format mpeg probed with size=131072 and score=52
[mpeg @ 0x55f43fce1ca0] id3v2 ver:3 flags:00 len:104415
[mpeg @ 0x55f43fce1ca0] demuxer does not support additional id3 data, skipping
[mpeg @ 0x55f43fce1ca0] Before avformat_find_stream_info() pos: 104425 bytes read:131072 seeks:0 nb_streams:0
[mpeg @ 0x55f43fce1ca0] probing stream 0 pp:2500
[mpeg @ 0x55f43fce1ca0] Probe with size=677, packets=1 detected mp3 with score=1
[mpeg @ 0x55f43fce1ca0] probing stream 0 pp:2499
[mpeg @ 0x55f43fce1ca0] Probe with size=1354, packets=2 detected mp3 with score=1
[mpeg @ 0x55f43fce1ca0] probing stream 0 pp:2498
[mpeg @ 0x55f43fce1ca0] probing stream 0 pp:2497
[mpeg @ 0x55f43fce1ca0] Probe with size=2708, packets=4 detected mp3 with score=1
[mpeg @ 0x55f43fce1ca0] probing stream 0 pp:2496
[mpeg @ 0x55f43fce1ca0] probing stream 0 pp:2495
[mpeg @ 0x55f43fce1ca0] pes_ext C6 is invalid
[mpeg @ 0x55f43fce1ca0] pes_ext C8 is invalid
[mpeg @ 0x55f43fce1ca0] probing stream 6 pp:2500
[mpeg @ 0x55f43fce1ca0] Probe with size=22613, packets=1 detected mp3 with score=25
[mpeg @ 0x55f43fce1ca0] probed stream 6
[mpeg @ 0x55f43fce1ca0] probing stream 0 pp:2494
[mpeg @ 0x55f43fce1ca0] Probe with size=4062, packets=2500 detected mp3 with score=1
[mpeg @ 0x55f43fce1ca0] probed stream 0
[mp3 @ 0x55f43fce2c60] Header missing
[mp3 @ 0x55f43fce2c60] Header missing
[mp3 @ 0x55f43fce2c60] Header missing
[mp3 @ 0x55f43fce2c60] Header missing
[mp3 @ 0x55f43fce2c60] Header missing
[mp3 @ 0x55f43fce2c60] Header missing
[mp3 @ 0x55f43fce7ae0] Header missing
[mp3 @ 0x55f43fce8860] Header missing
[mp3 @ 0x55f43fce95e0] Header missing
[mp3 @ 0x55f43fd09700] Header missing
[mp3 @ 0x55f43fd0fc20] Header missing
[mp3 @ 0x55f43fd1e320] Header missing
[mp3 @ 0x55f43fd1e320] Header missing
[mp3 @ 0x55f43fd24b60] Header missing
[mp3 @ 0x55f43fd25b20] Header missing
[mp3 @ 0x55f43fce2c60] Header missing
[mpeg @ 0x55f43fce1ca0] decoding for stream 0 failed
[mpeg @ 0x55f43fce1ca0] start time for stream 0 is not set in estimate_timings_from_pts
[mpeg @ 0x55f43fce1ca0] start time for stream 1 is not set in estimate_timings_from_pts
[mpeg @ 0x55f43fce1ca0] start time for stream 3 is not set in estimate_timings_from_pts
[mpeg @ 0x55f43fce1ca0] start time for stream 7 is not set in estimate_timings_from_pts
[mpeg @ 0x55f43fce1ca0] stream 0 : no TS found at start of file, duration not set
[mpeg @ 0x55f43fce1ca0] stream 1 : no TS found at start of file, duration not set
[mpeg @ 0x55f43fce1ca0] stream 2 : no PTS found at end of file, duration not set
[mpeg @ 0x55f43fce1ca0] stream 3 : no TS found at start of file, duration not set
[mpeg @ 0x55f43fce1ca0] stream 7 : no TS found at start of file, duration not set
[mpeg @ 0x55f43fce1ca0] Could not find codec parameters for stream 0 (Audio: mp3, 0 channels, s16p): unspecified frame size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpeg @ 0x55f43fce1ca0] After avformat_find_stream_info() pos: 104425 bytes read:25264605 seeks:8 frames:262
Input #0, mpeg, from '01 - Mein Herz.mp3':
  Metadata:
    title           : Mein Herz
    artist          : Oomph!
    track           : 1/15
    album           : OOMPH!
    disc            : 1/1
    genre           : Industrial Metal
    TBPM            : 0
    compilation     : 0
    lyrics-         : 
    TMED            : CD
    TORY            : 1992
    album_artist    : Oomph!
    publisher       : Mayan Records
    ALBUMARTISTSORT : Oomph!
    ASIN            : B0001KA9ZU
    Album Artist Credit: Oomph!
    Artist Credit   : Oomph!
    CATALOGNUMBER   : MYNCD019
    MusicBrainz Album Artist Id: d82ba5f4-da09-479a-ab18-4b1a122c4345
    MusicBrainz Album Id: 1a4910a4-0f2b-4cce-96c9-dec8ca1a05ff
    MusicBrainz Album Release Country: DE
    MusicBrainz Album Status: Official
    MusicBrainz Album Type: album
    MusicBrainz Artist Id: d82ba5f4-da09-479a-ab18-4b1a122c4345
    MusicBrainz Release Group Id: eda49ce7-3f60-3bdb-86fe-d263f1ed8537
    REPLAYGAIN_ALBUM_GAIN: -7.68 dB
    REPLAYGAIN_ALBUM_PEAK: 1.000000
    REPLAYGAIN_TRACK_GAIN: -7.92 dB
    REPLAYGAIN_TRACK_PEAK: 1.000000
    Script          : Latn
    date            : 2004-04-05
  Duration: 23:46:45.20, start: 30374.001044, bitrate: 0 kb/s
    Stream #0:0[0x1e0], 7, 1/90000: Audio: mp3, 0 channels, s16p
    Stream #0:1[0x1d5], 50, 1/90000: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
    Stream #0:2[0x1c3], 22, 1/90000: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
    Stream #0:3[0x1d0], 17, 1/90000: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
    Stream #0:4[0x1c7], 23, 1/90000: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
    Stream #0:5[0x1d7], 53, 1/90000: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
    Stream #0:6[0x1ee], 22, 1/90000: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
    Stream #0:7[0x1ca], 32, 1/90000: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
    Stream #0:8[0x1dc], 36, 1/90000: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
[AVIOContext @ 0x55f43fcea760] Statistics: 25264605 bytes read, 8 seeks

I uploaded the problematic file to https://polochon.lelele.io/defect_mp3.mp3 . Let me know if you want it uploaded directly on the ffmpeg ftp !


#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


#5895 Configure error with GCC 6.2.0 and libsnappy build system defect Oct 18, 2016

When using MinGW-w64 and GCC 6.2.0 and configuring with

--enable-libsnappy

the configure process errors with relocation overflows.

There are numerous overflow errors, but the first is

libstdc++.a(cow-stdexcept.o): In function `_txnal_cow_string_C1_for_exceptions(void*, char const*, void*)':
cow-stdexcept.cc:236:(.text$_Z35_txnal_cow_string_C1_for_exceptionsPvPKcS_+0x2c): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `_ITM_RU1'

This appears to be happening because of the ldflag

-Wl,--image-base,0x140000000

added on line 4769 in configure, and removing this ldflag resolves the issue for me.

This ldflag was added with commit a58c22d61260941fc651add73836882d5b112fdb


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


#5985 error decoding h264 stream with h264_cuvid in udp mpegts avcodec defect Dec 1, 2016

Summary of the bug: ffmpeg crashed, see the log-report, gdb and valgrind output below

the incoming multi-program transport stream contains several programs. They have mpeg2 or h264 video streams. There is no any problem decoding mpeg2 videostream with mpeg2_cuvid. If I capture the h264 stream into mp4 files and then decoding the video stream in mp4 container by h264_cuvid works well without error. So I think the error not relates to video content but to udp protocol.


#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


#6106 Some pcm wavs detected as eac3 avformat defect Jan 27, 2017

Summary of the bug:

I use ffmpeg extensively to identify file formats.

There are some pcm wavs that are mis-identified as varieties of ac3 - recompiling with --disable-demuxer=ac3 fixes it, but that's not nice if you also want to be able to deal with ac3 audio.

This was not a case with a very old FFmpeg I have on a different machine (N-34304-gc0dbab9, built Oct 31 2011), but bisecting 5 years seems... unproductive.

How to reproduce:

Compile ffmpeg (git master) with default settings, and run ffmpeg -i with the file I'm supplying.

$ ./ffmpeg -i pcm_wav_misidentified_as_eac3.wav
ffmpeg version N-83248-gb4a13d442a Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
  configuration: 
  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. 70.100 /  6. 70.100
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
Input #0, wav, from 'pcm_wav_misidentified_as_eac3.wav':
  Duration: 00:00:05.00, bitrate: 1411 kb/s
    Stream #0:0: Audio: eac3 ([1][0][0][0] / 0x0001), 48000 Hz, 5.0(side), fltp, 64 kb/s (visual impaired)
At least one output file must be specified

Built Jan 25 13:03 CET.

Additional comment:

Based on what I read on http://soundfile.sapp.org/doc/WaveFormat/ the stream shouldn't even have to be interpreted by all different codecs as long as the AudioFormat? field (at bytes 20-21) is 0x0001 ? Just a thought...

Full output:

$ ./ffmpeg -v 9 -loglevel 99 -report -i pcm_wav_misidentified_as_eac3.wav
ffmpeg started on 2017-01-27 at 11:50:13
Report written to "ffmpeg-20170127-115013.log"
ffmpeg version N-83248-gb4a13d442a Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
  configuration: 
  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. 70.100 /  6. 70.100
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.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 '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option '-i' ... matched as input url with argument 'pcm_wav_misidentified_as_eac3.wav'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument 9.
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url pcm_wav_misidentified_as_eac3.wav.
Successfully parsed a group of options.
Opening an input file: pcm_wav_misidentified_as_eac3.wav.
[file @ 0x7fb764d02680] Setting default whitelist 'file,crypto'
Probing mp3 score:1 size:2048
Probing wav score:99 size:2048
[wav @ 0x7fb765800000] Format wav probed with size=2048 and score=99
[wav @ 0x7fb765800000] Before avformat_find_stream_info() pos: 44 bytes read:65580 seeks:1 nb_streams:1
[wav @ 0x7fb765800000] probing stream 0 pp:32
Probing mp3 score:1 size:4096
[wav @ 0x7fb765800000] Probe with size=4096, packets=2469 detected mp3 with score=1
[wav @ 0x7fb765800000] probing stream 0 pp:31
Probing mp3 score:1 size:8192
[wav @ 0x7fb765800000] Probe with size=8192, packets=2470 detected mp3 with score=1
[wav @ 0x7fb765800000] probing stream 0 pp:30
[wav @ 0x7fb765800000] probing stream 0 pp:29
Probing mp3 score:1 size:16384
[wav @ 0x7fb765800000] Probe with size=16384, packets=2472 detected mp3 with score=1
[wav @ 0x7fb765800000] probing stream 0 pp:28
[wav @ 0x7fb765800000] probing stream 0 pp:27
[wav @ 0x7fb765800000] probing stream 0 pp:26
[wav @ 0x7fb765800000] probing stream 0 pp:25
[wav @ 0x7fb765800000] probing stream 0 pp:24
[wav @ 0x7fb765800000] probing stream 0 pp:23
[wav @ 0x7fb765800000] probing stream 0 pp:22
[wav @ 0x7fb765800000] probing stream 0 pp:21
[wav @ 0x7fb765800000] probing stream 0 pp:20
[wav @ 0x7fb765800000] probing stream 0 pp:19
[wav @ 0x7fb765800000] probing stream 0 pp:18
[wav @ 0x7fb765800000] probing stream 0 pp:17
Probing ac3 score:25 size:65536
[wav @ 0x7fb765800000] Probe with size=65536, packets=2484 detected ac3 with score=25
[wav @ 0x7fb765800000] probing stream 0 pp:16
[wav @ 0x7fb765800000] probing stream 0 pp:15
[wav @ 0x7fb765800000] probing stream 0 pp:14
[wav @ 0x7fb765800000] probing stream 0 pp:13
[wav @ 0x7fb765800000] probing stream 0 pp:12
[wav @ 0x7fb765800000] probing stream 0 pp:11
[wav @ 0x7fb765800000] probing stream 0 pp:10
[wav @ 0x7fb765800000] probing stream 0 pp:9
[wav @ 0x7fb765800000] probing stream 0 pp:8
[wav @ 0x7fb765800000] probing stream 0 pp:7
[wav @ 0x7fb765800000] probing stream 0 pp:6
[wav @ 0x7fb765800000] probing stream 0 pp:5
[wav @ 0x7fb765800000] probing stream 0 pp:4
[wav @ 0x7fb765800000] probing stream 0 pp:3
[wav @ 0x7fb765800000] probing stream 0 pp:2
[wav @ 0x7fb765800000] probing stream 0 pp:1
Probing ac3 score:50 size:131072
[wav @ 0x7fb765800000] Probe with size=131072, packets=2500 detected ac3 with score=50
[wav @ 0x7fb765800000] probed stream 0
[wav @ 0x7fb765800000] stream 0: start_time: -209146758205323.719 duration: 5.000
[wav @ 0x7fb765800000] format: start_time: -9223372036854.775 duration: 5.000 bitrate=1411 kb/s
[wav @ 0x7fb765800000] After avformat_find_stream_info() pos: 882044 bytes read:947580 seeks:1 frames:16
Input #0, wav, from 'pcm_wav_misidentified_as_eac3.wav':
  Duration: 00:00:05.00, bitrate: 1411 kb/s
    Stream #0:0, 16, 1/44100: Audio: eac3 ([1][0][0][0] / 0x0001), 48000 Hz, 5.0(side), fltp, 64 kb/s (visual impaired)
Successfully opened the file.
At least one output file must be specified
[AVIOContext @ 0x7fb764d028c0] Statistics: 947580 bytes read, 1 seeks

#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!}}}

#6214 raw dnxhd corrupted avcodec defect Mar 3, 2017

When muxing -> pipe -> demuxing raw dnxhd using ffmpeg I get warnings e.g. "Invalid data found when processing input" but also other header parsing related errors.

Is this a bug in dnxhd_parser?

ffmpeg -i ST01489A.nut -c:v dnxhd -flags +ilme+ildct -b:v 120M -f dnxhd - | ffmpeg -i - -f nut - > /dev/null

ffmpeg -i ST01489A.nut -c:v dnxhd -flags +ilme+ildct -b:v 120M -f dnxhd - | ffmpeg -i - -f nut - > /dev/null
ffmpeg version 3.2.4ffmpeg version 3.2.4 Copyright (c) 2000-2017 the FFmpeg developers Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 8.0.0 (clang-800.0.42.1)

  configuration: --prefix=/usr/local/Cellar/ffmpeg/3.2.4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-libmp3lame --enable-libwebp --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
  built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/3.2.4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-libmp3lame --enable-libwebp --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
  libavutil      55. 34.101 / 55. 34.101
  libavcodec     57. 64.101 / 57. 64.101
  libavutil      55. 34.101 / 55. 34.101
  libavformat    57. 56.101 / 57. 56.101
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.101 / 57. 56.101
  libavdevice    57.  1.100 / 57.  1.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
  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, nut, from 'ST01489A.nut':
  Metadata:
    uid             : cf8d6ac2-df42-f44c-8b5e-1ac71f424110
    generation_uid  : 3468e120-b15f-0c44-adda-39ba7e0bcf4b
    company_name    : AVID
    product_name    : TRMG
    product_version : 3.01
    product_uid     : 00000000-0000-0000-0000-000000000000
    modification_date: 2016-11-10 14:11:09
    material_package_umid: 0x060A2B340101010501010D1313000000A2A55C5A1B72414A8842BD6E54E3881C
    timecode        : 00:00:00:00
    encoder         : Lavf57.41.100
  Duration: 00:00:31.59, start: 0.058667, bitrate: 18388 kb/s
    Stream #0:0: Audio: aac (LC) ([255][0][0][0] / 0x00FF), 48000 Hz, stereo, fltp (default)
    Metadata:
      encoder         : Lavc57.48.101 aac
    Stream #0:1: Video: h264 (High 4:2:2) (H264 / 0x34363248), yuv422p, 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 51200 tbn, 50 tbc
    Metadata:
      file_package_umid: 0x060A2B340101010501010D131300000017706BA67365EB40993508EA2E943181
      encoder         : Lavc57.48.101 libx264
Output #0, dnxhd, to 'pipe:':
  Metadata:
    uid             : cf8d6ac2-df42-f44c-8b5e-1ac71f424110
    generation_uid  : 3468e120-b15f-0c44-adda-39ba7e0bcf4b
    company_name    : AVID
    product_name    : TRMG
    product_version : 3.01
    product_uid     : 00000000-0000-0000-0000-000000000000
    modification_date: 2016-11-10 14:11:09
    material_package_umid: 0x060A2B340101010501010D1313000000A2A55C5A1B72414A8842BD6E54E3881C
    timecode        : 00:00:00:00
    encoder         : Lavf57.56.101
    Stream #0:0: Video: dnxhd (DNXHD), yuv422p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-1024, 120000 kb/s, 25 fps, 25 tbn, 25 tbc
    Metadata:
      file_package_umid: 0x060A2B340101010501010D131300000017706BA67365EB40993508EA2E943181
      encoder         : Lavc57.64.101 dnxhd
Stream mapping:
  Stream #0:1 -> #0:0 (h264 (native) -> dnxhd (native))
Press [q] to stop, [?] for help
Input #0, dnxhd, from 'pipe:':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: dnxhd (DNXHD), yuv422p(bt709/unknown/unknown), 1920x1080, 25 fps, 25 tbr, 1200k tbn, 25 tbc
Output #0, nut, to 'pipe:':
  Metadata:
    encoder         : Lavf57.56.101
    Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 1920x1080, q=2-31, 200 kb/s, 25 fps, 51200 tbn, 25 tbc
    Metadata:
      encoder         : Lavc57.64.101 mpeg4
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
Stream mapping:
  Stream #0:0 -> #0:0 (dnxhd (native) -> mpeg4 (native))
[dnxhd @ 0x7fb7ea804200] buffer too small (0 < 640).:18.60 bitrate=121241.6kbits/s dup=1 drop=0 speed=1.91x    
    Last message repeated 1 times
Error while decoding stream #0:0: Invalid data found when processing inputkbits/s speed=1.91x    
    Last message repeated 1 times288896kB time=00:00:19.52 bitrate=121241.6kbits/s dup=1 drop=0 speed=1.91x    
frame=  789 fps= 48 q=3.0 Lsize=  467088kB time=00:00:31.56 bitrate=121241.6kbits/s dup=1 drop=0 speed=1.92x    
video:467088kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
frame=  788 fps= 48 q=24.8 Lsize=    9121kB time=00:00:31.56 bitrate=2367.5kbits/s speed=1.94x    
video:9112kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.092401%

#6227 2 video packets dropped when copying stream if encoding another stream undetermined defect Mar 9, 2017

Summary of the bug:

Given an mp4 file containing h264 video and aac audio streams, I want to reencode the audio and copy the video stream. When I do this the copied video stream is corrupted. Verbose logging shows that two packets are lost from the video stream.

The packets are lost on the copied video stream only if the audio stream is being re-encoded, but not when both streams are copied.

A git bisect determined that this bug appeared in commit af1761f7b5b1b72197dc40934953b775c2d951cc . It is still present in the current git head 58eb0f57f6702d57b6f97ec5010657bb2c076eff .

How to reproduce: A simple shell script to genenate a source and demonstrate the problem:

#!/bin/sh
ffmpeg -v verbose -y -f lavfi -i yuvtestsrc=s=640x360:r=25:d=10,rotate=PI*t -f lavfi -i sine=d=10 -pix_fmt yuv420p -c:v libx264 -c:a aac test.mp4
ffmpeg -v verbose -y -i test.mp4 -c:v copy -c:a copy testcopy.mp4
ffmpeg -v verbose -y -i test.mp4 -c:v copy -c:a aac testaac.mp4

This creates a test mp4 file - test.mp4 It then uses -c copy to show that normal stream copy works fine for video and audio - testcopy.mp4 It then uses copy on the video and re-encodes the audio to demonstrate the problem - testaac.mp4

Output of the above script:

ffmpeg version N-83786-gf940492bb2 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.0 (Gentoo 5.4.0-r3 p1.3, pie-0.6.5)
  configuration: --prefix=/usr/local --libdir=/usr/local/lib64 --shlibdir=/usr/local/lib64 --docdir=/usr/local/share/doc/ffmpeg-9999/html --mandir=/usr/local/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' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  WARNING: library configuration mismatch
  avutil      configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-9999/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  avcodec     configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-9999/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  avformat    configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-9999/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  avdevice    configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-9999/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  avfilter    configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-9999/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  avresample  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-9999/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  swscale     configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-9999/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  swresample  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-9999/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  postproc    configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-9999/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  libavutil      55. 48.100 / 55. 47.101
  libavcodec     57. 82.102 / 57. 82.100
  libavformat    57. 66.103 / 57. 66.103
  libavdevice    57.  3.100 / 57.  3.100
  libavfilter     6. 74.100 /  6. 74.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
[Parsed_yuvtestsrc_0 @ 0x6b1380] size:640x360 rate:25/1 duration:10.000000 sar:1/1
Input #0, lavfi, from 'yuvtestsrc=s=640x360:r=25:d=10,rotate=PI*t':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: rawvideo, 1 reference frame (444P / 0x50343434), yuv444p, 640x360 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
Input #1, lavfi, from 'sine=d=10':
  Duration: N/A, start: 0.000000, bitrate: 705 kb/s
    Stream #1:0: Audio: pcm_s16le, 44100 Hz, mono, s16, 705 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
  Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
[graph 0 input from stream 0:0 @ 0x6d9e00] w:640 h:360 pixfmt:yuv444p tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2
[auto_scaler_0 @ 0x6dbb60] w:iw h:ih flags:'bicubic' interl:0
[format @ 0x6dad60] auto-inserting filter 'auto_scaler_0' between the filter 'Parsed_null_0' and the filter 'format'
[auto_scaler_0 @ 0x6dbb60] w:640 h:360 fmt:yuv444p sar:1/1 -> w:640 h:360 fmt:yuv420p sar:1/1 flags:0x4
[libx264 @ 0x6cb620] using SAR=1/1
[libx264 @ 0x6cb620] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x6cb620] profile High, level 3.0
[libx264 @ 0x6cb620] 264 - core 148 r2762 90a61ec - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - 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=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[graph_1_in_1_0 @ 0xc7e4e0] tb:1/44100 samplefmt:s16 samplerate:44100 chlayout:0x4
[format_out_0_1 @ 0xc7ec80] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter 'format_out_0_1'
[auto_resampler_0 @ 0xc81100] ch:1 chl:mono fmt:s16 r:44100Hz -> ch:1 chl:mono fmt:fltp r:44100Hz
Output #0, mp4, to 'test.mp4':
  Metadata:
    encoder         : Lavf57.66.103
    Stream #0:0: Video: h264 (libx264), 1 reference frame ([33][0][0][0] / 0x0021), yuv420p(progressive), 640x360 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc
    Metadata:
      encoder         : Lavc57.82.102 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, mono, fltp, delay 1024, 69 kb/s
    Metadata:
      encoder         : Lavc57.82.102 aac
frame=  147 fps=0.0 q=25.0 size=     297kB time=00:00:03.57 bitrate= 681.3kbits/s speed=7.14x    
No more output streams to write to, finishing.
frame=  250 fps=241 q=-1.0 Lsize=     835kB time=00:00:10.00 bitrate= 683.2kbits/s speed=9.63x    
video:741kB audio:85kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.094402%
Input file #0 (yuvtestsrc=s=640x360:r=25:d=10,rotate=PI*t):
  Input stream #0:0 (video): 250 packets read (172800000 bytes); 250 frames decoded; 
  Total: 250 packets (172800000 bytes) demuxed
Input file #1 (sine=d=10):
  Input stream #1:0 (audio): 431 packets read (882000 bytes); 431 frames decoded (441000 samples); 
  Total: 431 packets (882000 bytes) demuxed
Output file #0 (test.mp4):
  Output stream #0:0 (video): 250 frames encoded; 250 packets muxed (758615 bytes); 
  Output stream #0:1 (audio): 431 frames encoded (441000 samples); 432 packets muxed (86778 bytes); 
  Total: 682 packets (845393 bytes) muxed
[libx264 @ 0x6cb620] frame I:10    Avg QP:19.34  size:  3494
[libx264 @ 0x6cb620] frame P:101   Avg QP:24.50  size:  2807
[libx264 @ 0x6cb620] frame B:139   Avg QP:26.52  size:  3162
[libx264 @ 0x6cb620] consecutive B-frames: 16.4%  8.8% 58.8% 16.0%
[libx264 @ 0x6cb620] mb I  I16..4: 40.1% 51.2%  8.7%
[libx264 @ 0x6cb620] mb P  I16..4: 22.7% 39.2%  5.3%  P16..4:  7.6%  1.7%  0.7%  0.0%  0.0%    skip:22.7%
[libx264 @ 0x6cb620] mb B  I16..4:  1.3%  0.3%  0.8%  B16..8: 15.6%  5.5%  1.4%  direct:27.0%  skip:48.1%  L0:52.0% L1:44.1% BI: 3.9%
[libx264 @ 0x6cb620] 8x8 transform intra:55.6% inter:19.7%
[libx264 @ 0x6cb620] coded y,uvDC,uvAC intra: 6.7% 36.3% 13.1% inter: 2.8% 30.2% 8.7%
[libx264 @ 0x6cb620] i16 v,h,dc,p: 46%  5%  4% 45%
[libx264 @ 0x6cb620] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 50% 16% 30%  1%  1%  0%  0%  1%  0%
[libx264 @ 0x6cb620] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 19% 36%  4%  3%  3%  3%  2%  2%
[libx264 @ 0x6cb620] i8c dc,h,v,p: 40%  9% 15% 36%
[libx264 @ 0x6cb620] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x6cb620] ref P L0: 90.5%  3.6%  4.3%  1.6%
[libx264 @ 0x6cb620] ref B L0: 94.2%  5.4%  0.3%
[libx264 @ 0x6cb620] ref B L1: 99.7%  0.3%
[libx264 @ 0x6cb620] kb/s:606.34
[aac @ 0x6ccaa0] Qavg: 129.028


ffmpeg version N-83786-gf940492bb2 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.0 (Gentoo 5.4.0-r3 p1.3, pie-0.6.5)
  configuration: --prefix=/usr/local --libdir=/usr/local/lib64 --shlibdir=/usr/local/lib64 --docdir=/usr/local/share/doc/ffmpeg-9999/html --mandir=/usr/local/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' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  WARNING: library configuration mismatch
  avutil      configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-9999/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  avcodec     configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-9999/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  avformat    configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-9999/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  avdevice    configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-9999/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  avfilter    configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-9999/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  avresample  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-9999/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  swscale     configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-9999/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  swresample  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-9999/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  postproc    configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-9999/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  libavutil      55. 48.100 / 55. 47.101
  libavcodec     57. 82.102 / 57. 82.100
  libavformat    57. 66.103 / 57. 66.103
  libavdevice    57.  3.100 / 57.  3.100
  libavfilter     6. 74.100 /  6. 74.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
[h264 @ 0x1241dc0] Reinit context to 640x368, pix_fmt: yuv420p
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.66.103
  Duration: 00:00:10.02, start: 0.000000, bitrate: 682 kb/s
    Stream #0:0(und): Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 640x360 (640x368) [SAR 1:1 DAR 16:9], 606 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 69 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Output #0, mp4, to 'testcopy.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.66.103
    Stream #0:0(und): Video: h264 (High), 1 reference frame ([33][0][0][0] / 0x0021), yuv420p(left), 640x360 (0x0) [SAR 1:1 DAR 16:9], q=2-31, 606 kb/s, 25 fps, 25 tbr, 12800 tbn, 12800 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, mono, fltp, 69 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
No more output streams to write to, finishing.
frame=  250 fps=0.0 q=-1.0 Lsize=     835kB time=00:00:09.98 bitrate= 684.8kbits/s speed=4.08e+03x    
video:741kB audio:85kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.091532%
Input file #0 (test.mp4):
  Input stream #0:0 (video): 250 packets read (758616 bytes); 
  Input stream #0:1 (audio): 432 packets read (86801 bytes); 
  Total: 682 packets (845417 bytes) demuxed
Output file #0 (testcopy.mp4):
  Output stream #0:0 (video): 250 packets muxed (758616 bytes); 
  Output stream #0:1 (audio): 432 packets muxed (86801 bytes); 
  Total: 682 packets (845417 bytes) muxed


ffmpeg version N-83786-gf940492bb2 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.0 (Gentoo 5.4.0-r3 p1.3, pie-0.6.5)
  configuration: --prefix=/usr/local --libdir=/usr/local/lib64 --shlibdir=/usr/local/lib64 --docdir=/usr/local/share/doc/ffmpeg-9999/html --mandir=/usr/local/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' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  WARNING: library configuration mismatch
  avutil      configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-9999/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  avcodec     configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-9999/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  avformat    configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-9999/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  avdevice    configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-9999/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  avfilter    configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-9999/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  avresample  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-9999/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  swscale     configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-9999/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  swresample  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-9999/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  postproc    configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-9999/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-version3 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-version3 --enable-version3 --enable-nonfree --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --enable-gnutls --enable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --disable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --enable-libcaca --enable-openal --disable-opengl --disable-libv4l2 --disable-libpulse --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfdk-aac --enable-libopenjpeg --enable-libbluray --enable-libcelt --enable-libgme --enable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --enable-libilbc --disable-librtmp --disable-libssh --enable-libschroedinger --enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi --enable-libbs2b --enable-chromaprint --disable-libflite --enable-frei0r --disable-libfribidi --enable-fontconfig --enable-ladspa --enable-libass --enable-libfreetype --enable-librubberband --disable-netcdf --disable-libzmq --enable-libzimg --enable-libsoxr --enable-pthreads --enable-libvo-amrwbenc --enable-libmp3lame --enable-libkvazaar --disable-nvenc --enable-libopenh264 --enable-libsnappy --enable-libtheora --enable-libtwolame --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  libavutil      55. 48.100 / 55. 47.101
  libavcodec     57. 82.102 / 57. 82.100
  libavformat    57. 66.103 / 57. 66.103
  libavdevice    57.  3.100 / 57.  3.100
  libavfilter     6. 74.100 /  6. 74.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
[h264 @ 0x1689dc0] Reinit context to 640x368, pix_fmt: yuv420p
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.66.103
  Duration: 00:00:10.02, start: 0.000000, bitrate: 682 kb/s
    Stream #0:0(und): Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 640x360 (640x368) [SAR 1:1 DAR 16:9], 606 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 69 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[graph_0_in_0_1 @ 0x16b68e0] tb:1/44100 samplefmt:fltp samplerate:44100 chlayout:0x4
Output #0, mp4, to 'testaac.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.66.103
    Stream #0:0(und): Video: h264 (High), 1 reference frame ([33][0][0][0] / 0x0021), yuv420p(left), 640x360 (0x0) [SAR 1:1 DAR 16:9], q=2-31, 606 kb/s, 25 fps, 25 tbr, 12800 tbn, 12800 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, mono, fltp, delay 1024, 69 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      encoder         : Lavc57.82.102 aac
No more output streams to write to, finishing.
frame=  248 fps=0.0 q=-1.0 Lsize=     828kB time=00:00:10.00 bitrate= 677.6kbits/s speed=75.9x    
video:734kB audio:85kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.099030%
Input file #0 (test.mp4):
  Input stream #0:0 (video): 250 packets read (758616 bytes); 
  Input stream #0:1 (audio): 432 packets read (86801 bytes); 431 frames decoded (441344 samples); 
  Total: 682 packets (845417 bytes) demuxed
Output file #0 (testaac.mp4):
  Output stream #0:0 (video): 248 packets muxed (751642 bytes); 
  Output stream #0:1 (audio): 431 frames encoded (441344 samples); 432 packets muxed (86825 bytes); 
  Total: 680 packets (838467 bytes) muxed
[aac @ 0x168c500] Qavg: 121.808

Note that with -c:v copy -c:a copy that all 682 packets are written to output, including 250 video stream packets.

When using -c:v copy -c:a aac however only 680 packets are written. 2 video stream packets go missing.

Playback of the broken file shows distortion from the start of the video, suggesting that the packets are missing at the start of the video stream.


#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


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


#2646 FFMPEG HTTP protocol not generation authorization line avformat defect Jun 6, 2013

I have an acti camera, I can send these headers to it to receive an MJPEG stream:

GET /cgi-bin/cmd/system?GET_STREAM HTTP/1.1
User-Agent: Mozilla/5.0 Lavf/55.8.102
Accept: */*
Host: 192.168.1.40
Connection: Close
Range: bytes=0-
Authorization: Basic YWRtaW46MTIzNDU2

However when I run:

ffmpeg -i "http://admin:123456@192.168.1.40/cgi-bin/cmd/system?GET_STREAM"

And capture what it sends with tcpdump, I see it sends these headers:

GET /cgi-bin/cmd/system?GET_STREAM HTTP/1.1
User-Agent: Mozilla/5.0 Lavf/55.8.102
Accept: */*
Range: bytes=0-
Connection: close
Host: 192.168.1.40

Notice there are identical except FFMPEG doesn't generate the Authorization line. Isn't it meant to?

I'm using ffmpeg version N-53816-g55121f3 compiled Jun 4 2013 on Ubuntu 13.04.


#2691 ffmpeg detects 0 channels in audio streams (audio streams are detected after the main loop in find_stream_info) avformat defect Jun 20, 2013

Summary of the bug: ffmpeg does not detect the audio channels if the audio streams don't have any in the first few seconds.

How to reproduce:

vhann@vhanndinateur ~,0 $ foo/ffmpeg -i outputShortest.vobffmpeg version N-54023-g6fe419b Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun 14 2013 05:12:40 with gcc 4.6 (Debian 4.6.3-1)
  configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32 --extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static' --extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/lib -static' --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared --disable-ffserver --disable-doc --enable-bzlib --enable-zlib --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray --enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 --enable-libvpx
  libavutil      52. 35.101 / 52. 35.101
  libavcodec     55. 16.100 / 55. 16.100
  libavformat    55.  8.102 / 55.  8.102
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 77.101 /  3. 77.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[mpeg @ 0xaaa3060] max_analyze_duration 5000000 reached at 5005000 microseconds
Input #0, mpeg, from 'outputShortest.vob':
  Duration: 00:00:24.46, start: 0.140600, bitrate: 17150 kb/s
    Stream #0:0[0x1bf]: Data: dvd_nav_packet
    Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:2[0x82]: Audio: ac3, 0 channels
    Stream #0:3[0x81]: Audio: ac3, 0 channels
    Stream #0:4[0x80]: Audio: ac3, 0 channels
At least one output file must be specified

-analyzeduration and -probesize make it work though:

vhann@vhanndinateur ~,0 $ foo/ffmpeg -analyzeduration 50000000 -probesize 50000000 -i outputShortest.vob 
ffmpeg version N-54023-g6fe419b Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun 14 2013 05:12:40 with gcc 4.6 (Debian 4.6.3-1)
  configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32 --extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static' --extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/lib -static' --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared --disable-ffserver --disable-doc --enable-bzlib --enable-zlib --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray --enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 --enable-libvpx
  libavutil      52. 35.101 / 52. 35.101
  libavcodec     55. 16.100 / 55. 16.100
  libavformat    55.  8.102 / 55.  8.102
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 77.101 /  3. 77.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[mpeg @ 0xa8d21e0] max_analyze_duration 50000000 reached at 50032489 microseconds
Input #0, mpeg, from 'outputShortest.vob':
  Duration: 00:00:24.50, start: 0.095889, bitrate: 17118 kb/s
    Stream #0:0[0x1bf]: Data: dvd_nav_packet
    Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:2[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
    Stream #0:3[0x82]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
    Stream #0:4[0x81]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
At least one output file must be specified

llogan and vulture both were valuable in figuring the problem.


#2712 remuxing h264 from avi to ts leads to stuttering with WMP undetermined defect Jun 25, 2013

I tried to resample otr Videofiles to avchd so that the video can be played on my Sony TV.

Therefor the h.264 video in the avi container can be copied and the mp3 audio must be reencoded to ac3 audio. See logfile for details.

But on the TV I have bad audio and with windows mediaplayer or vlc the video is not smooth.


#2741 Remuxing dvbsub to mkv fails undetermined defect Jul 2, 2013

Summary of the bug: How to reproduce: an mkv file with subtitles / a video overlaid with subtitles

% ffmpeg -i input.wtv -map 0 -map -0:3 -vcodec libx264 -acodec libmp3lame -scodec copy output.mkv

or

% ffmpeg -i input.wtv -filter_complex "[0:v][0:s]overlay[v]" -map [v] -map 0:a output.mkv

ffmpeg version N-54082-g96b33dd
built on Jun 17 2013 02:10:21 with gcc 4.7.3

The first command get aborted. The error return is

ffmpeg version N-54082-g96b33dd Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun 17 2013 02:10:21 with gcc 4.7.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 37.101 / 52. 37.101
  libavcodec     55. 16.100 / 55. 16.100
  libavformat    55.  8.103 / 55.  8.103
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 77.101 /  3. 77.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[wtv @ 000000000249b380] truncated file
    Last message repeated 3 times
[mpeg2video @ 000000000263f620] Invalid frame dimensions 0x0.
    Last message repeated 26 times
[wtv @ 000000000249b380] max_analyze_duration 5000000 reached at 5016000 microseconds
Input #0, wtv, from '16 and Pregnant_Viva_2013_06_13_20_00_00.wtv':
  Metadata:
    WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
    WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
    Title           : 16 and Pregnant
    WM/SubTitleDescription: Reality series following prospective teenage parents. An aspiring cage fighter strives to be an independent mother.
    genre           : Documentary;Reality TV
    WM/OriginalReleaseTime: 0
    WM/MediaCredits : ;;;
    service_provider: Viva
    service_name    : Viva
    WM/MediaOriginalChannel: 21
    WM/MediaOriginalChannelSubNumber: 0
    WM/MediaOriginalBroadcastDateTime: 2012-08-14T23:00:00Z
    WM/MediaOriginalRunTime: 35984082205
    WM/MediaIsStereo: false
    WM/MediaIsRepeat: true
    WM/MediaIsLive  : false
    WM/MediaIsTape  : false
    WM/MediaIsDelay : false
    WM/MediaIsSubtitled: false
    WM/MediaIsMovie : false
    WM/MediaIsPremiere: false
    WM/MediaIsFinale: false
    WM/MediaIsSAP   : false
    WM/MediaIsSport : false
    WM/Provider     : MediaCenterDefault
    WM/VideoClosedCaptioning: false
    WM/WMRVEncodeTime: 2013-06-13 19:00:01
    WM/WMRVSeriesUID: !GenericSeries!16 and Pregnant
    WM/WMRVServiceID: !Generated!45f9cf3444c149a4b3532ce756741d6a
    WM/WMRVProgramID: !MCProgram!46241323
    WM/WMRVRequestID: 0
    WM/WMRVScheduleItemID: 0
    WM/WMRVQuality  : 0
    WM/WMRVOriginalSoftPrePadding: 300
    WM/WMRVOriginalSoftPostPadding: 0
    WM/WMRVHardPrePadding: -300
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: false
    WM/WMRVDTVContent: true
    WM/WMRVHDContent: false
    Duration        : 35994188749
    WM/WMRVEndTime  : 2013-06-13 20:00:01
    WM/WMRVBitrate  : 2.168572
    WM/WMRVKeepUntil: 0
    WM/WMRVActualSoftPrePadding: 298
    WM/WMRVActualSoftPostPadding: 1
    WM/WMRVContentProtected: false
    WM/WMRVContentProtectedPercent: 0
    WM/WMRVExpirationSpan: 9223372036854775807
    WM/WMRVInBandRatingSystem: 255
    WM/WMRVInBandRatingLevel: 255
    WM/WMRVInBandRatingAttributes: 0
    WM/WMRVWatched  : false
    WM/MediaThumbWidth: 352
    WM/MediaThumbHeight: 372
    WM/MediaThumbStride: 1056
    WM/MediaThumbRet: 0
    WM/MediaThumbRatingSystem: 255
    WM/MediaThumbRatingLevel: 255
    WM/MediaThumbRatingAttributes: 0
    WM/MediaThumbAspectRatioX: 16
    WM/MediaThumbAspectRatioY: 9
    WM/MediaThumbTimeStamp: 4644939472175984804
  Duration: 01:00:03.21, start: 1.449767, bitrate: 2166 kb/s
    Stream #0:0[0x69](eng): Subtitle: dvb_subtitle
    Stream #0:1[0x6a](eng): Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, s16p, 256 kb/s
    Stream #0:2[0x6b]: Video: mpeg2video (Main), yuv420p, 544x576 [SAR 32:17 DAR 16:9], 25 fps, 25 tbr, 10000k tbn, 50 tbc
    Stream #0:3[0x0]: Video: mjpeg, yuvj420p, 189x200 [SAR 96:96 DAR 189:200], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      title           : TV Thumbnail
File 'test.mkv' already exists. Overwrite ? [y/N] [libx264 @ 000000000457f8e0] using SAR=32/17
[libx264 @ 000000000457f8e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 000000000457f8e0] profile High, level 3.0
[libx264 @ 000000000457f8e0] 264 - core 133 r2334 a3ac64b - 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=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, matroska, to 'test.mkv':
  Metadata:
    WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
    WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
    Title           : 16 and Pregnant
    WM/SubTitleDescription: Reality series following prospective teenage parents. An aspiring cage fighter strives to be an independent mother.
    genre           : Documentary;Reality TV
    WM/OriginalReleaseTime: 0
    WM/MediaCredits : ;;;
    service_provider: Viva
    service_name    : Viva
    WM/MediaOriginalChannel: 21
    WM/MediaOriginalChannelSubNumber: 0
    WM/MediaOriginalBroadcastDateTime: 2012-08-14T23:00:00Z
    WM/MediaOriginalRunTime: 35984082205
    WM/MediaIsStereo: false
    WM/MediaIsRepeat: true
    WM/MediaIsLive  : false
    WM/MediaIsTape  : false
    WM/MediaIsDelay : false
    WM/MediaIsSubtitled: false
    WM/MediaIsMovie : false
    WM/MediaIsPremiere: false
    WM/MediaIsFinale: false
    WM/MediaIsSAP   : false
    WM/MediaIsSport : false
    WM/Provider     : MediaCenterDefault
    WM/VideoClosedCaptioning: false
    WM/WMRVEncodeTime: 2013-06-13 19:00:01
    WM/WMRVSeriesUID: !GenericSeries!16 and Pregnant
    WM/WMRVServiceID: !Generated!45f9cf3444c149a4b3532ce756741d6a
    WM/WMRVProgramID: !MCProgram!46241323
    WM/WMRVRequestID: 0
    WM/WMRVScheduleItemID: 0
    WM/WMRVQuality  : 0
    WM/WMRVOriginalSoftPrePadding: 300
    WM/WMRVOriginalSoftPostPadding: 0
    WM/WMRVHardPrePadding: -300
    WM/WMRVHardPostPadding: 0
    WM/WMRVATSCContent: false
    WM/WMRVDTVContent: true
    WM/WMRVHDContent: false
    Duration        : 35994188749
    WM/WMRVEndTime  : 2013-06-13 20:00:01
    WM/WMRVBitrate  : 2.168572
    WM/WMRVKeepUntil: 0
    WM/WMRVActualSoftPrePadding: 298
    WM/WMRVActualSoftPostPadding: 1
    WM/WMRVContentProtected: false
    WM/WMRVContentProtectedPercent: 0
    WM/WMRVExpirationSpan: 9223372036854775807
    WM/WMRVInBandRatingSystem: 255
    WM/WMRVInBandRatingLevel: 255
    WM/WMRVInBandRatingAttributes: 0
    WM/WMRVWatched  : false
    WM/MediaThumbWidth: 352
    WM/MediaThumbHeight: 372
    WM/MediaThumbStride: 1056
    WM/MediaThumbRet: 0
    WM/MediaThumbRatingSystem: 255
    WM/MediaThumbRatingLevel: 255
    WM/MediaThumbRatingAttributes: 0
    WM/MediaThumbAspectRatioX: 16
    WM/MediaThumbAspectRatioY: 9
    WM/MediaThumbTimeStamp: 4644939472175984804
    encoder         : Lavf55.8.103
    Stream #0:0(eng): Subtitle: dvb_subtitle
    Stream #0:1(eng): Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p
    Stream #0:2: Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 544x576 [SAR 32:17 DAR 16:9], q=-1--1, 1k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (mp2 -> libmp3lame)
  Stream #0:2 -> #0:2 (mpeg2video -> libx264)
Press [q] to stop, [?] for help
[matroska @ 000000000255fa60] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 3532 >= 3461
av_interleaved_write_frame(): Invalid argument

This program is made in America and broadcast on a British TV channel. I don't know what's happening inside. I have tried to translate many episodes of this program and get the same return and abort at different progress level.

I don't know what "Application provided invalid, non montonically increasing av_interleaved_write_frame(): Invalid argument mean. What can I do with it?

So I try to overlay the subtitles on my video using the command provided in the tutorial. I have never made a successful attempt once. The output file is a regular video file which does not contain any subtitles overlaid on it.

During the translation, the return contains a yellow line.

sub2video: rectangle overflowing

How do I tackle this problem?


#2746 Incorrect -to arg working ffmpeg defect Jul 3, 2013

Summary of the bug: I don't know, it bug in -to argument or in documentation. But if follow documentation, -to should stop writing on position, but it work as duration. For example: I want cut fragment from 10 to 20 sec.

ffmpeg -report -ss 10 -i "video\\orig_51d32ada7179a5.91859583.avi" -to 20 test.gif

cutting from 10 to 30 sec

‘-to position (output)’
Stop writing the output at position. position may be a number in seconds, or in hh:mm:ss[.xxx] form.
ffmpeg -version
ffmpeg version N-54362-ge0be3cb
built on Jul  2 2013 22:15:59 with gcc 4.7.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avis
ynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable
-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype
--enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enabl
e-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-lib
opus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspee
x --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-am
rwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --en
able-libxvid --enable-zlib
libavutil      52. 38.100 / 52. 38.100
libavcodec     55. 18.100 / 55. 18.100
libavformat    55. 11.100 / 55. 11.100
libavdevice    55.  2.100 / 55.  2.100
libavfilter     3. 77.101 /  3. 77.101
libswscale      2.  3.100 /  2.  3.100
libswresample   0. 17.102 /  0. 17.102
libpostproc    52.  3.100 / 52.  3.100

#2750 video buffer problem after cut video undetermined defect Jul 4, 2013

Summary of the bug: How to reproduce:

% ffmpeg -i INPUT.flv -ss 10 -t 40 -vcodec copy -acodec copy OUTPUT.flv
ffmpeg version - 1.0.7

Hi,

we are using ffmpeg to cut video from long video ( say 30 second video from 2 minute video ). we are using above command for that.

With that command, video is cut successfully. but when we are trying to play that video into flash player there is buffering problem. Video is only playing after loading full video content. It is not buffering for long videos and wait till full download.

Please help asap, we need to fix that urgently.

Thanks Keyur doba


#2758 DVD-A LPCM in vob cannot be decoded avformat defect Jul 6, 2013

Summary of the bug: Sample: http://mpchc.omertabeyond.com/incorrect_audio_stream.AOB

This AOB sample is incorrectly detected as PCM audio.

How to reproduce:

% ffplay.exe incorrect_audio_stream.AOB
ffplay version N-54277-gff130d7 Copyright (c) 2003-2013 the FFmpeg developers
  built on Jun 30 2013 01:20:12 with gcc 4.7.3 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 37.101 / 52. 37.101
  libavcodec     55. 17.100 / 55. 17.100
  libavformat    55. 10.100 / 55. 10.100
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 77.101 /  3. 77.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mpeg, from 'incorrect_audio_stream.AOB':sq=    0B f=0/0
  Duration: 00:04:18.27, start: 0.006500, bitrate: 6141 kb/s
    Stream #0:0[0xa0]: Audio: pcm_s16be, 44100 Hz, 2 channels, s16, 1411 kb/s
[pcm_s16be @ 0464b240] Invalid PCM packet, data has size 8 but at least a size of 16 was expected
[pcm_s16be @ 0464b240] Invalid PCM packet, data has size 13 but at least a size of 16 was expected
    Last message repeated 10 times
    ...

#2832 ffmpeg produces broken audio with -async 1 undetermined defect Aug 3, 2013

I uploaded audio_glitch_input.flv to upload.ffmpeg.org/incoming

ffmpeg -nostats -nostdin -probesize 5000000\

-i ./audio_glitch_input.flv -map_metadata -1 -pass 1\ -shortest -apad 512 -b:a 64000 -ac 1 -ar 22050 -async 1 -compression_level 0 -acodec libmp3lame -sn\ -f flv -y audio_glitch_output.flv

ffmpeg version git-2013-05-15-1a36c75 Copyright (c) 2000-2013 the FFmpeg developers

built on May 14 2013 19:05:26 with gcc 4.6 (Ubuntu/Linaro? 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-nonfree --enable-pthreads --enable-libx264 --enable-libfaac --enable-libmp3lame --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib libavutil 52. 31.100 / 52. 31.100 libavcodec 55. 9.100 / 55. 9.100 libavformat 55. 7.100 / 55. 7.100 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 67.100 / 3. 67.100 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100


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

This is a follow-up to #3083.

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

The heuristic introduced to fix #3083

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

s->key_frame = 1;

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

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

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


#3175 audio (aac) silently on streamcopy from mpegts to flv avformat defect Nov 27, 2013

If you do streamcopy from mpegts to flv with audiocodec aac audio in output is silently. Reproduced with internal aac encoder, faac and libfdk_aac. The problem occurs, because AudioSpecificConfig? (ASC) is not written on streamcopy. Bitstream filter aac_adtstoasc_bsf.c writes ASC correctly (line 94-99) but too late (after flv header). If you write ASC in flvenc.c manually, encoded file is written correctly:

--- a/libavformat/flvenc.c
+++ b/libavformat/flvenc.c
@@ -397,7 +397,8 @@ static int flv_write_header(AVFormatContext *s)
             if (enc->codec_id == AV_CODEC_ID_AAC) {
                 avio_w8(pb, get_audio_flags(s, enc));
                 avio_w8(pb, 0); // AAC sequence header
-                avio_write(pb, enc->extradata, enc->extradata_size);
+                avio_wb16(pb, 5000); // ^= 0x1388; AAC LC, 22050 Hz, 1 channel
+                //avio_write(pb, enc->extradata, enc->extradata_size);
             } else {
                 avio_w8(pb, enc->codec_tag | FLV_FRAME_KEY); // flags
                 avio_w8(pb, 0); // AVC sequence header

More information about ASC: http://wiki.multimedia.cx/index.php?title=MPEG-4_Audio#Audio_Specific_Config I don't know if you can call bitstream filter before writing flv header.

How to reproduce:

% ffmpeg -re -i /tmp/input.ts -c:v copy -c:a libfaac -b:a 32k -ar 22050 -ac 1 -f mpegts udp://localhost:1234
ffmpeg version N-58470-g3c846fd Copyright (c) 2000-2013 the FFmpeg developers
  built on Nov 26 2013 14:56:57 with gcc 4.4.5 (Debian 4.4.5-8)
  configuration: --enable-nonfree --enable-libfaac --enable-libx264 --enable-gpl --enable-libzmq --enable-libfreetype --enable-ffplay --enable-librtmp --enable-libfdk-aac --enable-libmp3lame --enable-libvpx
  libavutil      52. 55.100 / 52. 55.100
  libavcodec     55. 44.100 / 55. 44.100
  libavformat    55. 21.102 / 55. 21.102
  libavdevice    55.  5.100 / 55.  5.100
  libavfilter     3. 91.100 /  3. 91.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mpegts, from '/tmp/input.ts':
  Duration: 00:01:00.00, start: 1.378667, bitrate: 2319 kb/s
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
    Stream #0:1[0x101](deu): Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 121 kb/s
Output #0, mpegts, to 'udp://localhost:1234':
  Metadata:
    encoder         : Lavf55.21.102
    Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 50 fps, 90k tbn, 50 tbc
    Stream #0:1(deu): Audio: aac (libfaac), 22050 Hz, mono, s16, 32 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (aac -> libfaac)
Press [q] to stop, [?] for help

% ffmpeg -i udp://localhost:1234 -c copy -bsf:a aac_adtstoasc -f flv output.flv

My intention is to stream one mpegts (with one h264 and multiple languages -> aac) to a local udp port and then steam each language in extra processes to different flash servers.


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