Merge audio with video using ffmpeg

0

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

Posted 2017-03-09T08:28:14.620

Reputation: 1

Question was closed 2017-03-09T14:55:39.547

Answers

1

Use

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

Gyan

Posted 2017-03-09T08:28:14.620

Reputation: 21 016

thanks for your help I want to speed up audio and video What should I do? with command sorry my eng not good. – long to far – 2017-03-09T09:27:09.983

You wish to speed up video from 2nd video and also audio from 1st video? How much? – Gyan – 2017-03-09T09:34:59.160