LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   mplayer decompressed video output to file (https://www.linuxquestions.org/questions/linux-software-2/mplayer-decompressed-video-output-to-file-374911/)

sadarax 10-20-2005 12:07 AM

mplayer decompressed video output to file
 
How would I make mplayer decompress the video it plays and dump that raw video to some file? Like an mpeg or a raw avi? I think mplayer can do this, but the manuals are huge.

tw001_tw 10-20-2005 12:36 AM

From the man page:

-dumpaudio (MPlayer only)
Dumps raw compressed audio stream to ./stream.dump (useful with MPEG/AC3).

-dumpfile <filename> (MPlayer only)
Specify which file MPlayer should dump to. Should be used together with -dumpaudio / -dumpvideo / -dump-
stream.

-dumpstream (MPlayer only)
Dumps the raw stream to ./stream.dump. Useful when ripping from DVD or network.

-dumpvideo (MPlayer only)
Dump raw compressed video stream to ./stream.dump (not very usable).



The only real world example I have is dumping a DVD, but theres scripts out there for that. You might pick one of those apart, and just use the commands you need for whatever you are trying to accomplish.

Good luck
-tw

<edited>
maybe something like this:

mplayer file_name.xyz -dumpstream -dumpfile $path/output_file.mpg

sadarax 10-20-2005 12:53 AM

Thanks for the information. But it did not help. I tried doing this:

mplayer -dumpstream efcp1.nsv -dumpvideo

Which produces a stream.dump file about 8% of the original file. I do not know what this dump file is though, because I cannot open it with anything.

mplayer -dumpstream efcp1.nsv -dumpfile efcp1.mpeg

This produced an mpeg file, but it was no different that the original file. I tested using the diff command. Perhaps mencoder could do the job better?

mickyg 10-21-2005 06:46 AM

Maybe try something along the lines of:

mencoder efcp1.nsv -ovc raw -oac copy efcp1.mpeg

check mencoder -ovc help and mencoder -oac help to get a list of available output codecs you can use.

sadarax 10-21-2005 06:37 PM

Well, mencoder complained about the compatible audio, and suggested I use pcm, so I did.

mencoder efcp2.nsv -ovc raw -oac pcm efcp3.avi

This produced a 1.5 gb test.avi file. It plays just fine, except that Xine reports the video codec as "YUY2." I have been trying for a while no to make it output in something else like rgb24, but I just cannot seem to do it.

ncsuapex 06-29-2006 02:12 PM

How about turning an AVI/MPEG/WMV video into a NSV?

I tried this script but bit real sure if it worked since I cant get my shoutcast video stream to play it..


mencoder filename.avi -ofps 15 -vf scale=300:-2 -oac lavc -ovc lavc -lavcopts vcodec=msmpeg4v2:acodec=mp3:abitrate=64 -o filename.nsv


All times are GMT -5. The time now is 02:52 PM.