[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:24:15 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):
I've uploaded a sample (20MB) 2ndpassfail.ts
Here is how to replicate the issue:
{{{
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 -x264
opts partitions=none:rc-lookahead=50:keyint=25:min-
keyint=20:bframes=3:weightb=0:level=4.0:b-pyramid=normal:direct=auto:
mixed-refs=0:deblock=-1,-1:no-fast-pskip=0:no-dct-decimate=1:threads=auto
-acodec libfdk_aac -ab 384k -cutoff 18000 -a
c 2 -subq 1 -refs 1 -trellis 0 -b_strategy 1 -me_method dia -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 @ 0327dc40] 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 @ 0523b020] using SAR=595/603
[libx264 @ 0523b020] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0523b020] 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 @ 056e8040] Warning: data is not aligned! This can lead to a
speedloss
PES packet size mismatch.0 size= 1718kB time=00:00:07.74
bitrate=1818.2kbits/s
[mpeg2video @ 032ab500] Warning MVs not available
[mpeg2video @ 032ab500] concealing 7367 DC, 7367 AC, 7367 MV errors in B
frame
frame= 287 fps= 19 q=-1.0 Lsize= 2222kB time=00:00:09.50
bitrate=1914.4kbits/s
video:2222kB audio:0kB subtitle:0 global headers:0kB muxing overhead
0.000000%
[libx264 @ 0523b020] frame I:12 Avg QP:14.62 size: 42740
[libx264 @ 0523b020] frame P:141 Avg QP:17.52 size: 10470
[libx264 @ 0523b020] frame B:134 Avg QP:21.67 size: 2138
[libx264 @ 0523b020] consecutive B-frames: 34.5% 4.2% 16.7% 44.6%
[libx264 @ 0523b020] mb I I16..4: 12.1% 0.0% 87.9%
[libx264 @ 0523b020] mb P I16..4: 7.8% 0.0% 0.0% P16..4: 68.3% 0.0%
0.0% 0.0% 0.0% skip:23.9%
[libx264 @ 0523b020] mb B I16..4: 0.5% 0.0% 0.0% B16..8: 23.5% 0.0%
0.0% direct:13.7% skip:62.3% L0:32.3% L1:4
3.1% BI:24.7%
[libx264 @ 0523b020] final ratefactor: 17.02
[libx264 @ 0523b020] direct mvs spatial:98.5% temporal:1.5%
[libx264 @ 0523b020] coded y,uvDC,uvAC intra: 75.8% 83.8% 70.1% inter:
28.6% 25.9% 14.3%
[libx264 @ 0523b020] i16 v,h,dc,p: 50% 24% 17% 10%
[libx264 @ 0523b020] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 13% 8% 7% 6%
7% 6% 8% 8%
[libx264 @ 0523b020] i8c dc,h,v,p: 36% 19% 33% 12%
[libx264 @ 0523b020] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0523b020] kb/s:1901.07
}}}
{{{
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 @ 0255f340] 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 @ 05590b20] using SAR=595/603
[libx264 @ 05590b20] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 05590b20] profile High, level 4.0
[libx264 @ 05590b20] 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=
1 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 @ 03b54cc0] frame sync error
Error while decoding stream #0:0: Error number -1 occurred
[swscaler @ 03b5ff20] 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=2155.7kbits/s dup=1 drop=0
[libx264 @ 05590b20] continuing anyway, at constant QP=19
[libx264 @ 05590b20] disabling adaptive B-frames
[libx264 @ 05590b20] specified frame type is not compatible with max
B-frames
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/3109#comment:1>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list