LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Wget - Download streaming media? (https://www.linuxquestions.org/questions/linux-software-2/wget-download-streaming-media-620376/)

Jinouchi 02-11-2008 02:50 PM

Wget - Download streaming media?
 
Is there a way to use wget to download streaming videos? I can hardly ever watch them because our connection isn't fast enough, so I want to download them. I try, but all that gets downloaded is a <200B file. The files I want to dl are .wmv's. Anyone know what I'm doing wrong or if it's even possible?

Example:
Code:

$ wget http://byubwmv.byu.edu/edweek/2007/ED_Week_1202_Freeman.wmv
--14:47:21--  http://byubwmv.byu.edu/edweek/2007/ED_Week_1202_Freeman.wmv
          => `ED_Week_1202_Freeman.wmv.1'
Resolving byubwmv.byu.edu... 128.187.59.7
Connecting to byubwmv.byu.edu|128.187.59.7|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 171 [video/x-ms-wvx]

100%[====================================>] 171          --.--K/s

14:47:23 (5.55 MB/s) - `ED_Week_1202_Freeman.wmv' saved [171/171]

So then I try:
Code:

$ mtype ED_Week_1202_Freeman.wmv
[Reference]
Ref1=http://byubwmv.byu.edu/edweek/2007/ED_Week_1202_Freeman.wmv?MSWMExt=.asf
Ref2=http://128.187.59.7:80/edweek/2007/ED_Week_1202_Freeman.wmv?MSWMExt=.asf

Ty in advance for any help you can offer.

acid_kewpie 02-11-2008 02:53 PM

well you're just not clear on what a wmv file is... it's just a playlist, and you've already shown us what's in it... download that.

Jinouchi 02-11-2008 02:58 PM

I already tried that.
Code:

$ wget http://byubwmv.byu.edu/edweek/2007/ED_Week_1202_Freeman.wmv?MSWMExt=.asf
--14:54:03--  http://byubwmv.byu.edu/edweek/2007/ED_Week_1202_Freeman.wmv?MSWMExt=.asf
          => `ED_Week_1202_Freeman.wmv?MSWMExt=.asf'
Resolving byubwmv.byu.edu... 128.187.59.7
Connecting to byubwmv.byu.edu|128.187.59.7|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 171 [video/x-ms-wvx]

100%[====================================>] 171          --.--K/s

14:54:07 (5.23 MB/s) - `ED_Week_1202_Freeman.wmv?MSWMExt=.asf' saved [171/171]

$ mtype ED_Week_1202_Freeman.wmv?MSWMExt=.asf
[Reference]
Ref1=http://byubwmv.byu.edu/edweek/2007/ED_Week_1202_Freeman.wmv?MSWMExt=.asf
Ref2=http://128.187.59.7:80/edweek/2007/ED_Week_1202_Freeman.wmv?MSWMExt=.asf

Just does the same thing.

naxa 11-20-2008 11:21 AM

You should change the protocol from http:// to mms:// or to mmst://.
wget doesn't support these as far as I know, so I use mplayer instead.
(http://www.mplayerhq.hu)
It can save streams instead of playing them.

Quote:

mplayer -dumpstream -dumpfile ED_Week_1202_Freeman.wmv mms://byubwmv.byu.edu/edweek/2007/ED_Week_1202_Freeman.wmv?MSWMExt=.asf
or

Quote:

mplayer -dumpstream -dumpfile ED_Week_1202_Freeman.wmv mmst://byubwmv.byu.edu/edweek/2007/ED_Week_1202_Freeman.wmv?MSWMExt=.asf
As far as I know, mms is using the 1755 port instead of 80.
Hope it works for you.

Jinouchi 11-20-2008 05:41 PM

Hey, Thanks!! That's just what I've been looking for. I use mplayer alot but I didn't know it could do that. Thanks again!

naxa 11-21-2008 12:39 AM

You're welcome! :)


All times are GMT -5. The time now is 06:59 PM.