[MPlayer-dev-eng] [PATCH] an attempt for '-of raw'

Arpi arpi at thot.banki.hu
Thu Jan 9 19:54:41 CET 2003


Hi,

> This patch adds '-of raw'. This should do what the name indicates -
> dump the raw video/audio streams to different files. So you should be
> able to demultiplex an MPEG with
> 
> mencoder -ovc -oac -of raw -o streams file.mpg

actually there are 3 types of raw files:
- 'really raw' - just append the raw data packets
- 'almost-raw' - prepend each packet with its length (so there is a 32bit
  integer stored as chunk size then the raw data chunk)
- 'mplayer dump format' (developed by Alex) - very simple header containing
the BITMAPINFO/WAVEFORMATEX structs and then packets in almost-raw format.

you seem to support really raw now.
it's usefull only for headerless streamable formats, like mpeg-es
(video-only mpeg1/2), mpeg audio layer 1/2/3, uncompressed pcm audio or yuv
images.
for frame-based formats you should use almost-raw... but they are usually
unplayable without the audio/video headers anyway.


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu


More information about the MPlayer-dev-eng mailing list