[MPlayer-dev-eng] [PATCH] an attempt for '-of raw'
D Richard Felker III
dalias at aerifal.cx
Wed Jan 8 22:24:41 CET 2003
On Wed, Jan 08, 2003 at 09:04:46PM +0100, Moritz Bunkus wrote:
> 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
Very nice idea, although imo using two separate output files is
somewhat awkward with current mencoder command line syntax. Perhaps
there's a better way to handle it...?
> 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.
>
> 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.
I don't know what other files you used, but it definitely won't work
with ogg audio in .ogm for the same reason -oac copy into an avi file
doesn't work with ogg audio. The mplayer ogg demuxer is broken and
strips the first packet/streamheader off the ogg at the demuxing
stage, so that reusing it is impossible. I discussed this with Arpi
once but we never came up with a good fix.
> 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 :)
>
> Oh... and another question: at the moment I take out_filename and
> append '-<streamid>', e.g. '-0', '-1' and so on. Any better
> suggestions?
Maybe select just one stream at a time and run it twice if you want
both audio and video? I dunno...
Rich
More information about the MPlayer-dev-eng
mailing list