[FFmpeg-user] Issues with video and audio streams not starting at beginning of file when using filter_complex.

ac83 acloutier at c-spanarchives.org
Thu Jul 31 23:54:22 CEST 2014


I did some more testing. It looks like this issue remains even when stripping
out the -filter_complex stuff (!?) 

ffmpeg -y 
 -ss 1 
 -i
/var/scratch/processRaw/f/20140729154103013_hd.trp/20140729154103013_hd.trp 
 -r 29.97 
 -qmin 4 
 -crf 28 
 -movflags faststart 
 -vcodec libx264 
 -pix_fmt yuv420p 
 -acodec libfaac 
 -t 30 
 -ar 44100 
 -ac 2 
 -b:a 128k 
 -maxrate 500k 
 -bufsize 1500k 
 -g 89.91 
 -threads 0 

/var/scratch/processRaw/f/20140729154103013_hd.trp/20140729154103013_hd.MP4-M10.mp4

ffmpeg version 2.2.4 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jul 16 2014 10:02:25 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration: --prefix=/opt/ffmpeg/2.2.4
--extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib
--extra-libs=-ldl --enable-gpl --enable-nonfree --enable-pic --disable-debug
--disable-encoder=nellymoser --enable-postproc --enable-swscale
--enable-libmp3lame --enable-pthreads --enable-libfaac --enable-libx264
  libavutil      52. 66.100 / 52. 66.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 33.100 / 55. 33.100
  libavdevice    55. 10.100 / 55. 10.100
  libavfilter     4.  2.100 /  4.  2.100
  libswscale      2.  5.102 /  2.  5.102
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
[h264 @ 0x2705fc0] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x2705fc0] decode_slice_header error
[h264 @ 0x2705fc0] no frame!
[h264 @ 0x2705fc0] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x2705fc0] decode_slice_header error
[h264 @ 0x2705fc0] no frame!
[h264 @ 0x2705fc0] non-existing PPS 0 referenced
    Last message repeated 1 times
[h264 @ 0x2705fc0] decode_slice_header error
[h264 @ 0x2705fc0] no frame!
[h264 @ 0x2705fc0] mmco: unref short failure
    Last message repeated 1 times
[mpegts @ 0x2701d80] PES packet size mismatch
Input #0, mpegts, from
'/var/scratch/processRaw/f/20140729154103013_hd.trp/20140729154103013_hd.trp':
  Duration: 00:05:09.61, start: 78099.700589, bitrate: 9395 kb/s
  Program 4 
    Stream #0:0[0x133]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k
tbn, 59.94 tbc
    Stream #0:1[0x134](eng): Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz,
stereo, fltp, 128 kb/s (clean effects)
[libx264 @ 0x2708600] using SAR=1/1
[libx264 @ 0x2708600] using cpu capabilities: MMX2 SSE2Fast LZCNT
[libx264 @ 0x2708600] profile High, level 4.0
[libx264 @ 0x2708600] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft
2003-2014 - http://www.videolan.org/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 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11
fast_pskip=1 chroma_qp_offset=-2 threads=18 lookahead_threads=3
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=90 keyint_min=9 scenecut=40
intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=28.0 qcomp=0.60 qpmin=4
qpmax=69 qpstep=4 vbv_maxrate=500 vbv_bufsize=1500 crf_max=0.0 nal_hrd=none
filler=0 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to
'/var/scratch/processRaw/f/20140729154103013_hd.trp/20140729154103013_hd.MP4-M10.mp4':
  Metadata:
    encoder         : Lavf55.33.100
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p,
1920x1080 [SAR 1:1 DAR 16:9], q=4--1, max. 500 kb/s, 11988 tbn, 29.97 tbc
    Stream #0:1(eng): Audio: aac (libfaac) ([64][0][0][0] / 0x0040), 44100
Hz, stereo, s16, 128 kb/s (clean effects)
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> libx264)
  Stream #0:1 -> #0:1 (aac -> libfaac)
Press [q] to stop, [?] for help
[h264 @ 0x3086f00] reference picture missing during reorder
[h264 @ 0x3086f00] Missing reference picture, default is 65470
[h264 @ 0x311e760] mmco: unref short failure
[h264 @ 0x3543200] reference picture missing during reorder
[h264 @ 0x3543200] Missing reference picture, default is 65486
[h264 @ 0x35daa60] mmco: unref short failure
frame=   46 fps=0.0 q=0.0 size=       0kB time=00:00:00.97 bitrate=  
0.4kbits/sframe=   86 fps= 81 q=45.0 size=      74kB time=00:00:02.60
bitrate= 231.6kbits/[h264 @ 0x35daa60] Reference 4 >= 2
[h264 @ 0x35daa60] error while decoding MB 60 2, bytestream 84155
[h264 @ 0x35daa60] concealing 7909 DC, 7909 AC, 7909 MV errors in B frame
[h264 @ 0x3543200] concealing 380 DC, 380 AC, 380 MV errors in B frame
frame=  119 fps= 75 q=42.0 size=     106kB time=00:00:03.66 bitrate=
235.7kbits/[h264 @ 0x32e5080] reference picture missing during reorder
    Last message repeated 1 times
