[FFmpeg-user] Audio delay on part of video

German Geraskin german.geraskin at gmail.com
Mon Apr 28 12:32:22 EEST 2025


"To delay the audio stream" means to insert several audio samples of
silence into the audio stream.
It is quite easy to do using [setpts
filter](https://ffmpeg.org/ffmpeg-all.html#setpts_002c-asetpts).
But this works only for the whole audio track.

If you need to add delay in the middle of the audio track, then
probably you should do the following steps:
- extract and save the first part of audio track (for example, using
[-t option](https://ffmpeg.org/ffmpeg-all.html#Main-options))
- extract and save the second part of audio track (for example, using
[-ss option](https://ffmpeg.org/ffmpeg-all.html#Main-options))
- generate desired number of audio samples containing silence (for
example, using [anullsrc
filter](https://ffmpeg.org/ffmpeg-all.html#anullsrc))
- concatenate the first part, the silence part and the second part
(for example, using [concat
filter](https://ffmpeg.org/ffmpeg-all.html#concat-3))
- mux original video and newly created audio tracks in the final file

> > Am 25.04.25 um 20:47 schrieb tasos:
> >> Hello.
> >> I would like to ask if it is possible to delay the audio streams of a video , but for a specific time range.
> >> Something like using -ss -to combined with -itsoffset.
> >> More specifically from half-till the end of the video.
> >> Thanks!


More information about the ffmpeg-user mailing list