How to combine a .mp4 video with a .wav audio with an offset in ffmpeg from command line?

杀马特。学长 韩版系。学妹 提交于 2019-11-30 13:41:00

In ffmpeg audio media stream can be delayed with -itsoffset option as the following:

ffmpeg -i input_vid.mp4 -itsoffset 00:00:05.0 -i input_audio.wav 
    -vcodec copy -acodec copy output.mp4

To change video or audio codecs, specify them in -vcodec and -acodec options. This command will produce output video using h264 and mp3:

ffmpeg -i input_vid.mp4 -itsoffset 00:00:05.0 -i input_audio.wav 
    -vcodec libx264 -acodec libmp3lame output.mp4

See delaying the audio or the video for more information.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!