Recording streaming media
From WhyNotWiki
Contents |
[edit] Recording RealMedia streams in Linux
Capture or record a real audio/video (rtsp) stream in Linux (http://thomer.com/howtos/capture_realstream.html).
[edit] Problem
You want to save (capture) a RealAudio or RealVideo stream to a file for later viewing or listening.
[edit] Solution
mplayer -noframedrop -dumpfile out.rm -dumpstream rtsp://url/to/file.rm
(Michael Carr notes that passing a -bandwidth N option, where N is your available bandwidth may considerably speed up the download; the mplayer manual seems to be unclear about it being bits or bytes, though.)
When the download is done you can watch or listen to out.rm with a media player, like realplay or mplayer.
I can verify that passing -bandwidth can dramatically speed up the download. Before doing that, it took the full 25m:00 that it would normally take if I were streaming it and listening to it in real-time. But by passing -bandwidth 123456789, it achieved blazing speeds and downloaded the same stream in 0m:45.20!
[edit] How to record streams from oneplace.com
This is what I tried at first:
$ mplayer -bandwidth 123456789 -prefer-ipv4 -noframedrop -dumpfile aio20080131.ra -dumpstream 'rtsp://real-cm.edgestreams.net/85/9f/859f2e1df4837b9ccf10345c6d6a613c-47a17aee.rm?auth=caEb6cgd1dYdAaVdha0bUajd2cibgbCbUd1-bhXKet-eS-Ixg&aifp=0001' MPlayer 2:1.0~rc1-0ubuntu13.1 (C) 2000-2006 MPlayer Team CPU: AMD Athlon(tm) 64 Processor 3000+ (Family: 15, Model: 47, Stepping: 2) CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1 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 rtsp://real-cm.edgestreams.net/85/9f/859f2e1df4837b9ccf10345c6d6a613c-47a17aee.rm?auth=caEb6cgd1dYdAaVdha0bUajd2cibgbCbUd1-bhXKet-eS-Ixg&aifp=0001. Resolving real-cm.edgestreams.net for AF_INET... Connecting to server real-cm.edgestreams.net[67.135.228.112]: 554... real: got message from server: 0;Authentication failed. Please try again. rtsp_session: session can not be established. STREAM_LIVE555, URL: rtsp://real-cm.edgestreams.net/85/9f/859f2e1df4837b9ccf10345c6d6a613c-47a17aee.rm?auth=caEb6cgd1dYdAaVdha0bUajd2cibgbCbUd1-bhXKet-eS-Ixg&aifp=0001 Cannot dump this stream - no file descriptor available. Exiting... (Fatal error)
I had downloaded the .ram file to find that it simply pointed to a .smi file. When I downloaded the .smi file it pointed to this rtsp: url. I mistakenly (as I would find out) doubted that mplayer could handle it if I just gave it the .ram file directly, so I was trying to dig to find the "real" URL of the stream so I could give it to mplayer. But it turned out that wasn't necessary, and quite possibly not even possible to get working.
$ mplayer -bandwidth 123456789 -prefer-ipv4 -noframedrop 'rtsp://real-cm.edgestreams.net/85/9f/859f2e1df4837b9ccf10345c6d6a613c-47a17aee.rm?auth=caEb6cgd1dYdAaVdha0bUajd2cibgbCbUd1-bhXKet-eS-Ixg&aifp=0001' MPlayer 2:1.0~rc1-0ubuntu13.1 (C) 2000-2006 MPlayer Team CPU: AMD Athlon(tm) 64 Processor 3000+ (Family: 15, Model: 47, Stepping: 2) CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1 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 rtsp://real-cm.edgestreams.net/85/9f/859f2e1df4837b9ccf10345c6d6a613c-47a17aee.rm?auth=caEb6cgd1dYdAaVdha0bUajd2cibgbCbUd1-bhXKet-eS-Ixg&aifp=0001. Resolving real-cm.edgestreams.net for AF_INET... Connecting to server real-cm.edgestreams.net[67.135.228.112]: 554... real: got message from server: 0;Authentication failed. Please try again. rtsp_session: session can not be established. STREAM_LIVE555, URL: rtsp://real-cm.edgestreams.net/85/9f/859f2e1df4837b9ccf10345c6d6a613c-47a17aee.rm?auth=caEb6cgd1dYdAaVdha0bUajd2cibgbCbUd1-bhXKet-eS-Ixg&aifp=0001 Stream not seekable! file format detected. Failed to get a SDP description from URL "rtsp://real-cm.edgestreams.net/85/9f/859f2e1df4837b9ccf10345c6d6a613c-47a17aee.rm?auth=caEb6cgd1dYdAaVdha0bUajd2cibgbCbUd1-bhXKet-eS-Ixg&aifp=0001": no response code in line: "SET_PARAMETER * RTSP/1.0" Exiting... (End of file)
$ mplayer http://swn.edgeboss.net/real/swn/oneplace/rm/aio/aio20080215.ramMPlayer 2:1.0~rc1-0ubuntu13.1 (C) 2000-2006 MPlayer Team CPU: AMD Athlon(tm) 64 Processor 3000+ (Family: 15, Model: 47, Stepping: 2) CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1 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 http://swn.edgeboss.net/real/swn/oneplace/rm/aio/aio20080215.ram. Resolving swn.edgeboss.net for AF_INET6... Couldn't resolve name for AF_INET6: swn.edgeboss.net Resolving swn.edgeboss.net for AF_INET... Connecting to server swn.edgeboss.net[72.246.51.113]: 80... Cache size set to 320 KBytes Cache fill: 0.02% (66 bytes) Exiting... (End of file)
It wasn't until I discovered the -playlist option (I saw it on a mailing list somewhere while looking for a solution) that I started to have some progress. This played the stream successfully:
$ mplayer -v -playlist http://swn.edgeboss.net/real/swn/oneplace/rm/aio/aio20080215.ram
MPlayer 2:1.0~rc1-0ubuntu13.1 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3000+ (Family: 15, Model: 47, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Filename for url is now http://swn.edgeboss.net/real/swn/oneplace/rm/aio/aio20080215.ram
Filename for url is now http://swn.edgeboss.net/real/swn/oneplace/rm/aio/aio20080215.ram
STREAM_HTTP(1), URL: http://swn.edgeboss.net/real/swn/oneplace/rm/aio/aio20080215.ram
Resolving swn.edgeboss.net for AF_INET6...
Couldn't resolve name for AF_INET6: swn.edgeboss.net
Resolving swn.edgeboss.net for AF_INET...
Connecting to server swn.edgeboss.net[72.246.51.81]: 80...
--- HTTP DEBUG HEADER --- START ---
protocol: [HTTP/1.0]
http minor version: [0]
uri: [(null)]
method: [(null)]
status code: [200]
reason phrase: [OK]
body size: [66]
Fields:
0 - Server: Apache
1 - Content-Type: application/vnd.rn-realmedia
2 - Content-Length: 66
3 - Cache-Control: max-age=261
4 - Date: Thu, 28 Feb 2008 05:38:33 GMT
5 - Connection: close
--- HTTP DEBUG HEADER --- END ---
Content-Type: [application/vnd.rn-realmedia]
Content-Length: [66]
Cache size set to 320 KBytes
STREAM: [null] http://swn.edgeboss.net/real/swn/oneplace/rm/aio/aio20080215.ram
STREAM: Description: http streaming
STREAM: Author: Bertrand, Albeau, Reimar Doeffinger, Arpi?
STREAM: Comment: plain http
Parsing playlist file http://swn.edgeboss.net/real/swn/oneplace/rm/aio/aio20080215.ram...
Trying asx...
Trying Winamp playlist...
Trying extended m3u playlist...
Trying reference-ini playlist...
Trying smil playlist...
Trying plaintext playlist...
Filename for url is now http://swn.edgeboss.net/real/swn/oneplace/rm/aio/aio20080215.smi
Filename for url is now http://swn.edgeboss.net/real/swn/oneplace/rm/aio/aio20080215.smi
STREAM_HTTP(1), URL: http://swn.edgeboss.net/real/swn/oneplace/rm/aio/aio20080215.smi
Resolving swn.edgeboss.net for AF_INET6...
Couldn't resolve name for AF_INET6: swn.edgeboss.net
Resolving swn.edgeboss.net for AF_INET...
Connecting to server swn.edgeboss.net[72.246.51.113]: 80...
--- HTTP DEBUG HEADER --- START ---
protocol: [HTTP/1.0]
http minor version: [0]
uri: [(null)]
method: [(null)]
status code: [200]
reason phrase: [OK]
body size: [529]
Fields:
0 - Server: Apache
1 - Content-Length: 529
2 - Content-Type: application/smil
3 - Expires: Thu, 28 Feb 2008 05:38:33 GMT
4 - Cache-Control: max-age=0, no-cache, no-store
5 - Pragma: no-cache
6 - Date: Thu, 28 Feb 2008 05:38:33 GMT
7 - Connection: close
--- HTTP DEBUG HEADER --- END ---
Content-Type: [application/smil]
Content-Length: [529]
Cache size set to 320 KBytes
STREAM: [null] http://swn.edgeboss.net/real/swn/oneplace/rm/aio/aio20080215.smi
STREAM: Description: http streaming
STREAM: Author: Bertrand, Albeau, Reimar Doeffinger, Arpi?
STREAM: Comment: plain http
Adding playlist http://swn.edgeboss.net/real/swn/oneplace/rm/aio/aio20080215.smi to element entryref
Trying asx...
Trying Winamp playlist...
Trying extended m3u playlist...
Trying reference-ini playlist...
Trying smil playlist...
Detected smil playlist format
Playlist successfully parsed
Playlist successfully parsed
get_path('codecs.conf') -> '/home/tyler/.mplayer/codecs.conf'
Reading /home/tyler/.mplayer/codecs.conf: Can't open '/home/tyler/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
CommandLine: '-v' '-playlist' 'http://swn.edgeboss.net/real/swn/oneplace/rm/aio/aio20080215.ram'
init_freetype
get_path('font/font.desc') -> '/home/tyler/.mplayer/font/font.desc'
font: can't open file: /home/tyler/.mplayer/font/font.desc
font: can't open file: /usr/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using nanosleep() timing
get_path('input.conf') -> '/home/tyler/.mplayer/input.conf'
Can't open input config file /home/tyler/.mplayer/input.conf: No such file or directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 67 binds
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
Setting up LIRC support...
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.
get_path('ff684d67bbd22734beb555d288eb41a3-47b54168.rm?auth=caEdEaXbTaUaAaNd2dVdjagcZdIbfdAb7b9-bhXKJz-eS-Avj&aifp=0001.conf') -> '/home/tyler/.mplayer/ff684d67bbd22734beb555d288eb41a3-47b54168.rm?auth=caEdEaXbTaUaAaNd2dVdjagcZdIbfdAb7b9-bhXKJz-eS-Avj&aifp=0001.conf'
Playing rtsp://real-cm.edgestreams.net/ff/68/ff684d67bbd22734beb555d288eb41a3-47b54168.rm?auth=caEdEaXbTaUaAaNd2dVdjagcZdIbfdAb7b9-bhXKJz-eS-Avj&aifp=0001.
get_path('sub/') -> '/home/tyler/.mplayer/sub/'
STREAM_RTSP, URL: rtsp://real-cm.edgestreams.net/ff/68/ff684d67bbd22734beb555d288eb41a3-47b54168.rm?auth=caEdEaXbTaUaAaNd2dVdjagcZdIbfdAb7b9-bhXKJz-eS-Avj&aifp=0001
Filename for url is now rtsp://real-cm.edgestreams.net/ff/68/ff684d67bbd22734beb555d288eb41a3-47b54168.rm?auth=caEdEaXbTaUaAaNd2dVdjagcZdIbfdAb7b9-bhXKJz-eS-Avj&aifp=0001
Filename for url is now rtsp://real-cm.edgestreams.net/ff/68/ff684d67bbd22734beb555d288eb41a3-47b54168.rm?auth=caEdEaXbTaUaAaNd2dVdjagcZdIbfdAb7b9-bhXKJz-eS-Avj&aifp=0001
Resolving real-cm.edgestreams.net for AF_INET6...
Couldn't resolve name for AF_INET6: real-cm.edgestreams.net
Resolving real-cm.edgestreams.net for AF_INET...
Connecting to server real-cm.edgestreams.net[67.135.228.112]: 554...
Cache size set to 320 KBytes
STREAM: [rtsp] rtsp://real-cm.edgestreams.net/ff/68/ff684d67bbd22734beb555d288eb41a3-47b54168.rm?auth=caEdEaXbTaUaAaNd2dVdjagcZdIbfdAb7b9-bhXKJz-eS-Avj&aifp=0001
STREAM: Description: RTSP streaming
STREAM: Author: Benjamin Zores, Roberto Togni
STREAM: Comment: ported from xine
CACHE_PRE_INIT: 0 [0] 0 pre:65536 eof:0
Cache fill: 17.50% (57344 bytes)
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for NuppelVideo
Checking for REAL
REAL file format detected.
real: Header size: 18
real: Header object version: 0
real: File version: 0
Chunk: PROP (504f5250) (size: 0x32, offset: 0x12)
First index chunk offset: 0x0
First data chunk offset: 0x125
Flags (9): [save allowed]
Chunk: CONT (544e4f43) (size: 0x12, offset: 0x44)
Chunk: MDPR (5250444d) (size: 0xc5, offset: 0x56)
Found new stream (id: 0)
Stream description: audio/x-pn-multirate-realaudio logical stream
Stream mimetype: audio/x-pn-realaudio
==> Found audio stream: 0
Found audio stream!
version: 5
header size: 70
coded_frame_size: 558
sub_packet_h: 16
frame_size: 558
sub_packet_size: 93
samplerate: 22050, channels: 1
audio fourcc: cook (6b6f6f63)
======= WAVE Format =======
Format Tag: 28515 (0x6F63)
Channels: 1
Samplerate: 22050
avg byte/sec: 4005
Block align: 93
bits/sample: 16
cbSize: 8
Unknown extra header dump: [1] [0] [0] [2] [2] [0] [0] [18]
==========================================================================
### skipping 0 bytes of codec info
Chunk: DATA (41544144) (size: 0x5de13c, offset: 0x11b)
Packets in file: 11026
Auto-selected RM audio ID = 0
AUDIO: cook [6B6F6F63]
==========================================================================
Forced audio codec: mad
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
dec_audio: Allocating 192000 + 65536 = 257536 bytes for output buffer.
FFmpeg's libavcodec audio codec
INFO: libavcodec init OK!
AUDIO: 22050 Hz, 1 ch, s16le, 32.0 kbit/9.08% (ratio: 4005->44100)
Selected audio codec: [ffcook] afm: ffmpeg (FFmpeg COOK audio decoder)
==========================================================================
Building audio filter chain for 22050Hz/1ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 22050Hz/1ch/s16le
[dummy] Was reinitialized: 22050Hz/1ch/s16le
alsa-init: requested format: 22050 Hz, 1 channels, 9
alsa-init: using ALSA 1.0.14a
alsa-init: setup for 1/2 channel(s)
alsa-init: using device default
alsa-init: pcm opend in blocking mode
alsa-init: chunksize set to 1024
alsa-init: fragcount=16
alsa-init: got buffersize=32768
alsa-init: got period size 1024
alsa: 48000 Hz/1 channels/2 bpf/32768 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 48000Hz 1ch s16le (2 bytes per sample)
AO: Description: ALSA-0.9.x-1.x audio output
AO: Author: Alex Beregszaszi, Zsolt Barat <joy@streamminister.de>
AO: Comment: under developement
Building audio filter chain for 22050Hz/1ch/s16le -> 48000Hz/1ch/s16le...
[dummy] Was reinitialized: 22050Hz/1ch/s16le
[libaf] Adding filter lavcresample
[dummy] Was reinitialized: 48000Hz/1ch/s16le
[dummy] Was reinitialized: 48000Hz/1ch/s16le
Video: no video
Freeing 0 unused video chunks.
Starting playback...
[libaf] Reallocating memory in module lavcresample, old len = 0, new len = 32762
A: 8.5 (08.5) of 1536.0 (25:36.0) 1.5% 16%
MPlayer interrupted by signal 2 in module: enable_cache
vo: x11 uninit called but X11 not inited..
MPlayer interrupted by signal 2 in module: play_audio
Uninit audio filters...
[libaf] Removing filter lavcresample
[libaf] Removing filter dummy
Uninit audio: ffmpeg
alsa-uninit: pcm closed
vo: x11 uninit called but X11 not inited..
And this dumped it successfully:
$ mplayer -v -playlist http://swn.edgeboss.net/real/swn/oneplace/rm/aio/aio20080215.ram -noframedrop -dumpfile aio20080215.ra -dumpstream
MPlayer 2:1.0~rc1-0ubuntu13.1 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3000+ (Family: 15, Model: 47, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Filename for url is now http://swn.edgeboss.net/real/swn/oneplace/rm/aio/aio20080215.ram
Filename for url is now http://swn.edgeboss.net/real/swn/oneplace/rm/aio/aio20080215.ram
STREAM_HTTP(1), URL: http://swn.edgeboss.net/real/swn/oneplace/rm/aio/aio20080215.ram
Resolving swn.edgeboss.net for AF_INET6...
Couldn't resolve name for AF_INET6: swn.edgeboss.net
Resolving swn.edgeboss.net for AF_INET...
Connecting to server swn.edgeboss.net[72.246.51.81]: 80...
--- HTTP DEBUG HEADER --- START ---
protocol: [HTTP/1.0]
http minor version: [0]
uri: [(null)]
method: [(null)]
status code: [200]
reason phrase: [OK]
body size: [66]
Fields:
0 - Server: Apache
1 - Content-Type: application/vnd.rn-realmedia
2 - Content-Length: 66
3 - Cache-Control: max-age=300
4 - Date: Thu, 28 Feb 2008 05:44:18 GMT
5 - Connection: close
--- HTTP DEBUG HEADER --- END ---
Content-Type: [application/vnd.rn-realmedia]
Content-Length: [66]
Cache size set to 320 KBytes
STREAM: [null] http://swn.edgeboss.net/real/swn/oneplace/rm/aio/aio20080215.ram
STREAM: Description: http streaming
STREAM: Author: Bertrand, Albeau, Reimar Doeffinger, Arpi?
STREAM: Comment: plain http
Parsing playlist file http://swn.edgeboss.net/real/swn/oneplace/rm/aio/aio20080215.ram...
Trying asx...
Trying Winamp playlist...
Trying extended m3u playlist...
Trying reference-ini playlist...
Trying smil playlist...
Trying plaintext playlist...
Filename for url is now http://swn.edgeboss.net/real/swn/oneplace/rm/aio/aio20080215.smi
Filename for url is now http://swn.edgeboss.net/real/swn/oneplace/rm/aio/aio20080215.smi
STREAM_HTTP(1), URL: http://swn.edgeboss.net/real/swn/oneplace/rm/aio/aio20080215.smi
Resolving swn.edgeboss.net for AF_INET6...
Couldn't resolve name for AF_INET6: swn.edgeboss.net
Resolving swn.edgeboss.net for AF_INET...
Connecting to server swn.edgeboss.net[72.246.51.113]: 80...
--- HTTP DEBUG HEADER --- START ---
protocol: [HTTP/1.0]
http minor version: [0]
uri: [(null)]
method: [(null)]
status code: [200]
reason phrase: [OK]
body size: [529]
Fields:
0 - Server: Apache
1 - Content-Length: 529
2 - Content-Type: application/smil
3 - Expires: Thu, 28 Feb 2008 05:44:18 GMT
4 - Cache-Control: max-age=0, no-cache, no-store
5 - Pragma: no-cache
6 - Date: Thu, 28 Feb 2008 05:44:18 GMT
7 - Connection: close
--- HTTP DEBUG HEADER --- END ---
Content-Type: [application/smil]
Content-Length: [529]
Cache size set to 320 KBytes
STREAM: [null] http://swn.edgeboss.net/real/swn/oneplace/rm/aio/aio20080215.smi
STREAM: Description: http streaming
STREAM: Author: Bertrand, Albeau, Reimar Doeffinger, Arpi?
STREAM: Comment: plain http
Adding playlist http://swn.edgeboss.net/real/swn/oneplace/rm/aio/aio20080215.smi to element entryref
Trying asx...
Trying Winamp playlist...
Trying extended m3u playlist...
Trying reference-ini playlist...
Trying smil playlist...
Detected smil playlist format
Playlist successfully parsed
Playlist successfully parsed
get_path('codecs.conf') -> '/home/tyler/.mplayer/codecs.conf'
Reading /home/tyler/.mplayer/codecs.conf: Can't open '/home/tyler/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
CommandLine: '-v' '-playlist' 'http://swn.edgeboss.net/real/swn/oneplace/rm/aio/aio20080215.ram' '-noframedrop' '-dumpfile' 'aio20080215.ra' '-dumpstream'
init_freetype
get_path('font/font.desc') -> '/home/tyler/.mplayer/font/font.desc'
font: can't open file: /home/tyler/.mplayer/font/font.desc
font: can't open file: /usr/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using nanosleep() timing
get_path('input.conf') -> '/home/tyler/.mplayer/input.conf'
Can't open input config file /home/tyler/.mplayer/input.conf: No such file or directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 67 binds
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
Setting up LIRC support...
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.
get_path('ff684d67bbd22734beb555d288eb41a3-47b54168.rm?auth=caEaicqbLdPa9azcybobUbCdJbKcyascMdE-bhXKOY-eS-Ixg&aifp=0001.conf') -> '/home/tyler/.mplayer/ff684d67bbd22734beb555d288eb41a3-47b54168.rm?auth=caEaicqbLdPa9azcybobUbCdJbKcyascMdE-bhXKOY-eS-Ixg&aifp=0001.conf'
Playing rtsp://real-cm.edgestreams.net/ff/68/ff684d67bbd22734beb555d288eb41a3-47b54168.rm?auth=caEaicqbLdPa9azcybobUbCdJbKcyascMdE-bhXKOY-eS-Ixg&aifp=0001.
get_path('sub/') -> '/home/tyler/.mplayer/sub/'
STREAM_RTSP, URL: rtsp://real-cm.edgestreams.net/ff/68/ff684d67bbd22734beb555d288eb41a3-47b54168.rm?auth=caEaicqbLdPa9azcybobUbCdJbKcyascMdE-bhXKOY-eS-Ixg&aifp=0001
Filename for url is now rtsp://real-cm.edgestreams.net/ff/68/ff684d67bbd22734beb555d288eb41a3-47b54168.rm?auth=caEaicqbLdPa9azcybobUbCdJbKcyascMdE-bhXKOY-eS-Ixg&aifp=0001
Filename for url is now rtsp://real-cm.edgestreams.net/ff/68/ff684d67bbd22734beb555d288eb41a3-47b54168.rm?auth=caEaicqbLdPa9azcybobUbCdJbKcyascMdE-bhXKOY-eS-Ixg&aifp=0001
Resolving real-cm.edgestreams.net for AF_INET6...
Couldn't resolve name for AF_INET6: real-cm.edgestreams.net
Resolving real-cm.edgestreams.net for AF_INET...
Connecting to server real-cm.edgestreams.net[67.135.228.112]: 554...
Cache size set to 320 KBytes
STREAM: [rtsp] rtsp://real-cm.edgestreams.net/ff/68/ff684d67bbd22734beb555d288eb41a3-47b54168.rm?auth=caEaicqbLdPa9azcybobUbCdJbKcyascMdE-bhXKOY-eS-Ixg&aifp=0001
STREAM: Description: RTSP streaming
STREAM: Author: Benjamin Zores, Roberto Togni
STREAM: Comment: ported from xine
Stream EOF detected
Core dumped ;)
vo: x11 uninit called but X11 not inited..
Exiting... (End of file)
Other people who have tried to do the same or similar:
http://readlist.com/lists/mplayerhq.hu/mplayer-users/0/2401.html / http://lists.mplayerhq.hu/pipermail/mplayer-users/2006-June/061030.html
http://lists.mplayerhq.hu/pipermail/mplayer-users/2006-November/063596.html
http://forums.xandros.com/viewtopic.php?p=109490 -- sort of related (though they weren't trying to record said stream)
[edit] How to convert RealAudio to other, more open format
http://lists.mplayerhq.hu/pipermail/mplayer-users/2006-November/063598.html.
I am trying to convert this dump to mp3 [...]
the command is
mplayer -ao pcm Job25.dump(to obtain pcm/wav)
[edit] Vsound: A Virtual Audio Loopback Cable
Vsound is a Linux/Unix application which allows you to digitally record the output of another program such as RealPlayer. The recorded output can be saved to a WAV file or can be piped into another program such as an MP3 encoder.
Now it doesn't matter if the player you're using supports saving/dumping the stream also -- if you can play it at all, then now you can save/rip it too! This is great for proprietary players like RealPlayer and Flash-based players. Now if only they could do the same for video!
It is used by the now-unmaintained realcap project.
[edit] MPlayer
MPlayer is a movie player for Linux (runs on many other Unices, and non-x86 CPUs), Windows, Mac OS X. It plays most MPEG/VOB, AVI, Ogg/OGM, VIVO, ASF/WMA/WMV, QT/MOV/MP4, RealMedia, Matroska, NUT, NuppelVideo, FLI, YUV4MPEG, FILM, RoQ, PVA files, supported by many native, XAnim, and Win32 DLL codecs. You can watch VideoCD, SVCD, DVD, 3ivx, DivX 3/4/5 and even WMV movies, too (without the avifile library). MPlayer supports streaming via HTTP/FTP, RTP/RTSP, MMS/MMST, MPST, SDP. MPlayer can dump streams (i.e. download them and save to HD). MPlayer supports HTTP, RTSP, MMS protocols to record Windows Media, RealVideo/RealAudio, QuickTime Video To record streaming media get the URL of a stream and use command line strings like in the following examples:
mplayer.exe -dumpstream rtsp://somehost.com/somedirectory/somefile.rm mplayer.exe -dumpstream rtsp://somehost.com/somedirectory/somefile.ra mplayer.exe -dumpstream rtsp://somehost.com/somedirectory/somefile.asf mplayer.exe -dumpstream mms://somehost.com/somedirectory/somefile.wmvAfter recording you will get the file stream.dump. You should rename it to .rm, .ra, .asf, .wmv or other format you are using.
Recommended free MPlayer package with GUI for Windows: MPlayer + frontend by Gabor Szecsi (When using it enter your URL in a Media file edit box and "-dumpstream" (without quotes) in MPlayer Extra parameters editbox, then click "Start" button to start recording process).
[edit] VLC
VLC (initially VideoLAN Client) is a highly portable multimedia player for various audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX, mp3, ogg, ...) as well as DVDs, VCDs, and various streaming protocols. It can also be used as a server to stream in unicast or multicast in IPv4 or IPv6 on a high-bandwidth network. VLC can record some streaming content.
[edit] mms_client
http://geocities.com/majormms/.
mmsclient mms://...
[...] Once it's finished, you'll find the stream asf file in the current directory.
Categories: RealMedia | RealAudio | Streaming media | GNU/Linux | Recording | Capture | Record | Streaming | Stream | Rip | Ripping | Mplayer | Pages containing web citations
