Reputation: 2100
If I use the following command:
ffmpeg.exe -i audio.avi -itsoffset 3.0 -i audio.avi -map 0:v -map 1:a -c copy sync.avi
the audio starts to play beginning at one second instead of three seconds. What am I doing wrong?
Upvotes: 1
Views: 314
Reputation: 92928
AVIs have an attribute dwStart to delay a stream but ffmpeg at present fixes that to 0.
Remux to MP4 where ffmpeg will write an editlist to implement it. Players like WMP which don't seem to parse the edit list won't effect the delay.
ffmpeg -i audio.avi -itsoffset 3.0 -i audio.avi -map 0:v -map 1:a -c copy sync.mp4
As long as you streamcopy the input contents, any target will be lossless with respect to the source.
Upvotes: 1