[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:16:02 CET 2013
#3109: FFMPEG crashes after producing an error of more frames in 2nd pass
-------------------------------------+-------------------------------------
Reporter: ramitbhalla | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug: When doing a 2 pass encoding, at the END of the
encoding ffmpeg throws an error about more frames in the 2nd pass than the
first and then crashes.
The command line and output of the 2nd pass
{{{
ffmpeg -probesize 100M -analyzeduration 300M -threads 0 -drc_scale
0.8 -y -i "The Devil's Advocate_SCIFIHD_2013_10_29_10_58_00.ts" -ss 3 -vf
yadif=0:-1,hqdn3d,crop=1904:1072:6:4,scale=720
:400 -vcodec libx264 -b 1800000 -x264opts
me=hex:trellis=2:subq=8:partitions=all:8x8dct=1:ref=5:rc-
lookahead=50:keyint=2
5: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=auto -acodec libfdk_aac -ab 384k
-cutoff 18000 -ac 2 -pass 2 -passlogfile "MCEBuddy2
Pass.log" "The Devil's Advocate_SCIFIHD_2013_10_29_10_58_00-converted.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
Input #0, mpegts, from 'The Devil's
Advocate_SCIFIHD_2013_10_29_10_58_00.ts':
Duration: 00:05:55.01, start: 1.424000, bitrate: 12974 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 @ 05531020] using SAR=595/603
[libx264 @ 05531020] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 05531020] profile High, level 4.0
[libx264 @ 05531020] 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 'The Devil's
Advocate_SCIFIHD_2013_10_29_10_58_00-converted.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 @ 025af060] frame sync error
Error while decoding stream #0:0: Error number -1 occurred
[swscaler @ 03a3d840] Warning: data is not aligned! This can lead to a
speedloss
2nd pass has more frames than 1st pass (10535)e=00:05:51.33
bitrate=2184.1kbits/s dup=1 drop=0
[libx264 @ 05531020] continuing anyway, at constant QP=21
[libx264 @ 05531020] disabling adaptive B-frames
}}}
Let me know if you want the original file uploaded - it is 600MB in size.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/3109>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list