[MPlayer-users] Correct way to record a realaudio stream?

Raphael Clifford raphael at clifford.net
Thu Jul 31 18:30:03 CEST 2003


Nico wrote:

> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
>
>
> Raphael Clifford wrote:
>
>> [Automatic answer: RTFM (read DOCS, FAQ), also read 
>> DOCS/bugreports.html]
>> I am attempting to record a real audio stream so I can listen to it 
>> on my laptop when it is disconnected.  I am using
>>
>> mplayer rtsp://rmv8.bbc.net.uk/radio4/sat1230.ra  -dumpfile file.ra 
>> -dumpstream
>>
>> Is this the wrong way to do it?  I ask because  file.ra is not 
>> playable in an official realplayer at this point.  The linux 
>> realplayer plays with no sound (it is an audio only file!) and the 
>> windows one simply sits there buffering forever.  It seems, at a 
>> guess, that the official realplayers think the data should still be 
>> streaming over the net despite having been given a file.  Obviously 
>> the don't receive any data over the net and so don't play anything.  
>> The URL can be played perfectly well in the official realplayers.
>>
>> The main reason I would like to use an official realplayer is that I 
>> can't work out how to seek/skip in mplayer for this type of file.  Is 
>> there anyway to do this?
>>
>> Cheers,
>> Raphael
>> P.S.
>> MPlayer dev-CVS-030730-10:51-3.1
>> redhat 7.3 with gcc 3.1 installed
>

"try to change -dumpstream with -dumpaudio"


Sadly that just makes things worse.    If I do that I can't even play 
the resulting file in mplayer, let alone the official realplayers.

At the end of capturing the audio stream I get

"Unknown extra header dump: [80] [0] [10] [0] [17] [0] [80] [2] [10] [0] 
[1] [0] [0] [3] [8] [0] [0] [25] [0] [0] [0] [0] [0] [2] [0] [4]
===========================
rdt chunk not recognized: got 0x53
rdt chunk not recognized: got 0x4d
00952840: packet v0 len=4 
bad packet len (4)
00952848: packet v20545 len=0 
bad packet len (0)
Core dumped ;)
"

Here is the output of mplayer -v on the file that was produced.

--------------------------------------------------------------------------------------------------------

MPlayer dev-CVS-030730-10:51-3.1 (C) 2000-2003 MPlayer Team

CPU: Intel Celeron Covington/Pentium II Deschutes,Tonga/Pentium II Xeon 
(Family: 6, Stepping: 2)
Detected cache-line size is 32 bytes
CPUflags:  MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or 
directory
Reading config file /home/clifford/.mplayer/config
Reading /home/clifford/.mplayer/codecs.conf: Can't open 
'/home/clifford/.mplayer/codecs.conf': No
such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open 
'/usr/local/etc/mplayer/codecs.conf': No su
ch file or directory
Using built-in default codecs.conf
CommandLine: '-v' 'file.ra' '2'
get_path('font/font.desc') -> '/home/clifford/.mplayer/font/font.desc'
font: can't open file: /home/clifford/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
init_freetype
Using MMX Optimized OnScreenDisplay
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system 
startup scripts.
Using usleep() timing
get_path('input.conf') -> '/home/clifford/.mplayer/input.conf'
Can't open input config file /home/clifford/.mplayer/input.conf: No such 
file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such 
file or directory
Falling back on default (hardcoded) input config
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: Permission denied
Failed to open LIRC support.
You will not be able to use your remote control.
get_path('file.ra.conf') -> '/home/clifford/.mplayer/file.ra.conf'

Playing file.ra
Not an URL!
[file] File size is 9594880 bytes
STREAM: [file] file.ra
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x8509a00 
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x8509a00 
Checking for NuppelVideo
DEMUXER: freeing demuxer at 0x8509a00 
Checking for REAL
DEMUXER: freeing demuxer at 0x8509a00 
Checking for SMJPEG
DEMUXER: freeing demuxer at 0x8509a00 
DEMUXER: freeing demuxer at 0x850a3a0 
Searching demuxer type for filename file.ra ext: .ra
Trying demuxer 11 based on filename extension
Checking for REAL
DEMUXER: freeing demuxer at 0x850a3a0 
demuxer: continue fuzzy content-based format guessing...
Checking for MOV
DEMUXER: freeing demuxer at 0x850a3a0 
Checking for VIVO
DEMUXER: freeing demuxer at 0x850a3a0 
DEMUXER: freeing demuxer at 0x850a3a0 
DEMUXER: freeing demuxer at 0x850a3a0 
DEMUXER: freeing demuxer at 0x850a3a0 
DEMUXER: freeing demuxer at 0x850a3a0 
DEMUXER: freeing demuxer at 0x850a3a0 
DEMUXER: freeing demuxer at 0x850a3a0 
Checking for PVA
DEMUXER: freeing demuxer at 0x850a3a0 
Checking for TS...
TRIED UP TO POSITION 68776, FOUND 0, packet_size= 71
DEMUXER: freeing demuxer at 0x850a3a0 
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video) 
MPEG packet stats: p100: 0  p101: 0 p1B6: 0 p12x: 0 sli: 0 a: 0 b: 0 c: 
0 idr: 0 sps: 0 pps: 0 PES
: 0  MP3: 812
Not MPEG System Stream format... (maybe Transport Stream?)
DEMUXER: freeing demuxer at 0x850a3a0 
==> Found audio stream: 0
DEMUXER: freeing demuxer at 0x850a3a0 
DEMUXER: freeing sh_audio at 0x850cd98 
==> Found video stream: 0
TiVo file format detected.
ds_fill_buffer: EOF reached (stream: audio) 
MPEG: No audio stream found -> no sound.
Searching for sequence header... ds_fill_buffer: EOF reached (stream: 
video) 
NONE :(
MPEG: FATAL: EOF while searching for sequence header.
Video: Cannot read properties.
No stream found.

DEMUXER: freeing demuxer at 0x850a3a0 
DEMUXER: freeing sh_video at 0x8510dd0 
get_path('2.conf') -> '/home/clifford/.mplayer/2.conf'

Playing 2
Not an URL!
File not found: '2'
Failed to open 2

vo: x11 uninit called but X11 not inited..

Exiting... (End of file)
----------------------------------------------------------------------------------------------------------------

Cheers,
Raphael



More information about the MPlayer-users mailing list