[MPlayer-users] Mencoder: Set length of output audio stream

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Mon Dec 11 20:44:17 CET 2006


Hello,
On Mon, Dec 11, 2006 at 09:25:46AM -0800, cory mintz wrote:
> Is there a way to make sure that the audio stream in an mpeg4 comes
> out to be the exact length of the video stream? I am taking an 8
> second source file and using "-audiofile silent.mp3" to try and add
> a silent audio track to the output file. Silent.mp3 is a few minutes
> long. The end of the output ends up looking like:
> 
> Video stream: 3062.960 kbit/s  (382870 B/s)  size: 3062960 bytes  8.000 secs
> Audio stream:  143.424 kbit/s  (17927 B/s)  size: 152673 bytes  8.516 secs

well, you obviously could try -endpos to cut them both to the same
length. If you want to keep the full audio you would have to find a way
to make the video longer first.
You could also use -fps, but that might have ugly side effects.

Greetings,
Reimar Döffinger



More information about the MPlayer-users mailing list