Saving Windows Streaming Media into a file...

Discuss Applications
Post Reply
User avatar
Calum
guru
guru
Posts: 1349
Joined: Fri Jan 10, 2003 11:32 am
Location: Bonny Scotland
Contact:

Saving Windows Streaming Media into a file...

Post by Calum »

is there any way to download a windows media streaming movie, perhaps using mplayer or mencoder? if so how? i have seen what i think is this amazing video which has the following link:

http://www.milkandcookies.com/stuff/sbg.asx

now that is simply a small text file with markup pointing to the following location:

mms://ifilm.wmod.llnwd.net/a65/o1/portal/2460092_200.asf

now i can play this movie by typing "mplayer" and then the url of the asf file, and i presume that IE users will put in the asx address and get the movie in their browsers, but is it possible to download the movie (perhaps by converting it to something like an mpeg file?) locally? i am worried this gem might not last and i'd like a record of it for posterity!

thanks in advance, incidentally, although i am not sure if there is a way to do it or not...

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

Just add the "-dumpstream" param and then rename the "stream.dump" to "something.asf" after it finishes.

I really enjoyed this little nugget when the file finished downloading:
Thank you for downloading a media file containing proprietary and patentend technology.
Makes me want to send someone a little note telling them to suck my left big toe.

User avatar
Calum
guru
guru
Posts: 1349
Joined: Fri Jan 10, 2003 11:32 am
Location: Bonny Scotland
Contact:

Post by Calum »

thanks voidmain!

that is an odd message, but judging by the mplayer site, they are being wryly sarcastic.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

Silly me, I thought the message came from the stream. I'm sure you are right that it was an mplayer message in which case I totally agree. :)

Tux
guru
guru
Posts: 689
Joined: Wed Jan 08, 2003 10:40 am

Post by Tux »

This command will encode the strem into a non-M$ format for you, but bear in mind this in encoding on top of encoding => lossy.

For RM:

mencoder rtsp://64.132.47.216/stuff/whatever139.rm -ovc lavc -lavcopts vcodec=mpeg4 -oac copy -o movie.avi

Same for ASF/X

mencoder mms://64.132.47.216/stuff/whatever139.wmv -ovc lavc -lavcopts vcodec=mpeg4 -oac copy -o movie.avi

Doing 'mencoder -vc help' will list your other options for vcodec=

User avatar
Calum
guru
guru
Posts: 1349
Joined: Fri Jan 10, 2003 11:32 am
Location: Bonny Scotland
Contact:

Post by Calum »

hmm, not sure if i agree that avi is a non MS format, in fact it seems to be a microsoft format designed to carry video and audio encoded in a number of different ways, which has been superceded by wmv (according to microsoft).

that's beside the point though, thanks for the start! now i will know what to look for!

thanks guys!

Tux
guru
guru
Posts: 689
Joined: Wed Jan 08, 2003 10:40 am

Post by Tux »

You could actually call it movie.mpg, which is proabaly also the correct thing to do as the example used a mpeg4 codec. As far as I know AVI nowadays is a kind of wrapper format with the video inside encoded with other (usually proprietary) formats. I don't believe any sort of standard dictates AVI (so it proabbly is therefore MS hehe)
Anyway, mplayer and most Linux stuff has no care for file extensions..


EDIT: wow, thats what you basically just said, nevermind me.

Post Reply