Opened 4 years ago

Last modified 4 years ago

#5058 open defect

the concat filter does not respect the audio delay of the second segment

Reported by: redneb Owned by:
Priority: normal Component: avfilter
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


Suppose that you have two files, each having a video and an audio stream, and also that the second video's audio starts with a delay. If you try to concatenate them with the concat filter, then the resulting video will have sync problems with the audio portion that came from the second file.

Here's a quick way to reproduce this:

ffmpeg -y \
	-filter_complex '
	' \

When I play the resulting file, the first 10 seconds are just like what I expected (black background with low pitched tone), but the remaining 10 seconds are not. I was expecting that the higher pitched tone would start at 15s but it doesn't. Instead it starts at 10s. So basically, the concat filter simply concatenated the two audio streams without taking into consideration the 5 sec delay of the second one.

I am not sure if this is a bug or the intended behavior, but I think it would be more reasonable if concat inserted silence at the beginning audio streams if necessary, just like it does with the end of such streams.

Change History (1)

comment:1 Changed 4 years ago by richardpl

  • Component changed from undetermined to avfilter
  • Status changed from new to open
Note: See TracTickets for help on using tickets.