[FFmpeg-user] proper use of -itsoffset for audio?

John Saturday stozher at gmail.com
Tue Feb 21 21:35:30 CET 2012

> I thought that it would cause the sound to occur 26 seconds later than
> it would without " -itsoffset 26 ".  Instead, the " -itsoffset 26 "
> doesn't seem to do anything, and the sound occurs 26 seconds earlier
> than what I wanted.

Hi, some time ago I also confused by this... "-itoffset" work for all
followed input stream. Just replace positions of input streams:

ffmpeg -r 60 -i final/%07d.png -itsoffset 26 -i main.wav out.ogg

Same situation is a with "-ss" and "-t" options. Good idea if you
cutting video is to place this options after all input streams (more
precise cut):

ffmpeg -i video -i audio ... -ss 00:01:00.000 -t 00:30:00.000 -f ...

More information about the ffmpeg-user mailing list