LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums 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 11-23-2007, 02:42 PM   #1
calande
Member
 
Registered: Oct 2005
Distribution: Ubuntu
Posts: 165

Rep: Reputation: 15
How to rip streaming media for later use?


Hello,

I'm on a fairly slow Internet connection and even with a 1-minute buffer, my media player skips from time to time when I play a streaming video. What I'd like to do is download the streaming video (it's a 90MiB file), save it as wmv (for instance) and watch it locally. The URL of the video is:
Code:
mms://sdmc.contents.edgestreams.net/horsgv/regions/siege/infos/f2/20h/HD_20h_20071123.wmv?WMCache=0
How could I do it please?
Thanks.
 
Old 11-23-2007, 02:57 PM   #2
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 44
try this
command is a one liner.


mplayer -dumpstream -dumpfile HD_20h_20071123.wmv mms://sdmc.contents.edgestreams.net/horsgv/regions/siege/infos/f2/20h/HD_20h_20071123.wmv


if it doesnt work try it with the "?WMCache=0" after .wmv in the URL
 
Old 11-23-2007, 06:01 PM   #3
calande
Member
 
Registered: Oct 2005
Distribution: Ubuntu
Posts: 165

Original Poster
Rep: Reputation: 15
Thanks, it's not working as expected...

Code:
%mplayer -dumpstream -dumpfile HD_20h_20071123.wmv mms://sdmc.contents.edgestreams.net/horsgv/regions/siege/infos/f2/20h/HD_20h_20071123.wmv
MPlayer 1.0rc2-SUSE Linux 10.3 (i686)-Packman-4.2.1 (C) 2000-2007 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Model: 8, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing mms://sdmc.contents.edgestreams.net/horsgv/regions/siege/infos/f2/20h/HD_20h_20071123.wmv.
STREAM_ASF, URL: mms://sdmc.contents.edgestreams.net/horsgv/regions/siege/infos/f2/20h/HD_20h_20071123.wmv
Resolving sdmc.contents.edgestreams.net for AF_INET6...
Couldn't resolve name for AF_INET6: sdmc.contents.edgestreams.net
Resolving sdmc.contents.edgestreams.net for AF_INET...
Connecting to server sdmc.contents.edgestreams.net[81.52.201.106]: 1755...
Connected
unknown object
unknown object
file object, packet length = 1444 (1444)
unknown object
unknown object
stream object, stream ID: 1
stream object, stream ID: 2
unknown object
data object
mmst packet_length = 1444
Cache size set to 64 KBytes
Stream not seekable!
%
Or...

Code:
%mplayer -dumpstream -dumpfile HD_20h_20071123.wmv mms://sdmc.contents.edgestreams.net/horsgv/regions/siege/infos/f2/20h/HD_20h_20071123.wmv?WMCache=0
MPlayer 1.0rc2-SUSE Linux 10.3 (i686)-Packman-4.2.1 (C) 2000-2007 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Model: 8, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing mms://sdmc.contents.edgestreams.net/horsgv/regions/siege/infos/f2/20h/HD_20h_20071123.wmv?WMCache=0.
STREAM_ASF, URL: mms://sdmc.contents.edgestreams.net/horsgv/regions/siege/infos/f2/20h/HD_20h_20071123.wmv?WMCache=0
Resolving sdmc.contents.edgestreams.net for AF_INET6...
Couldn't resolve name for AF_INET6: sdmc.contents.edgestreams.net
Resolving sdmc.contents.edgestreams.net for AF_INET...
Connecting to server sdmc.contents.edgestreams.net[80.12.192.79]: 1755...
Connected
unknown object
unknown object
file object, packet length = 1444 (1444)
unknown object
unknown object
stream object, stream ID: 1
stream object, stream ID: 2
unknown object
data object
mmst packet_length = 1444
Cache size set to 64 KBytes
Stream not seekable!
Any idea?
 
Old 11-23-2007, 07:40 PM   #4
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
It's a news broadcast in French.

That is how you download it with mplayer
Code:
mplayer -dumpstream -dumpfile name_it.wmv mms://sdmc.contents.edgestreams.net/horsgv/regions/siege/infos/f2/20h/HD_20h_20071123.wmv
If you can't capture the stream with mplayer by dumping the stream then your installation of mplayer is messed up. I've saved streams hundreds of times with mplayer that way. Works on Linux, BSD, and Windows version of mplayer. Or you may not have the correct codecs installed.

Another method would be to use mmsclient.

Last edited by teckk; 11-23-2007 at 07:42 PM.
 
Old 11-28-2007, 01:55 PM   #5
calande
Member
 
Registered: Oct 2005
Distribution: Ubuntu
Posts: 165

Original Poster
Rep: Reputation: 15
Thanks guys, I got it working this way
Code:
mplayer -dumpstream mms://sdmc.contents.edgestreams.net/horsgv/regions/siege/infos/f2/20h/HD_20h_20071127.wmv -dumpfile journal.wmv
Do you know how I could set up a cronjob to run this script everyday at 6:00pm and to change the date in the URL of the video? For instance:
Code:
mplayer -dumpstream mms://sdmc.contents.edgestreams.net/horsgv/regions/siege/infos/f2/20h/HD_20h_200711${DAY}.wmv -dumpfile journal.wmv
Or something like this in Bash. Thanks again
 
Old 07-17-2008, 06:19 PM   #6
Brons
LQ Newbie
 
Registered: Aug 2006
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by calande View Post
Do you know how I could set up a cronjob to run this script everyday at 6:00pm and to change the date in the URL of the video?

Old thread, but since nobody answered. This is how I did it.
It's a radio chanel, but video ought to work the same way.
I always add a couple of minutes at the beginning and the end of the show, and then edit the wav-file in kwave before converting it to mp3 with lame.


In crontab, e.g.:
Code:
# Record Radio
52 19 23 7 * ~/bin/radio1
58 20 23 7 * ~/bin/radio2
radio1:
Code:
#!/bin/sh
exec 2> /dev/null               # send error output to /dev/null
TIMESTAMP=`date +%y%m%d_%H%M`
mplayer -really-quiet -ao pcm:file=Radio_$TIMESTAMP.wav -vc dummy -vo null rtsp://rm-live.sr.se/broadcast/srminnen.rm
radio2:
Code:
#!/bin/sh
exec 2> /dev/null               # send error output to /dev/null
killall -6 mplayer
 
Old 07-19-2008, 03:20 AM   #7
resetreset
Senior Member
 
Registered: Mar 2008
Location: Cyberspace
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,340

Rep: Reputation: 62
i dont see why mplayer should even be needed. i'm sure netcat by itself will do it, but i cant tell you the actual cmd
 
  


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
streaming media dcc Linux - Newbie 1 12-20-2006 08:13 PM
streaming media how to lhrt General 1 06-04-2006 03:51 PM
media streaming berrance Linux - Software 0 01-02-2005 06:41 AM
Streaming Media ray-solomon Linux - Software 2 06-28-2003 03:25 PM
streaming media Boom Linux - Newbie 2 01-24-2003 09:33 PM

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

All times are GMT -5. The time now is 08:26 PM.

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
Open Source Consulting | Domain Registration