[FFmpeg-user] overlay with video offset not starting audio with same offset

Paul B Mahol onemda at gmail.com
Fri Aug 28 23:58:13 CEST 2015


Dana 28. 8. 2015. 23:15 osoba "Chad Horton" <chorton at hotsalsainteractive.com>
napisala je:
>
> I have a video with audio (overlayvideo.mov) that I'm overlaying over
another video (basefilem.mp4) and I'm starting the overlay at 20 seconds.
The output (finalvideo.mp4) looks great, but the audio from the overlay is
still starting at 00:00:00.000 instead of when I need it to start, which is
00:00:20.000 (which I set with itoffset).
>
> I understand that itoffset only deals with video.  So, how do I go about
specifying in my command below to start the audio in the overlay at the
same time as itoffset?

Try adelay filter.

>
> ffmpeg -y -i basefilem.mp4 -itoffset 00:00:20.000 -i overlayvide.mov -
ilter_complex
"[1:v]scale=1280x720[ovrl];[0:v][ovrl]overlay=eof_action=pass[outv];[0:a][1:a]amix[outa]"
-map [outv] -map [outa] -c:v mpeg4 -strict experimental -ascale:v 10
finalvideo.mp4
>
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user


More information about the ffmpeg-user mailing list