[MPlayer-DOCS] [PATCH] new section: muxing

Nico Sabbi nsabbi at tiscali.it
Tue Apr 12 15:48:32 CEST 2005


Guillaume Poirier wrote:

>Ok. I guess that for the purpose of coherency, I should explain why we
>want to use a different container than AVI (ok, that's done) and MPEG
>(?).
>
>My first thought would be that when I was an MPlayer-newbie, I never
>managed to mux an existent video file and a audio file into a single
>file (and quite frankly, I still don't know how).
>  
>

mplayer -oac copy -ovc copy  -o x.avi -audiofile file.mp3 video.m4v

(works with mp2/1 audio, wav and few other formats too).
If audio is ac3 it is now automatically demuxed (based on the extension) 
by demux_lavf.
Other formats that are not automatically demuxed (such as aac) need

-audio-demuxer 20 -rawaudio format=0xyyyy:channels=n:bitrate=m:rate=w

BTW, muxer_lavf is beginning to work better: mpeg* and asf  (at least in 
my local tree)
produce valid and synced files.




More information about the MPlayer-DOCS mailing list