[FFmpeg-user] -longest rather than -shortest?

Hugh J. Hitchcock info at webdimensions.org
Tue Nov 18 23:32:15 CET 2014

Like for example, I want to say create a video with a 1 min background music
track, a 30 second voice over track. I can't figure out how to apply the
voice-over track to the longer background track without ffmpeg shortening
the output to 30 seconds - I want the entire 60 output with the background
music track even when the 30 second voice track stops.

Any ideas? Profuse thanks in advance

-----Original Message-----
From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org]
On Behalf Of Hugh J. Hitchcock
Sent: Tuesday, November 18, 2014 3:16 PM
To: 'FFmpeg user questions'
Subject: [FFmpeg-user] -longest rather than -shortest?

Hi, I am new to ffmpeg and I've been using it lately to create videos from
assembling images and mp3s.

I'm kind of stumped right now on something and I'm hoping someone in the
group can help me!

What I want to do is combine two mp3s into a soundtrack and combine them to
a video. I don't have any problem doing that, however, the issue is that no
matter what I try, the resulting video always stops at the end of the
shortest input track. This seems to happen whether or not I use the
-shortest argument.

What I want to do is find out how to make ffmpeg take the LONGEST piece of
media and make the video around that, and I have tried and tried and can't
seem to do it!

Can anyone help me?

Many thanks in advance. Sincerely,


ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org

More information about the ffmpeg-user mailing list