vendredi 10 août 2007

mplayer -> VLC ?

I have decided to use VLC instead of mplayer/mencoder for one single reason : VLC supports MPEG-2 TS muxing (through the libdvbpsi) while mencoder do not.

Of course it may be possible to use this lib with mplayer too, but I don't want loosing my time to hack it ...

update 17/08/2007
Mmm, it seems that it is supported in ffmpeg (and so mencoder) too but it is not documented.
The output format name option is "mpegts".
Alternatively there is apparently the Avidemux software that can do the muxing job.
I cannot test right now ... So it's a note for later ...

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