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

FFmpeg trac at avcodec.org
Mon Sep 25 23:50:10 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:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by liuzceecs):

 Replying to [comment:9 cehoyos]:
 > Replying to [comment:6 liuzceecs]:
 > > It will be more convenient if you can upload your
 final_output_video.mp4 so I can make sure I successfully reproduce this
 issue on my OS.
 > If you know of any operation with FFmpeg that produces different output
 on different systems (including different operating systems), please let
 us know, this could indicate a serious issue. This of course does not
 include different output due to floating point operations or inexact asm
 optimizations. Neither should be an issue for the issue described here.
 > Generally, do not ask for output files unless you cannot reproduce the
 issue: Were you unable to reproduce?

 Thank you for your advice. Actually, I have tried the newest ffmpeg
 package on Windows 8.1 and compiled the newest source code from git on
 Ubuntu 15.04. Neither can reproduce the issue. Actually, both two ways
 generate the same error log messages and that is different from what is
 provided by tcwebadmin. I will paste the log below (just a few lines
 since) and to your question, I cannot reproduce the issue.


 {{{
  ~/bin/ffmpeg -threads 0 -f concat -safe 0 -i 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 final_output_video.mp4 -y
 2> log

 ffmpeg version N-87389-g5d07275 Copyright (c) 2000-2017 the FFmpeg
 developers
   built with gcc 4.9.2 (Ubuntu 4.9.2-10ubuntu13)
   configuration: --prefix=/home/lzc/ffmpeg_build --pkg-config-
 flags=--static --extra-cflags=-I/home/lzc/ffmpeg_build/include --extra-
 ldflags=-L/home/lzc/ffmpeg_build/lib --bindir=/home/lzc/bin --enable-gpl
 --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-
 libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis
 --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree
 --enable-libsoxr
   libavutil      55. 76.100 / 55. 76.100
   libavcodec     57.106.101 / 57.106.101
   libavformat    57. 82.101 / 57. 82.101
   libavdevice    57.  8.101 / 57.  8.101
   libavfilter     6.106.100 /  6.106.100
   libswscale      4.  7.103 /  4.  7.103
   libswresample   2.  8.100 /  2.  8.100
   libpostproc    54.  6.100 / 54.  6.100
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2557520] Auto-inserting h264_mp4toannexb
 bitstream filter
 Input #0, concat, from 'files.txt':
   Duration: N/A, start: -0.046440, bitrate: 145 kb/s
     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661),
 yuvj420p(pc), 560x320 [SAR 1280:1281 DAR 320:183], 17 kb/s, 30 fps, 30
 tbr, 15360 tbn, 60 tbc
     Metadata:
       handler_name    : VideoHandler
     Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono,
 fltp, 128 kb/s
     Metadata:
       handler_name    : SoundHandler
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
   Stream #0:1 -> #0:1 (aac (native) -> mp3 (libmp3lame))
 Press [q] to stop, [?] for help
 [libx264 @ 0x25fdae0] using SAR=64/63
 [libx264 @ 0x25fdae0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
 AVX AVX2 FMA3 LZCNT BMI2
 [libx264 @ 0x25fdae0] profile High, level 3.1
 [libx264 @ 0x25fdae0] 264 - core 142 r2495 6a301b6 - H.264/MPEG-4 AVC
 codec - Copyleft 2003-2014 - 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=12
 lookahead_threads=2 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 'final_output_video.mp4':
   Metadata:
     encoder         : Lavf57.82.101
     Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661),
 yuvj420p(pc), 560x320 [SAR 64:63 DAR 16:9], q=-1--1, 30 fps, 15360 tbn, 30
 tbc
     Metadata:
       handler_name    : VideoHandler
       encoder         : Lavc57.106.101 libx264
     Side data:
       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
     Stream #0:1(und): Audio: mp3 (libmp3lame) (mp4a / 0x6134706D), 44100
 Hz, mono, fltp, 128 kb/s
     Metadata:
       handler_name    : SoundHandler
       encoder         : Lavc57.106.101 libmp3lame
 frame=  368 fps=0.0 q=21.0 size=       0kB time=00:00:12.35 bitrate=
 0.0kbits/s dup=1 drop=0 speed=24.7x
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2ea83a0] Auto-inserting h264_mp4toannexb
 bitstream filter
 [aac @ 0x2569c20] Error decoding AAC frame header.
 Error while decoding stream #0:1: Error number -67308554 occurred
 [aac @ 0x2569c20] Multiple frames in a packet.
 [aac @ 0x2569c20] channel element 2.15 is not allocated
 Error while decoding stream #0:1: Invalid data found when processing input
 [aac @ 0x2569c20] More than one AAC RDB per ADTS frame is not implemented.
 Update your FFmpeg version to the newest one from Git. If the problem
 still occurs, it means that your file has a feature which has not been
 implemented.
 [aac @ 0x2569c20] channel element 2.0 is not allocated
 Error while decoding stream #0:1: Invalid data found when processing input
 [aac @ 0x2569c20] channel element 3.12 is not allocated
 Error while decoding stream #0:1: Invalid data found when processing input
 [aac @ 0x2569c20] invalid band type
 Error while decoding stream #0:1: Invalid data found when processing input
 [aac @ 0x2569c20] Reserved bit set.
 [aac @ 0x2569c20] TNS filter order 21 is greater than maximum 12.
 Error while decoding stream #0:1: Invalid data found when processing input
 [aac @ 0x2569c20] channel element 2.6 is not allocated
 Error while decoding stream #0:1: Invalid data found when processing input
 [aac @ 0x2569c20] Reserved bit set.
 [aac @ 0x2569c20] Number of bands (29) exceeds limit (4).
 Error while decoding stream #0:1: Invalid data found when processing input
 [aac @ 0x2569c20] channel element 3.2 is not allocated
 Error while decoding stream #0:1: Invalid data found when processing input
 [aac @ 0x2569c20] Sample rate index in program config element does not
 match the sample rate index configured by the container.
 [aac @ 0x2569c20] Inconsistent channel configuration.
 [aac @ 0x2569c20] get_buffer() failed
 Error while decoding stream #0:1: Invalid argument
 [aac @ 0x2569c20] channel element 3.2 is not allocated
 Error while decoding stream #0:1: Invalid data found when processing input
 [aac @ 0x2569c20] Sample rate index in program config element does not
 match the sample rate index configured by the container.
 [aac @ 0x2569c20] Inconsistent channel configuration.
 [aac @ 0x2569c20] get_buffer() failed
 Error while decoding stream #0:1: Invalid argument
 [aac @ 0x2569c20] channel element 3.0 is not allocated
 Error while decoding stream #0:1: Invalid data found when processing input
 [aac @ 0x2569c20] Reserved bit set.
 [aac @ 0x2569c20] TNS filter order 21 is greater than maximum 12.
 Error while decoding stream #0:1: Invalid data found when processing input
 [aac @ 0x2569c20] channel element 2.14 is not allocated
 Error while decoding stream #0:1: Invalid data found when processing input
 [aac @ 0x2569c20] channel element 3.10 is not allocated
 Error while decoding stream #0:1: Invalid data found when processing input
 [aac @ 0x2569c20] channel element 3.8 is not allocated
 Error while decoding stream #0:1: Invalid data found when processing input
 [aac @ 0x2569c20] Reserved bit set.
 [aac @ 0x2569c20] SSR is not implemented. Update your FFmpeg version to
 the newest one from Git. If the problem still occurs, it means that your
 file has a feature which has not been implemented.
 [aac @ 0x2569c20] If you want to help, upload a sample of this file to
 ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing
 list. (ffmpeg-devel at ffmpeg.org)
 Error while decoding stream #0:1: Not yet implemented in FFmpeg, patches
 welcome
 [aac @ 0x2569c20] channel element 2.10 is not allocated
 Error while decoding stream #0:1: Invalid data found when processing input
 [aac @ 0x2569c20] channel element 1.6 is not allocated
 Error while decoding stream #0:1: Invalid data found when processing input
 [aac @ 0x2569c20] channel element 3.15 is not allocated
 Error while decoding stream #0:1: Invalid data found when processing input
 [aac @ 0x2569c20] channel element 1.9 is not allocated
 Error while decoding stream #0:1: Invalid data found when processing input
 [aac @ 0x2569c20] channel element 3.11 is not allocated
 Error while decoding stream #0:1: Invalid data found when processing input
 }}}

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


More information about the FFmpeg-trac mailing list