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

Fabian Franz FabianFranz at gmx.de
Wed Jan 8 22:22:53 CET 2003


Am Mittwoch, 8. Januar 2003 21:04 schrieb Moritz Bunkus:
> 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

nice :)
works! (but you missed the Makefile in your patch)

>
> and so on. Could be meant as a further replacement for the dumping
> functions of mplayer (e.g. -vo yuv4mpeg) or just to get raw XviD/FFmpeg
> streams.

good idea ...

>
> Unfortunately it does not work properly. A file I tested was
> demultiplexed, but only the video was ok - the audio file was totally
> messed up. Same with an OGM.

Hm, I don't think it is messed up. I got for example mp3-audio to play with:

mplayer -ac mp3 -rawaudio on:format=0x50 streams-1.mp3

I think it just misses the header-informations (ID3-Tag, FOURCC and so on) ...

>
> I don't know all too much about the muxing/demuxing internals of
> mencoder, so I hope that some kind soul could take a look at this patch
> and help me a bit. I'd really appreciate that :)

I think it should work like that ...

>
> Oh... and another question: at the moment I take out_filename and
> append '-<streamid>', e.g. '-0', '-1' and so on. Any better
> suggestions?

Perhaps, you could differ between video and audio I think ogmdemux (written by 
you ;) ) uses this scheme (I really like):

"Use  'out'  as the base for destination file names.  '-v1', '-v2', '-a1', 
'-t1'... will be appended to this name."

Perhaps we can create a raw-format with some identify (plain text) information 
at the beginning, so that raw files remain playable ...

(OT: btw. ogmmerge says as help: File streams-0.mpv has unknown type. Try -t.; 
but -t is for selecting stream number :()

So, Nice work!

cu

Fabian



More information about the MPlayer-dev-eng mailing list