Merge audio with video using ffmpeg

5,060

Use

ffmpeg -i 12m.mp4 -i 6m.mp4 -c copy -map 1:v -map 0:a -shortest new.mp4
Share:
5,060

Related videos on Youtube

long to far
Author by

long to far

Updated on September 18, 2022

Comments

  • long to far
    long to far over 1 year

    I have two videos of different lengths

    • Video one: 12 minutes
    • Video two: 6 minutes

    I want to take audio of video one and the image of video two nd put them together.

    Output video length = 6 minutes.

    How can I do this with ffmpeg?

  • long to far
    long to far about 7 years
    thanks for your help I want to speed up audio and video What should I do? with command sorry my eng not good.
  • Gyan
    Gyan about 7 years
    You wish to speed up video from 2nd video and also audio from 1st video? How much?