[FFmpeg-trac] #6664(undetermined:new): ffmpeg concat audio not in sync

FFmpeg trac at avcodec.org
Tue Sep 19 22:17:15 EEST 2017


#6664: ffmpeg concat audio not in sync
-------------------------------------+-------------------------------------
             Reporter:  tcwebadmin   |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  unspecified  |  undetermined
             Keywords:  concat,      |               Resolution:
  ffmpeg                             |               Blocked By:
             Blocking:               |  Reproduced by developer:  1
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by tcwebadmin):

 Output below:
 {{{
 #!sh
 ffmpeg -threads 0 -f concat -safe 0 -i /tmp/files.txt -vf
 "scale=iw*min(560/iw\,320/ih):ih*min(560/iw\,320/ih),
 pad=560:320:(560-iw*min(560/iw\,320/ih))/2:(320-ih*min(560/iw\,320/ih))/2"
 -preset veryslow -crf 15 -acodec libmp3lame -af aresample=resampler=soxr
 -ar 44100 -aspect 16:9 -qp 20  -framerate 30 -ab 128k -ac 1 -vcodec
 libx264 -max_muxing_queue_size 9999 -movflags +faststart
 /tmp/final_output_video.mp4 -y
 ffmpeg version 3.3.4-static http://johnvansickle.com/ffmpeg/  Copyright
 (c) 2000-2017 the FFmpeg developers
   built with gcc 6.4.0 (Debian 6.4.0-4) 20170820
   configuration: --enable-gpl --enable-version3 --enable-static --disable-
 debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio
 --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-
 gray --enable-libfribidi --enable-libass --enable-libfreetype --enable-
 libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-
 libopenjpeg --enable-librubberband --enable-librtmp --enable-libsoxr
 --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora
 --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-
 libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-
 libzimg
   libavutil      55. 58.100 / 55. 58.100
   libavcodec     57. 89.100 / 57. 89.100
   libavformat    57. 71.100 / 57. 71.100
   libavdevice    57.  6.100 / 57.  6.100
   libavfilter     6. 82.100 /  6. 82.100
   libswscale      4.  6.100 /  4.  6.100
   libswresample   2.  7.100 /  2.  7.100
   libpostproc    54.  5.100 / 54.  5.100
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x4c7c9c0] Auto-inserting h264_mp4toannexb
 bitstream filter
 Input #0, concat, from '/tmp/files.txt':
   Duration: N/A, start: -0.025057, bitrate: 146 kb/s
     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661),
 yuvj420p(pc), 560x320 [SAR 1280:1281 DAR 320:183], 18 kb/s, 30 fps, 30
 tbr, 15360 tbn, 60 tbc
     Metadata:
       handler_name    : VideoHandler
     Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, mono,
 s16p, 128 kb/s
     Metadata:
       handler_name    : SoundHandler
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
   Stream #0:1 -> #0:1 (mp3 (native) -> mp3 (libmp3lame))
 Press [q] to stop, [?] for help
 No pixel format specified, yuvj420p for H.264 encoding chosen.
 Use -pix_fmt yuv420p for compatibility with outdated media players.
 [libx264 @ 0x4c8e100] using SAR=64/63
 [libx264 @ 0x4c8e100] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
 AVX
 [libx264 @ 0x4c8e100] profile High, level 3.1
 [libx264 @ 0x4c8e100] 264 - core 152 r19 ba24899 - H.264/MPEG-4 AVC codec
 - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options:
 cabac=1 ref=16 deblock=1:0:0 analyse=0x3:0x133 me=umh subme=10 psy=1
 psy_rd=1.00:0.00 mixed_ref=1 me_range=24 chroma_me=1 trellis=2 8x8dct=1
 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1
 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
 bluray_compat=0 constrained_intra=0 bframes=8 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=crf mbtree=1 crf=15.0
 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
 Output #0, mp4, to '/tmp/final_output_video.mp4':
   Metadata:
     encoder         : Lavf57.71.100
     Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021),
 yuvj420p(pc), 560x320 [SAR 64:63 DAR 16:9], q=-1--1, 30 fps, 15360 tbn, 30
 tbc
     Metadata:
       handler_name    : VideoHandler
       encoder         : Lavc57.89.100 libx264
     Side data:
       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
     Stream #0:1(und): Audio: mp3 (libmp3lame) (i[0][0][0] / 0x0069), 44100
 Hz, mono, s16p, 128 kb/s
     Metadata:
       handler_name    : SoundHandler
       encoder         : Lavc57.89.100 libmp3lame
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x51fdf60] Auto-inserting h264_mp4toannexb
 bitstream filter1 drop=0 speed=1.71x
 [mp4 @ 0x4c800a0] Starting second pass: moving the moov atom to the
 beginning of the filerop=69 speed=0.421x
 frame= 1910 fps= 10 q=21.0 Lsize=    4967kB time=00:01:16.41 bitrate=
 532.5kbits/s dup=1 drop=69 speed=0.41x
 video:3738kB audio:1169kB subtitle:0kB other streams:0kB global
 headers:0kB muxing overhead: 1.229286%
 [libx264 @ 0x4c8e100] frame I:15    Avg QP:10.22  size: 39698
 [libx264 @ 0x4c8e100] frame P:601   Avg QP:16.86  size:  3558
 [libx264 @ 0x4c8e100] frame B:1294  Avg QP:18.66  size:   845
 [libx264 @ 0x4c8e100] consecutive B-frames: 10.4%  9.3%  8.8% 41.5%  4.5%
 2.5%  1.1%  1.3% 20.7%
 [libx264 @ 0x4c8e100] mb I  I16..4: 17.9% 41.8% 40.3%
 [libx264 @ 0x4c8e100] mb P  I16..4:  0.2%  1.8%  0.7%  P16..4: 17.7%  8.8%
 8.8%  0.5%  0.2%    skip:61.3%
 [libx264 @ 0x4c8e100] mb B  I16..4:  0.0%  0.2%  0.2%  B16..8: 13.3%  3.6%
 1.4%  direct: 1.4%  skip:79.9%  L0:38.7% L1:41.8% BI:19.6%
 [libx264 @ 0x4c8e100] 8x8 transform intra:54.5% inter:52.1%
 [libx264 @ 0x4c8e100] direct mvs  spatial:99.9% temporal:0.1%
 [libx264 @ 0x4c8e100] coded y,uvDC,uvAC intra: 83.9% 89.4% 68.2% inter:
 8.1% 9.7% 2.1%
 [libx264 @ 0x4c8e100] i16 v,h,dc,p: 35% 32%  6% 27%
 [libx264 @ 0x4c8e100] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 19%  8%  7%  9%
 9% 10% 11% 12%
 [libx264 @ 0x4c8e100] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 17%  8%  7% 11%
 10% 11% 10% 13%
 [libx264 @ 0x4c8e100] i8c dc,h,v,p: 41% 27% 16% 17%
 [libx264 @ 0x4c8e100] Weighted P-Frames: Y:0.0% UV:0.0%
 [libx264 @ 0x4c8e100] ref P L0: 67.5% 13.5% 10.5%  3.0%  1.5%  0.9%  0.7%
 0.4%  0.4%  0.3%  0.3%  0.2%  0.2%  0.2%  0.2%  0.2%
 [libx264 @ 0x4c8e100] ref B L0: 85.1%  8.5%  3.1%  1.1%  0.6%  0.4%  0.3%
 0.2%  0.2%  0.2%  0.1%  0.1%  0.1%  0.1%  0.0%
 [libx264 @ 0x4c8e100] ref B L1: 97.4%  2.6%
 [libx264 @ 0x4c8e100] kb/s:480.88
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6664#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list