[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:29:41 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):
Even if I use exactly the same parameters on the 1st and 2nd pass it
crashes:
{{{
ffmpeg -probesize 100M -analyzeduration 300M -threads 0 -drc_scale
0.8 -y -i "2ndpassfail.ts" -ss 3 -vf
yadif=0:-1,hqdn3d,crop=1904:1072:6:4,scale=720:400 -vcodec libx264 -b
1800000 -x26
4opts me=hex:trellis=2:subq=8:partitions=all:8x8dct=1:ref=5:rc-
lookahead=50:keyint=25:min-keyint=20:bframes=3:weightb=1:
level=4.0:b-pyramid=normal:direct=auto:mixed-refs=1:deblock=-1,-1:no-fast-
pskip=1:no-dct-decimate=1:b-adapt=2:threads=au
to -acodec libfdk_aac -ab 384k -cutoff 18000 -ac 2 -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 @ 0034dbc0] PES packet size mismatch
Last message repeated 1 times
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
Codec AVOption cutoff (set cutoff bandwidth) specified for output file #0
(NUL) has not been used for any stream. The mo
st likely reason is either wrong type (e.g. a video option with no video
streams) or that it is a private option of some
encoder which was not actually used for any stream.
Codec AVOption ab (set bitrate (in bits/s)) specified for output file #0
(NUL) has not been used for any stream. The mos
t likely reason is either wrong type (e.g. a video option with no video
streams) or that it is a private option of some
encoder which was not actually used for any stream.
[libx264 @ 04cafae0] using SAR=595/603
[libx264 @ 04cafae0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 04cafae0] profile Main, level 4.0
Output #0, rawvideo, to 'NUL':
Metadata:
encoder : Lavf55.12.102
Stream #0:0: Video: h264 (libx264), yuv420p, 720x400 [SAR 595:603 DAR
119:67], q=-1--1, pass 1, 1800 kb/s, 90k tbn,
29.97 tbc
Stream mapping:
Stream #0:2 -> #0:0 (mpeg2video -> libx264)
Press [q] to stop, [?] for help
[swscaler @ 044649a0] Warning: data is not aligned! This can lead to a
speedloss
PES packet size mismatch.0 size= 1733kB time=00:00:07.67
bitrate=1849.6kbits/s
Warning MVs not available0 size= 1926kB time=00:00:08.24
bitrate=1914.4kbits/s
[mpeg2video @ 03c3c2c0] concealing 7367 DC, 7367 AC, 7367 MV errors in B
frame
frame= 287 fps= 20 q=-1.0 Lsize= 2265kB time=00:00:09.50
bitrate=1951.5kbits/s
video:2265kB audio:0kB subtitle:0 global headers:0kB muxing overhead
0.000000%
[libx264 @ 04cafae0] frame I:14 Avg QP:14.12 size: 46244
[libx264 @ 04cafae0] frame P:96 Avg QP:17.20 size: 12694
[libx264 @ 04cafae0] frame B:177 Avg QP:20.03 size: 2564
[libx264 @ 04cafae0] consecutive B-frames: 12.2% 9.1% 23.0% 55.7%
[libx264 @ 04cafae0] mb I I16..4: 13.7% 0.0% 86.3%
[libx264 @ 04cafae0] mb P I16..4: 11.8% 0.0% 0.0% P16..4: 71.1% 0.0%
0.0% 0.0% 0.0% skip:17.0%
[libx264 @ 04cafae0] mb B I16..4: 1.0% 0.0% 0.0% B16..8: 27.2% 0.0%
0.0% direct:14.5% skip:57.4% L0:30.3% L1:4
0.1% BI:29.6%
[libx264 @ 04cafae0] final ratefactor: 15.66
[libx264 @ 04cafae0] direct mvs spatial:97.7% temporal:2.3%
[libx264 @ 04cafae0] coded y,uvDC,uvAC intra: 78.4% 85.3% 70.2% inter:
25.6% 24.9% 12.4%
[libx264 @ 04cafae0] i16 v,h,dc,p: 48% 23% 20% 9%
[libx264 @ 04cafae0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 15% 7% 6% 7%
7% 6% 8% 7%
[libx264 @ 04cafae0] i8c dc,h,v,p: 44% 17% 30% 9%
[libx264 @ 04cafae0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 04cafae0] kb/s:1937.94
}}}
{{{
ffmpeg -probesize 100M -analyzeduration 300M -threads 0 -drc_scale
0.8 -y -i "2ndpassfail.ts" -ss 3 -vf
yadif=0:-1,hqdn3d,crop=1904:1072:6:4,scale=720:400 -vcodec libx264 -b
1800000 -x26
4opts me=hex:trellis=2:subq=8:partitions=all:8x8dct=1:ref=5:rc-
lookahead=50:keyint=25:min-keyint=20:bframes=3:weightb=1:
level=4.0:b-pyramid=normal:direct=auto:mixed-refs=1:deblock=-1,-1:no-fast-
pskip=1:no-dct-decimate=1:b-adapt=2:threads=au
to -acodec libfdk_aac -ab 384k -cutoff 18000 -ac 2 -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 @ 026ff340] PES packet size mismatch
Last message repeated 1 times
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 @ 05550b20] using SAR=595/603
[libx264 @ 05550b20] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 05550b20] profile High, level 4.0
[libx264 @ 05550b20] 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=5 deblock=1:-1:-1 analyse=0x3:0x133
me=hex subme=8 psy=1 psy_rd=1.00:0.00 mixed_ref=1
me_range=16 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=0 chroma_qp_offset=-2 threads=6 lookahead_th
reads=1 sliced_threads=0 nr=0 decimate=0 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=
2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=25 keyint_min=13
scenecut=40 intra_refresh=0 rc_lookahead=25 r
c=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,
720x400 [SAR 595:603 DAR 119:67], q=-1--1, pas
s 2, 1800 kb/s, 30k tbn, 29.97 tbc
Stream #0:1(eng): Audio: aac (libfdk_aac) ([64][0][0][0] / 0x0040),
48000 Hz, stereo, s16, 384 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 @ 03a84cc0] frame sync error
Error while decoding stream #0:0: Error number -1 occurred
[swscaler @ 03a8ff20] Warning: data is not aligned! This can lead to a
speedloss
2nd pass has more frames than 1st pass (287)ime=00:00:09.38
bitrate=2152.0kbits/s dup=1 drop=0
[libx264 @ 05550b20] continuing anyway, at constant QP=19
[libx264 @ 05550b20] disabling adaptive B-frames
[libx264 @ 05550b20] specified frame type is not compatible with max
B-frames
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/3109#comment:2>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list