FFmpeg concat video and audio out of sync

前端 未结 5 1417
死守一世寂寞
死守一世寂寞 2020-12-13 14:37

Joining multiple files using ffmpeg concat seems to result in a mismatch of the timestamps or offsets for the audio. I\'ve tried with several videos and noticed the same pro

5条回答
  •  渐次进展
    2020-12-13 14:52

    you can use filter_complex to concat different options in one go

    ffmpeg -i input1.mp4 -i input2.webm \
    -filter_complex "[0:v:0] [0:a:0] [1:v:0] [1:a:0] concat=n=2:v=1:a=1 [v] [a]" \
    -map "[v]" -map "[a]"  output.mkv
    

提交回复
热议问题