[FFmpeg-user] How to fix audio/video out of sync problem
肖谋
xiaomou at gmail.com
Thu May 23 07:26:08 CEST 2013
Thanks. But if i don't know the offset, how can I get that in an effective
way. Generating two intermediate files will degrade system i/o performance.
Regards
xiaomou
On Wed, May 22, 2013 at 5:24 PM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> 肖谋 <xiaomou <at> gmail.com> writes:
>
> > I have a mp4 file 1.mp4 in which the audio is about
> > 2 seconds ahead of video. I want to fix this using
> > ffmpeg without transcoding, just copy.
>
> -itsoffset may help:
> $ ffmpeg -i 1.mp4 -itsoffset 2 -i 1.mp4 -codec copy -map 0:0 -map 1:1 2.mp4
>
> You may have to move the itsoffset (and change between 2 and -2).
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
More information about the ffmpeg-user
mailing list