[MPlayer-dev-eng] My second example: PCM u-law audio, and H.263+ video
Ross Finlayson
finlayson at live.com
Tue Aug 6 23:07:08 CEST 2002
My second example attempts to play a stream (actually, a pair of RTP
streams) that consists of PCM u-law audio, and H.263+ video:
mplayer -V
rtsp://darwin.horizonlive.com:554/finlayson/sample-h263-ulaw-8000.mov
Again, here's my output. (See my comments, starting 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:554/finlayson/sample-h263-ulaw-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:554/finlayson/sample-h263-ulaw-8000.mov
Connected to server: darwin.horizonlive.com Stream not seekable!
Sending request: DESCRIBE
rtsp://darwin.horizonlive.com:554/finlayson/sample-h263-ulaw-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: Wed, 26 Sep 2001 15:38:33 GMT Cache-Control: must-revalidate
Content-length: 297
Date: Tue, 06 Aug 2002 17:40:53 GMT
Expires: Tue, 06 Aug 2002 17:40:53 GMT
Content-Type: application/sdp
x-Accept-Retransmit: our-retransmit
Content-Base:
rtsp://darwin.horizonlive.com:554/finlayson/sample-h263-ulaw-8000.mov/
v=0
s=/finlayson/sample-h263-ulaw-8000.mov
u=http:///
e=admin@
c=IN IP4 208.185.32.22
a=control:*
b=AS:528
a=range:npt=0- 37.40333
m=video 0 RTP/AVP 96
b=AS:464
a=rtpmap:96 H263-1998/90000
a=control:trackID=3
a=cliprect:0,0,180,240
m=audio 0 RTP/AVP 0
b=AS:63
a=control:trackID=4
#####ROSS: Note: The second "0" in the "m=audio" line specifies PCM u-law
#####ROSS: and the "a=rtpmap:" line specifies H.263+
Initiated "video/H263-1998" RTP subsession Sending request: SETUP
rtsp://darwin.horizonlive.com:554/finlayson/sample-h263-ulaw-8000.mov/trackID=3
RTSP/1.0 CSeq: 2
Transport: RTP/AVP;unicast;client_port=1030-1031
Received SETUP response: RTSP/1.0 200 OK Server: DSS/3.0.1 [v338]-Linux
Cseq: 2
Last-Modified: Wed, 26 Sep 2001 15:38:33 GMT Cache-Control: must-revalidate
Session: 6499912693745355226
Date: Tue, 06 Aug 2002 17:40:53 GMT
Expires: Tue, 06 Aug 2002 17:40:53 GMT
Transport:
RTP/AVP;unicast;client_port=1030-1031;source=208.185.32.22;server_port=6970-6971
Sending request: PLAY
rtsp://darwin.horizonlive.com:554/finlayson/sample-h263-ulaw-8000.mov/trackID=3
RTSP/1.0 CSeq: 3
Session: 6499912693745355226
Range: npt=0-
Received PLAY response: RTSP/1.0 200 OK Server: DSS/3.0.1 [v338]-Linux
Cseq: 3
Session: 6499912693745355226
RTP-Info: url=trackID=3;seq=59106;ssrc=748942514;rtptime=1119541523
==> Found video stream: 0
Initiated "audio/PCMU" RTP subsession
Sending request: SETUP
rtsp://darwin.horizonlive.com:554/finlayson/sample-h263-ulaw-8000.mov/trackID=4
RTSP/1.0 CSeq: 4
Transport: RTP/AVP;unicast;client_port=1032-1033
Received SETUP response: RTSP/1.0 200 OK Server: DSS/3.0.1 [v338]-Linux
Cseq: 4
Last-Modified: Wed, 26 Sep 2001 15:38:33 GMT Cache-Control: must-revalidate
Session: 528002252947190111
Date: Tue, 06 Aug 2002 17:40:53 GMT
Expires: Tue, 06 Aug 2002 17:40:53 GMT
Transport:
RTP/AVP;unicast;client_port=1032-1033;source=208.185.32.22;server_port=6970-6971
Sending request: PLAY
rtsp://darwin.horizonlive.com:554/finlayson/sample-h263-ulaw-8000.mov/trackID=4
RTSP/1.0 CSeq: 5
Session: 528002252947190111
Range: npt=0-
Received PLAY response: RTSP/1.0 200 OK Server: DSS/3.0.1 [v338]-Linux
Cseq: 5
Session: 528002252947190111
RTP-Info: url=trackID=4;seq=53254;ssrc=1688519499;rtptime=1739930011
#####ROSS: At this point, my code ("libmpdemux/demux_rtp.cpp") allocates
#####ROSS: a "sh_audio_t" structure, and sets its "format" field to 0x7
#####ROSS: (to specify PCM u-law)
#####ROSS: It also allocates a "sh_video_t" structure, and sets its
"format" field
#####ROSS: to mmioFOURCC('H','2','6','3')
==> Found audio stream: 0
[V] filefmt:21 fourcc:0x33363248 size:0x0 fps: 0.00 ftime:=0.0000 FPS
not specified (or invalid) in the header! Use the -fps option!
#####ROSS: The code should really be able to figure out the frame rate by
itself.
#####ROSS: In general, for RTSP-initiated streams like this, the user will not
#####ROSS: know the frame rate in advance, so it's inconvenient to force him
#####ROSS: to specifiy this on the mplayer command line.
#####ROSS: Note that QuickTime Player can play this RTSP URL OK, without
#####ROSS: having to be told the frame rate.
Detected audio codec: [ulaw] afm:5 (uLaw) Initializing audio codec...
Opening audio decoder: [alaw] aLaw/uLaw audio decoder dec_audio: Allocating
2048 + 65536 = 67584 bytes for output buffer Unknown/missing audio format,
using nosound uninit audio: 5
Couldn't initialize audio codec! -> nosound Audio: no sound!!!
#####ROSS: Why is the audio codec initialization failing here??
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