Overlaying video with ffmpeg

前端 未结 1 1152
闹比i
闹比i 2021-01-19 06:26

I\'m attempting to write a script that will merge 2 separate video files into 1 wider one, in which both videos play back simultaneously. I have it mostly figured out, but w

相关标签:
1条回答
  • 2021-01-19 06:49

    Like the user 65Fbef05 said, the both videos must have the same framerate
    use -f framerate and framerate must be the same in both videos.
    To find the framerate use:
    ffmpeg -i video1

    ffmpeg -i video2

    and look for the line which contains "Stream #0.0: Video:"
    on that line you'll find the fps in movie.

    Also I don't know what problems you'll encounter by mixing 2 audio tracks.
    From my part I will try to use the audio from the movie which will be overlayed
    over and discard the rest.

    0 讨论(0)
提交回复
热议问题