mardi 7 août 2007

minitutorial : video.yuv -> video.yuv.avi

Well just a small tutorial note for people working with me on video coding ...

to obtain a yuv video from any video source that mplayer can read, execute:
mplayer file.ext -ao null -vo yuv4mpeg -o file.yuv
and to pack a yuv video file into an avi container use:
mencoder file.yuv -ovc copy -o file.yuv.avi
to keep the sound in the uncompressed avi you can do:
mplayer file.ext -ao pcm -vo yuv4mpeg
mencoder stream.yuv -audiofile audiodump.wav -ovc copy -o file.yuvpcm.avi

the two actions can be done in one single command like this:
mencoder file.ext -ovc raw -nosound -of avi -o file.raw.avi
or
mencoder file.ext -ovc raw -oac pcm -of avi -o file.raw.avi

Aucun commentaire: