[MPlayer-dev-eng] Problems playing non-MPEG streams using RTSP
Ross Finlayson
finlayson at live.com
Tue Aug 6 22:35:13 CEST 2002
I'm having problems getting mplayer (with my new LIVE.COM additions) to
stream non-MPEG RTSP streams. (MPEG audio and/or video streams work just
fine.) I wonder if someone who's familiar with the use of non-MPEG codecs
in mplayer can help me to get this working.
(Note that I have installed the FFmpeg libavcodec files, and the Win32 codecs.)
My first example:
mplayer -V rtsp://darwin.horizonlive.com/finlayson/sample-gsm-8000.mov
This should play a GSM audio stream. Here's the output I get. (I have
inserted my own comments, in lines beginning with #####ROSS:
MPlayer CVS-020805-21:00-2.95.3 (C) 2000-2002 Arpad Gereoffy (see DOCS!)
CPU: Intel Celeron A Mendocino/Pentium II Dixon (Family: 6, Stepping: 10)
CPUflags: MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0 Compiled for
x86 CPU with extensions: MMX
Reading /home/rsf/.mplayer/codecs.conf: 38 audio & 104 video codecs
CommandLine:get_path('font/font.desc') ->
'/home/rsf/.mplayer/font/font.desc' '-V'
'rtsp://darwin.horizonlive.com/finlayson/sample-gsm-8000.mov' Using MMX
Optimized OnScreenDisplay
font: can't open file: /home/rsf/.mplayer/font/font.desc font: can't open
file: /usr/local/share/mplayer/font/font.desc Linux RTC init error: No such
device
Using usleep() timing
get_path('input.conf') -> '/home/rsf/.mplayer/input.conf' Can't open input
config file /home/rsf/.mplayer/input.conf : No such file or directory Can't
open input config file /usr/local/share/mplayer/input.conf : No such file
or directory Falling back on default (hardcoded) input config
Playing rtsp://darwin.horizonlive.com/finlayson/sample-gsm-8000.mov
Connected to server: darwin.horizonlive.com Stream not seekable!
#####ROSS: The following information describes the details of the RTSP
#####ROSS: protocol. You can ignore this stuff.
Sending request: DESCRIBE
rtsp://darwin.horizonlive.com/finlayson/sample-gsm-8000.mov RTSP/1.0 CSeq: 1
Accept: application/sdp
Received DESCRIBE response: RTSP/1.0 200 OK Server: DSS/3.0.1 [v338]-Linux
Cseq: 1
Last-Modified: Mon, 08 Oct 2001 14:57:51 GMT Cache-Control: must-revalidate
Content-length: 233
Date: Tue, 06 Aug 2002 17:34:11 GMT
Expires: Tue, 06 Aug 2002 17:34:11 GMT
Content-Type: application/sdp
x-Accept-Retransmit: our-retransmit
Content-Base: rtsp://darwin.horizonlive.com/finlayson/sample-gsm-8000.mov/
v=0
s=/finlayson/sample-gsm-8000.mov
u=http:///
e=admin@
c=IN IP4 208.185.32.22
a=control:*
a=range:npt=0- 211.28667
m=OTHER 0 RTP/AVP 96
a=rtpmap:96 X-QT/10000
a=control:trackID=3
m=audio 0 RTP/AVP 3
a=control:trackID=4
#####ROSS: Note: The "3" in the "m=" line above is what tells the code that
#####ROSS: the RTP payload format being used is for GSM audio
Initiated "audio/GSM" RTP subsession
Sending request: SETUP
rtsp://darwin.horizonlive.com/finlayson/sample-gsm-8000.mov/trackID=4
RTSP/1.0 CSeq: 2
Transport: RTP/AVP;unicast;client_port=1028-1029
Received SETUP response: RTSP/1.0 200 OK Server: DSS/3.0.1 [v338]-Linux
Cseq: 2
Last-Modified: Mon, 08 Oct 2001 14:57:51 GMT Cache-Control: must-revalidate
Session: 7201557908756280560
Date: Tue, 06 Aug 2002 17:34:11 GMT
Expires: Tue, 06 Aug 2002 17:34:11 GMT
Transport:
RTP/AVP;unicast;client_port=1028-1029;source=208.185.32.22;server_port=6972-6973
Sending request: PLAY
rtsp://darwin.horizonlive.com/finlayson/sample-gsm-8000.mov/trackID=4
RTSP/1.0 CSeq: 3
Session: 7201557908756280560
Range: npt=0-
Received PLAY response: RTSP/1.0 200 OK Server: DSS/3.0.1 [v338]-Linux
Cseq: 3
Session: 7201557908756280560
RTP-Info: url=trackID=4;seq=64105;ssrc=450743074;rtptime=1421381187
#####ROSS: At this point, my code ("libmpdemux/demux_rtp.cpp") allocates
#####ROSS: a "sh_audio_t" structure, and sets its "format" field to 0x31
#####ROSS: (to specify GSM)
==> Found audio stream: 0
Detected audio codec: [msgsmacm] afm:4 (MS GSM) Initializing audio codec...
Opening audio decoder: [acm] Win32 ACM audio decoder ======= Win32 (ACM)
AUDIO Codec init ======= get_path('registry') ->
'/home/rsf/.mplayer/registry' Input format:
wFormatTag 0
nChannels 0
nSamplesPerSec 0
nAvgBytesPerSec 0
nBlockAlign 0
wBitsPerSample 0
cbSize 0
Output fmt:
wFormatTag 1
nChannels 0
nSamplesPerSec 0
nAvgBytesPerSec 0
nBlockAlign 0
wBitsPerSample 16
cbSize 0
Loading DLL: 'msgsm32.acm'
get_path('registry') -> '/home/rsf/.mplayer/registry' Loading DLL:
'msgsm32.acm'
get_path('registry') -> '/home/rsf/.mplayer/registry' Loading DLL:
'msgsm32.acm'
ACM_Decoder: Unappropriate audio format Could not load/initialize Win32/ACM
#####ROSS: Why is this failing? (By the way, a minor nit: correct English is
#####ROSS: "inappropriate", not "unappropriate")
AUDIO codec (missing DLL file?) ADecoder preinit failed :(
Couldn't initialize audio codec! -> nosound Audio: no sound!!!
Freeing 0 unused audio chunks
Video: no video!!!
Freeing 0 unused video chunks
vo: x11 uninit called but X11 not inited..
Exiting... (End of file)
More information about the MPlayer-dev-eng
mailing list