opendir has moved servers and i cant be assed to reconfigure the clusterfuck that is Histoire, enjoy the new look!

if you're missing any directory headers or footers then try with these: header / footer

mplayer decompressed video output to file
LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums HCL Reviews Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-20-2005, 12:07 AM   #1
sadarax
Member
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 249

Rep: Reputation: 30
mplayer decompressed video output to file


[Log in to get rid of this advertisement]
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.
 
Old 10-20-2005, 12:36 AM   #2
tw001_tw
Member
 
Registered: Mar 2003
Location: St. Louis, MO
Distribution: kubuntu-current
Posts: 551
Blog Entries: 4

Rep: Reputation: 31
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

Last edited by tw001_tw; 10-20-2005 at 12:39 AM.
 
Old 10-20-2005, 12:53 AM   #3
sadarax
Member
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 249

Original Poster
Rep: Reputation: 30
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?
 
Old 10-21-2005, 06:46 AM   #4
mickyg
Member
 
Registered: Oct 2004
Location: UK
Distribution: Ubuntu/Kubuntu
Posts: 249

Rep: Reputation: 30
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.
 
Old 10-21-2005, 06:37 PM   #5
sadarax
Member
 
Registered: Sep 2005
Distribution: Ubuntu
Posts: 249

Original Poster
Rep: Reputation: 30
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.
 
Old 06-29-2006, 02:12 PM   #6
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 44
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mplayer- no video output!?!?! help!!!!!!! nicdee Linux - Software 2 10-28-2005 10:28 AM
A Zoran Card, an MPlayer, and A Video Output zgauthier Linux - Hardware 1 05-29-2005 04:20 PM
mplayer video output error cd1680 Linux - Software 4 03-20-2005 11:32 AM
mplayer?? video output killi Slackware 11 05-17-2003 07:10 AM
mplayer video output vank Linux - Software 1 01-14-2003 01:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration