Hi Jos<span class="gmail_quote"><span class="gmail_sendername">é,</span></span><br><br><div><span class="gmail_quote">On 8/8/06, <b class="gmail_sendername">José Paulo Matafome Oleiro</b> <<a href="mailto:matafomeoleiro@gmail.com">
matafomeoleiro@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>
<div>
Hi there to everybody.<br>
I've got a little question maybe you can help me.</div></div></blockquote><div><br>Hardly a _little_ question ;-) <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div>
I've got files encoded in flv and wmv format. MPlayer can reproduce this kind of files. But I want to know if it's possible while playing the files, putting the output (video and audio to separated files, or to any program that can be used to edit this files and save them in another format?)
</div></div></blockquote><div><br>Yes, you can. It is a subject that can become really really complicated really really quickly. You can use, e.g.<br>* mplayer with -dumpvideo and -dumpaudio to dump raw audio and video streams into separate files that you can process further, or
<br>* mencoder to transcode into (e.g.) an avi file that you can then process further, e.g. this command:<br><br>mencoder -really-quiet -oac mp3lame -lameopts br=128:cbr -ovc xvid -xvidencopts bitrate=500 -vf scale=640:-3 -o $outputfile $inputfile
<br><br>will encode the $inputfile to $outputfile into an avi file with video in xvid with a bitrate of 500k, and audio in an mp3 stream with a constant bitrate of 128k, with a width of 640 pixels and a proportionally (honoring your input file video aspect ratio) height.
<br><br>As I said, this can become very complicated very quickly. Things to ask yourself are: <br>* What editing program are you going to use, and what file formats and codecs can it handle?<br>* What codec do you want to use for the intermediate result?
<br>* what codec do you want to use for the final result?<br>* do you want to use the same for both? Remember divx, xvid and the like are lossy, so many repeated editing steps could degrade the quality. Working on the raw audio/video stream however can eat a lot of disk space
<br>* what resolution do you want?<br>* what bitrate do you want?<br>* what framerate do you want?<br>* how much processing power do you have?<br><br>The manual for mplayer and mencoder (both in a single man page) are really good. I suggest you start reading there, and look for the switches I mentioned above.
<br># man mencoder<br>hit "/", type some search term, hit enter, and "/", "enter" until you get to what you want.<br><br>Good luck! <br><br>-- Henk<br></div></div> <br>-- <br><a href="http://www.its.caltech.edu/~postma/">
http://www.its.caltech.edu/~postma/</a>