[FFmpeg-user] 2 pass seg faults if audio codec not specified in pass 1

Sean Darcy seandarcy2 at gmail.com
Sun Jun 15 15:31:12 CEST 2014


If I try to transcode mts in 2 passes using "-an" I get a seg fault:

ffmpeg -i input.m2t -threads 4 -an -vf yadif=0:-1:0 -c:v libx264 -preset 
slower -b:v 1000k -tune film -pass 1 -f mp4 -y /dev/null
.......
ffmpeg -i input.m2t -threads 4 -vf yadif=0:-1:0 -c:v libx264 -preset 
slower -b:v 1000k -tune film -pass 2 -c:a libfdk_aac -vbr 4 -signaling 
implicit -afterburner 1 2pass.mp4
........
frame= 9863 fps= 11 q=52.0 size=   46355kB time=00:05:29.11 
bitrate=1153.8kbits/s dup=1978 drop=0  frame= 9875 fps= 11 q=52.0 size= 
   46379kB time=00:05:29.48 bitrate=1153.1kbits/s dup=1980 drop=0 
[libx264 @ 0x170a060] 2nd pass has more frames than 1st pass (9882)
[libx264 @ 0x170a060] continuing anyway, at constant QP=45
[libx264 @ 0x170a060] disabling adaptive B-frames
ffmpeg-swim.cmd: line 13:  7158 Segmentation fault      ffmpeg -i 
input.m2t -threads 4 -vf yadif=0:-1:0 -c:v libx264 -preset slower -b:v 
1000k -tune film -pass 2 -c:a libfdk_aac -vbr 4 -signaling implicit 
-afterburner 1 2pass.mp4

But if I add the audio codec to pass 1, it works. Is this a known issue?

Here's the full pass 1 with -an:

ffmpeg -i 2013-Midsummers-Night-SwimSync.m2t -threads 4 -an -vf 
yadif=0:-1:0 -c:v libx264 -preset slower -b:
v 1000k -tune film -pass 1 -f mp4 -y /dev/null
ffmpeg version 2.2.git Copyright (c) 2000-2014 the FFmpeg developers
   built on May 24 2014 07:35:17 with gcc 4.8.2 (GCC) 20131212 (Red Hat 
4.8.2-7)
   configuration: --prefix=/usr --bindir=/usr/bin 
--datadir=/usr/share/ffmpeg --libdir=/usr/lib64 --mandir=/u
sr/share/man --shlibdir=/usr/lib64 --extra-cflags='-Ofast -march=native 
-mtune=native -fopenmp -fomit-frame-
pointer -pipe' --enable-avresample --enable-static --enable-shared 
--enable-gray --enable-gpl --enable-nonfr
ee --enable-version3 --enable-postproc --enable-avfilter 
--enable-avresample --enable-pthreads --enable-x11g
rab --enable-gray --enable-vaapi --enable-hardcoded-tables 
--enable-libaacplus --enable-avisynth --enable-fr
ei0r --enable-libfdk-aac --enable-libgsm --enable-libmp3lame 
--enable-libopenjpeg --enable-libopus --enable-
librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex 
--enable-libtheora --enable-libvo-aacenc
  --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 
--enable-libxvid --enable-zlib --disab
le-debug --cpu=amdfam10 --arch=x86_64 --enable-pic --enable-libopencv 
--enable-openssl
   libavutil      52. 86.100 / 52. 86.100
   libavcodec     55. 64.100 / 55. 64.100
   libavformat    55. 40.100 / 55. 40.100
   libavdevice    55. 13.101 / 55. 13.101
   libavfilter     4.  5.100 /  4.  5.100
   libavresample   1.  2.  0 /  1.  2.  0
   libswscale      2.  6.100 /  2.  6.100
   libswresample   0. 19.100 /  0. 19.100
   libpostproc    52.  3.100 / 52.  3.100
[mpeg2video @ 0xa91f80] ac-tex damaged at 67 20
[mpeg2video @ 0xa91f80] Warning MVs not available
[mpeg2video @ 0xa91f80] concealing 4302 DC, 4302 AC, 4302 MV errors in I 
frame
Input #0, mpegts, from '2013-Midsummers-Night-SwimSync.m2t':
   Duration: 00:05:29.98, start: 1.400000, bitrate: 27391 kb/s
   Program 1
     Metadata:
       service_name    : Service01
       service_provider: FFmpeg
     Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 
