I am using ffmpeg to mix a video and an audio file.
I am trying to end output file after the input video stream completes.
ffmpeg -shortest -i out.ogv -sameq -i audio.mp3 tester.avi
I was using -shortest but then my video was sometimes chopped when I had a short audio file. I want to let the full video finish and just chop the audio whenever the video finishes.
Sometimes audio will be shorter than the video, sometimes longer.
I know I can specify a manual stop time, but I would rather not have to do this.