[h264 @ 0x32e5080] Missing reference picture, default is 65742
    Last message repeated 1 times
[h264 @ 0x337c8e0] mmco: unref short failure
[h264 @ 0x2fef6a0] reference picture missing during reorder
[h264 @ 0x2fef6a0] Missing reference picture, default is 65758
[h264 @ 0x3086f00] mmco: unref short failure
frame=  150 fps= 71 q=43.0 size=     170kB time=00:00:04.69 bitrate=
296.5kbits/frame=  182 fps= 69 q=42.0 size=     259kB time=00:00:05.71
bitrate= 371.6kbits/frame=  216 fps= 68 q=43.0 size=     315kB
time=00:00:06.91 bitrate= 372.5kbits/frame=  250 fps= 68 q=43.0 size=    
421kB time=00:00:07.94 bitrate= 434.5kbits/frame=  284 fps= 68 q=43.0 size=    
483kB time=00:00:09.12 bitrate= 433.7kbits/frame=  316 fps= 64 q=41.0 size=    
543kB time=00:00:10.17 bitrate= 437.2kbits/frame=  352 fps= 65 q=42.0 size=    
644kB time=00:00:11.35 bitrate= 464.3kbits/frame=  387 fps= 65 q=43.0 size=    
699kB time=00:00:12.53 bitrate= 456.7kbits/frame=  419 fps= 65 q=43.0 size=    
755kB time=00:00:13.58 bitrate= 455.3kbits/frame=  452 fps= 65 q=42.0 size=    
847kB time=00:00:14.60 bitrate= 474.8kbits/frame=  486 fps= 65 q=42.0 size=    
903kB time=00:00:15.78 bitrate= 468.4kbits/frame=  504 fps= 63 q=43.0 size=    
928kB time=00:00:16.46 bitrate= 461.6kbits/frame=  535 fps= 63 q=43.0 size=   
1034kB time=00:00:17.50 bitrate= 483.8kbits/[mp4 @ 0x2707ac0] Starting
second pass: moving the moov atom to the beginning of the filedrop=0    
frame=  900 fps= 59 q=-1.0 Lsize=    1985kB time=00:00:30.00 bitrate=
542.2kbits/s dup=39 drop=0    
video:1585kB audio:367kB subtitle:0 data:0 global headers:0kB muxing
overhead 1.694172%
[libx264 @ 0x2708600] frame I:10    Avg QP:34.11  size: 36888
[libx264 @ 0x2708600] frame P:233   Avg QP:39.00  size:  3166
[libx264 @ 0x2708600] frame B:657   Avg QP:45.71  size:   785
[libx264 @ 0x2708600] consecutive B-frames:  1.9%  0.2%  6.3% 91.6%
[libx264 @ 0x2708600] mb I  I16..4: 30.1% 65.5%  4.4%
[libx264 @ 0x2708600] mb P  I16..4:  0.2%  0.5%  0.0%  P16..4: 14.8%  0.8% 
0.8%  0.0%  0.0%    skip:82.9%
[libx264 @ 0x2708600] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  8.5%  0.1% 
0.0%  direct: 0.0%  skip:91.4%  L0:37.5% L1:62.3% BI: 0.2%
[libx264 @ 0x2708600] 8x8 transform intra:65.5% inter:89.0%
[libx264 @ 0x2708600] coded y,uvDC,uvAC intra: 31.4% 42.0% 4.4% inter: 0.4%
0.3% 0.0%
[libx264 @ 0x2708600] i16 v,h,dc,p: 14% 48%  5% 33%
[libx264 @ 0x2708600] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 25% 19%  5%  6%  5% 
6%  5%  5%
[libx264 @ 0x2708600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 22% 14%  6%  8%  8% 
6%  5%  3%
[libx264 @ 0x2708600] i8c dc,h,v,p: 66% 21% 10%  3%
[libx264 @ 0x2708600] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x2708600] ref P L0: 66.6% 14.1% 14.3%  5.0%
[libx264 @ 0x2708600] ref B L0: 87.3%  9.4%  3.2%
[libx264 @ 0x2708600] ref B L1: 96.1%  3.9%
[libx264 @ 0x2708600] kb/s:432.17




--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Issues-with-video-and-audio-streams-not-starting-at-beginning-of-file-when-using-filter-complex-tp4666642p4666659.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list