Help! I've got two files: video.avi and music.mp3. I want to convert the music track into ogg and combine it with the video file to make an ogv movie (so I can embed it on the web). I can't seem to get it right, and I know very little about multimedia and ffmpeg.
Frustrating part is that I've done it successfully once before a month or so ago. I think, however, last time the video file was already an ogv and it didn't have its own audio track already.
After reading the ffmpeg MAN page, and looking at some online examples (which I mostly did not understand), I tried something like this:
ffmpeg -i video.avi intermediate.ogv
ffmpeg -i music.mp3 music.ogg
ffmpeg -i intermediate.ogv -i music.mp3 final.ogv
But the result is that I end up with a video with the video and sound from video.avi but apparently nothing from music.mp3. I saw in the MAN page that there is a -newaudio option but I cant seem to get that working (I think I am using it wrong on the command line).
If someone could give me some very specific examples on the command line of how to do this right I would appreciate it. The audio from video.avi doesn't necessarily need to be saved, if that makes any difference. Also, the music file is longer than the video file, so duration of the final ogv file should only be as long as the video file.