0x0002), yuv420p(tv, bt709), 1440x1080 [SAR 4:3 DAR 16:9], max. 25000 
kb/s, 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc
     Stream #0:1[0x101]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, 
stereo, s16p, 372 kb/s
[libx264 @ 0xa93920] using SAR=4/3
[libx264 @ 0xa93920] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 
AVX XOP FMA4 FMA3 LZCNT BMI1
[libx264 @ 0xa93920] profile Main, level 4.0
[libx264 @ 0xa93920] 264 - core 142 r2M ac76440 - H.264/MPEG-4 AVC codec 
- Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: 
cabac=1 ref=1 deblock=1:-1:-1 analyse=0x1:0 me=dia subme=2 psy=1 
psy_rd=1.00:0.15 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=4 
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=2 
b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 
keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=60 rc=abr 
mbtree=1 bitrate=1000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 
ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/dev/null':
   Metadata:
     encoder         : Lavf55.40.100
     Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), 
yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], q=-1--1, pass 1, 1000 kb/s, 29.97 
fps, 60k tbn, 29.97 tbc
     Metadata:
       encoder         : Lavc55.64.100 libx264
Stream mapping:
   Stream #0:0 -> #0:0 (mpeg2video -> libx264)
Press [q] to stop, [?] for help
[mpeg2video @ 0xa91f80] ac-tex damaged at 67 20
[mpeg2video @ 0xa91f80] Warning MVs not available
[mpeg2video @ 0xa91f80] concealing 4302 DC, 4302 AC, 4302 MV errors in I 
frame
frame=   86 fps= 32 q=48.0 size=     114kB time=00:00:00.53 
bitrate=1747.6kbits/s dup=15 drop=frame=  106 fps= 33 q=45.0 size= 
165kB time=00:00:01.20 bitrate=1123.0kbits/s dup=19 drop=frame=  125 
fps= 34 q=44.0 size=     222kB time=00:00:01.83 bitrate= 991.6kbits/s 
dup=23 drop=
.......
frame= 9882 fps= 35 q=-1.0 Lsize=   39240kB time=00:05:29.66 bitrate= 
975.1kbits/s dup=1974 drop=0
video:39123kB audio:0kB subtitle:0kB other streams:0kB global 
headers:0kB muxing overhead: 0.299219%
[libx264 @ 0x1e22920] frame I:50    Avg QP:37.86  size: 25095
[libx264 @ 0x1e22920] frame P:3894  Avg QP:41.62  size:  6435
[libx264 @ 0x1e22920] frame B:5938  Avg QP:44.29  size:  2316
[libx264 @ 0x1e22920] consecutive B-frames: 14.0% 11.4% 18.2% 56.3%
[libx264 @ 0x1e22920] mb I  I16..4: 80.4%  0.0% 19.6%
[libx264 @ 0x1e22920] mb P  I16..4: 24.2%  0.0%  0.0%  P16..4: 14.2% 
0.0%  0.0%  0.0%  0.0%    skip:61.6%
[libx264 @ 0x1e22920] mb B  I16..4:  3.3%  0.0%  0.0%  B16..8: 10.6% 
0.0%  0.0%  direct: 3.0%  skip:83.1%  L0:42.0% L1:55.3% BI: 2.7%
[libx264 @ 0x1e22920] final ratefactor: 37.24
[libx264 @ 0x1e22920] direct mvs  spatial:100.0% temporal:0.0%
[libx264 @ 0x1e22920] coded y,uvDC,uvAC intra: 10.0% 14.4% 0.7% inter: 
2.0% 1.2% 0.0%
[libx264 @ 0x1e22920] i16 v,h,dc,p: 24% 45% 20% 11%
[libx264 @ 0x1e22920] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 37% 24%  5%  4% 
  3%  6%  2%  7%
[libx264 @ 0x1e22920] i8c dc,h,v,p: 89%  7%  3%  1%
[libx264 @ 0x1e22920] Weighted P-Frames: Y:3.9% UV:0.8%
[libx264 @ 0x1e22920] kb/s:971.98

sean




More information about the ffmpeg-user mailing list