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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-20-2005, 12:07 AM
|
#1
|
|
Member
Registered: Sep 2005
Distribution: Ubuntu
Posts: 252
Rep:
|
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.
|
|
|
|
10-20-2005, 12:36 AM
|
#2
|
|
Member
Registered: Mar 2003
Location: St. Louis, MO
Distribution: kubuntu-current
Posts: 551
Rep:
|
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.
|
|
|
|
10-20-2005, 12:53 AM
|
#3
|
|
Member
Registered: Sep 2005
Distribution: Ubuntu
Posts: 252
Original Poster
Rep:
|
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?
|
|
|
|
10-21-2005, 06:46 AM
|
#4
|
|
Member
Registered: Oct 2004
Location: UK
Distribution: Ubuntu/Kubuntu
Posts: 249
Rep:
|
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.
|
|
|
|
10-21-2005, 06:37 PM
|
#5
|
|
Member
Registered: Sep 2005
Distribution: Ubuntu
Posts: 252
Original Poster
Rep:
|
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.
|
|
|
|
06-29-2006, 02:12 PM
|
#6
|
|
Member
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770
Rep:
|
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:50 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|