[FFmpeg-trac] #3109(undetermined:new): FFMPEG crashes after producing an error of more frames in 2nd pass
FFmpeg
trac at avcodec.org
Fri Nov 1 16:34:44 CET 2013
#3109: FFMPEG crashes after producing an error of more frames in 2nd pass
-------------------------------------+-------------------------------------
Reporter: ramitbhalla | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: unspecified | undetermined
Keywords: | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by ramitbhalla):
Barebones version:
{{{
ffmpeg -threads 0 -y -i "2ndpassfail.ts" -vcodec libx264 -b 1800000
-pass 1 -passlogfile "2ndpassfail.log" -f rawvideo NUL
ffmpeg version N-54802-gfc6de70 Copyright (c) 2000-2013 the FFmpeg
developers
built on Oct 14 2013 09:33:16 with gcc 4.8.0 (GCC)
configuration: --arch=x86 --target-os=mingw32 --cross-
prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/bin
/i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264
--enable-avisynth --enable-libxvid --enable-lib
mp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-
libvorbis --enable-libtheora --enable-libspeex --enabl
e-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype
--enable-libopus --disable-w32threads --enable-frei0r
--enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-
libxavs --extra-cflags=-DPTW32_STATIC_LIB --enable
-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc
--enable-libschroedinger --enable-libvpx --enable-
libilbc --enable-iconv --enable-libtwolame --extra-
cflags=-DLIBTWOLAME_STATIC --enable-libmodplug --extra-libs=-lstdc++
--enable-libcaca
--prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/i686-w64-mingw32
--enable-static --disab
le-shared --enable-libsoxr --enable-fontconfig --enable-libass libavutil
52. 40.100 / 52. 40.100
libavcodec 55. 18.102 / 55. 18.102
libavformat 55. 12.102 / 55. 12.102
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 81.101 / 3. 81.101
libswscale 2. 4.100 / 2. 4.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
[mpegts @ 03b2a620] PES packet size mismatch
Input #0, mpegts, from '2ndpassfail.ts':
Duration: 00:00:13.07, start: 1.424000, bitrate: 12839 kb/s
Program 1
Metadata:
service_name : Syfy HD
service_provider: SCIFIHD
Stream #0:0[0x100](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000
Hz, 5.1(side), fltp, 384 kb/s
Stream #0:1[0x101](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000
Hz, 5.1(side), fltp, 384 kb/s
Stream #0:2[0x102]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 f
ps, 29.97 tbr, 90k tbn, 59.94 tbc
Please use -b:a or -b:v, -b is ambiguous
[libx264 @ 047e05a0] using SAR=1/1
[libx264 @ 047e05a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 047e05a0] profile Main, level 4.0
Output #0, rawvideo, to 'NUL':
Metadata:
encoder : Lavf55.12.102
Stream #0:0: Video: h264 (libx264), yuv420p, 1920x1080 [SAR 1:1 DAR
16:9], q=-1--1, pass 1, 1800 kb/s, 90k tbn, 29.9
7 tbc
Stream mapping:
Stream #0:2 -> #0:0 (mpeg2video -> libx264)
Press [q] to stop, [?] for help
PES packet size mismatch.0 size= 2215kB time=00:00:10.04
bitrate=1806.6kbits/s dup=1 drop=0
[mpeg2video @ 03b128c0] Warning MVs not available
[mpeg2video @ 03b128c0] concealing 7367 DC, 7367 AC, 7367 MV errors in B
frame
frame= 377 fps= 31 q=-1.0 Lsize= 3073kB time=00:00:12.51
bitrate=2012.2kbits/s dup=1 drop=0
video:3073kB audio:0kB subtitle:0 global headers:0kB muxing overhead
0.000000%
[libx264 @ 047e05a0] frame I:9 Avg QP:27.02 size: 62523
[libx264 @ 047e05a0] frame P:163 Avg QP:29.43 size: 12393
[libx264 @ 047e05a0] frame B:205 Avg QP:31.54 size: 2754
[libx264 @ 047e05a0] consecutive B-frames: 18.3% 24.9% 8.0% 48.8%
[libx264 @ 047e05a0] mb I I16..4: 65.2% 0.0% 34.8%
[libx264 @ 047e05a0] mb P I16..4: 16.8% 0.0% 0.0% P16..4: 22.7% 0.0%
0.0% 0.0% 0.0% skip:60.4%
[libx264 @ 047e05a0] mb B I16..4: 1.0% 0.0% 0.0% B16..8: 6.2% 0.0%
0.0% direct: 3.4% skip:89.4% L0:39.8% L1:5
0.2% BI:10.1%
[libx264 @ 047e05a0] final ratefactor: 28.92
[libx264 @ 047e05a0] coded y,uvDC,uvAC intra: 19.3% 47.9% 8.7% inter: 2.5%
5.3% 0.2%
[libx264 @ 047e05a0] i16 v,h,dc,p: 41% 29% 19% 11%
[libx264 @ 047e05a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 30% 16% 6% 3%
4% 4% 4% 4%
[libx264 @ 047e05a0] i8c dc,h,v,p: 55% 19% 21% 5%
[libx264 @ 047e05a0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 047e05a0] kb/s:2001.54
}}}
{{{
ffmpeg -threads 0 -y -i "2ndpassfail.ts" -vcodec libx264 -b 1800000
-pass 2 -passlogfile "2ndpassfail.log" 2ndpassfail.mp4
ffmpeg version N-54802-gfc6de70 Copyright (c) 2000-2013 the FFmpeg
developers
built on Oct 14 2013 09:33:16 with gcc 4.8.0 (GCC)
configuration: --arch=x86 --target-os=mingw32 --cross-
prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/bin
/i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264
--enable-avisynth --enable-libxvid --enable-lib
mp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-
libvorbis --enable-libtheora --enable-libspeex --enabl
e-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype
--enable-libopus --disable-w32threads --enable-frei0r
--enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-
libxavs --extra-cflags=-DPTW32_STATIC_LIB --enable
-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc
--enable-libschroedinger --enable-libvpx --enable-
libilbc --enable-iconv --enable-libtwolame --extra-
cflags=-DLIBTWOLAME_STATIC --enable-libmodplug --extra-libs=-lstdc++
--enable-libcaca
--prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/i686-w64-mingw32
--enable-static --disab
le-shared --enable-libsoxr --enable-fontconfig --enable-libass libavutil
52. 40.100 / 52. 40.100
libavcodec 55. 18.102 / 55. 18.102
libavformat 55. 12.102 / 55. 12.102
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 81.101 / 3. 81.101
libswscale 2. 4.100 / 2. 4.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
[mpegts @ 03e5a500] PES packet size mismatch
Input #0, mpegts, from '2ndpassfail.ts':
Duration: 00:00:13.07, start: 1.424000, bitrate: 12839 kb/s
Program 1
Metadata:
service_name : Syfy HD
service_provider: SCIFIHD
Stream #0:0[0x100](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000
Hz, 5.1(side), fltp, 384 kb/s
Stream #0:1[0x101](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000
Hz, 5.1(side), fltp, 384 kb/s
Stream #0:2[0x102]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002),
yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 f
ps, 29.97 tbr, 90k tbn, 59.94 tbc
Please use -b:a or -b:v, -b is ambiguous
[libx264 @ 043bf280] using SAR=1/1
[libx264 @ 043bf280] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 043bf280] profile High, level 4.0
[libx264 @ 043bf280] 264 - core 136 r2350 3361d59 - H.264/MPEG-4 AVC codec
- Copyleft 2003-2013 - http://www.videolan.or
g/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 m
e_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_thre
ads=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=1800 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
Output #0, mp4, to '2ndpassfail.mp4':
Metadata:
encoder : Lavf55.12.102
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p,
1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, pass 2,
1800 kb/s, 30k tbn, 29.97 tbc
Stream #0:1(eng): Audio: aac (libfdk_aac) ([64][0][0][0] / 0x0040),
48000 Hz, 5.1, s16, 488 kb/s
Stream mapping:
Stream #0:2 -> #0:0 (mpeg2video -> libx264)
Stream #0:0 -> #0:1 (ac3 -> libfdk_aac)
Press [q] to stop, [?] for help
[ac3 @ 03e44bc0] frame sync error
Error while decoding stream #0:0: Error number -1 occurred
[libfdk_aac @ 04ae4020] Queue input is backward in time
[mp4 @ 03e43d20] Non-monotonous DTS in output stream 0:1; previous: 2560,
current: 2049; changing to 2561. This may resu
lt in incorrect timestamps in the output file.
2nd pass has more frames than 1st pass (377)ime=00:00:12.37
bitrate=2355.9kbits/s dup=17 drop=0
[libx264 @ 043bf280] continuing anyway, at constant QP=33
[libx264 @ 043bf280] disabling adaptive B-frames
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/3109#comment:3>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list