[MPlayer-users] real audio stream saved with option -dumpaudio cannot be played

Othmar Frey othmarfrey at gmx.net
Tue Mar 14 10:08:11 CET 2006


hi.

As I was a confused by the exact meaning of the
two options -dumpstream and -dumpaudio
I used -dumpaudio instead of -dumpstream to capture a real audio stream.
(rtsp://206.165.150.203:554/encoder/DRS3.rm)
mplayer fails to play the saved stream!!!

Now I have 2 questions:
1. How can I produce a *.wav or *.mp3 file from the data that I got with
  mplayer -v -dumpaudio rtsp://206.165.150.203:554/encoder/DRS3.rm
  (since i recorded a live stream I have no other choice than using
  this data)
2. Could anybody explain what exactly I have recorded?
  The documentation says at one point
  ( http://www.mplayerhq.hu/DOCS/HTML-single/en/MPlayer.html#streaming-save)
  that the 2 options are equivalent for audio streams and at some other
  (the man page) it says:
      -dumpaudio (MPlayer only)
             Dumps raw compressed audio stream to ./stream.dump (useful with
MPEG/AC3).
  and
  -dumpstream (MPlayer only)
             Dumps the raw stream to ./stream.dump.  Useful when ripping
from DVD or network.
  Obviously, the 2 options are not equivalent at all.

Could anybody shed some light on this?
Thanks.

Othmar


Below you find what I get when I execute:

mplayer -v -dumpaudio rtsp://206.165.150.203:554/encoder/DRS3.rm


MPlayer SuSE Linux 9.3 (i686)-Packman-3.3.5 (C) 2000-2005 MPlayer Team
CPU: Intel  (Family: 8, Stepping: 3)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with
--disable-runtime-cpudetection.


CommandLine: '-v' '-dumpaudio' 'rtsp://206.165.150.203:554/encoder/DRS3.rm'
init_freetype
get_path('font/font.desc') -> '/home/rsl1/ofrey/.mplayer/font/font.desc'
font: can't open file: /home/rsl1/ofrey/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) 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 nanosleep() timing
get_path('input.conf') -> '/home/rsl1/ofrey/.mplayer/input.conf'
Can't open input config file /home/rsl1/ofrey/.mplayer/input.conf: No such
file or directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 59 binds
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : No such device
Can't init input joystick
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('DRS3.rm.conf') -> '/home/rsl1/ofrey/.mplayer/DRS3.rm.conf'
Playing rtsp://206.165.150.203:554/encoder/DRS3.rm.
Filename for url is now rtsp://206.165.150.203:554/encoder/DRS3.rm
Filename for url is now rtsp://206.165.150.203:554/encoder/DRS3.rm
Resolving 206.165.150.203 for AF_INET6...
Couldn't resolve name for AF_INET6: 206.165.150.203
Connecting to server 206.165.150.203[206.165.150.203]:554 ...
Cache size set to 640 KBytes
Connected to server: 206.165.150.203
CACHE_PRE_INIT: 0 [0] 0  pre:0  eof:0
Cache fill: 18.75% (122880 bytes)    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: 0x10c
Flags (9): [save allowed]
Chunk: CONT (544e4f43) (size: 0x1a, offset: 0x44)
Chunk: MDPR (5250444d) (size: 0xa4, offset: 0x5e)
Found new stream (id: 0)
Stream description: Audio Stream
Stream mimetype: audio/x-pn-realaudio
==> Found audio stream: 0
Found audio stream!
version: 5
header size: 70
frame_size: 640
sub_packet_size: 128
samplerate: 44100, channels: 1
======= WAVE Format =======
Format Tag: 28515 (0x6F63)
Channels: 1
Samplerate: 44100
avg byte/sec: 44100
Block align: 640
bits/sample: 16
cbSize: 18
Unknown extra header dump: [80] [0] [10] [0] [5] [0] [80] [2] [8] [0] [1]
[0] [0] [2] [4] [0] [0] [2f]
===========================
### skipping 0 bytes of codec info
Chunk: DATA (41544144) (size: 0x0, offset: 0x102)
demux_real: invalid chunksize! (0)
Packets in file: 0
Auto-selected RM audio ID = 0


-- 
Echte DSL-Flatrate dauerhaft für 0,- Euro*!
"Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl




More information about the MPlayer-users mailing list