[MPlayer-users] how to set interface for rtsp?

sean darcy seandarcy2 at gmail.com
Sun Apr 10 20:03:27 CEST 2011


I'm on a laptop connected by wireless - wlan0, trying to play a stream:

mplayer -rtsp-destination 10.10.11.170
  rtsp://server:1935/plp/mp4:Play-2004-300k.mp4

I'm getting a bunch of:

Unable to determine our source address: This computer has an invalid IP 
address: 0x0
Unable to determine our source address: This computer has an invalid IP 
address: 0x0
Unable to determine our source address: This computer has an invalid IP 
address: 0x0

and it doesn't play. FWIW, it does play using vlc as the client. I think 
one problem is that mplayer is not binding to wlan0, at least for the 
udp stream.

It negotiates with the rtsp server, but does not get/see the stream itself:

Received PLAY response: RTSP/1.0 200 OK
Range: npt=0.0-3000.431
Session: 1567220278;timeout=60
Cseq: 4
RTP-Info: 
url=rtsp://server:1935/plp/mp4:Play-2004-300k.mp4/trackID=1;seq=1;rtptime=0,url=rtsp://server:1935/plp/mp4:Play-2004-300k.mp4/trackID=2;seq=1;rtptime=0
Server: Wowza Media Server 2.2.3.11 build27285


==> Found audio stream: 0
==> Found video stream: 0
VIDEO:  [H264]  0x0  0bpp  29.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:21  fourcc:0x34363248  size:0x0  fps:29.000  ftime:=0.0345
get_path('sub/') -> '/root/.mplayer/sub/'
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1366x768 with depth 24 and 32 bpp (":0.0" => local 
display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared 
object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
[VO_XV] Could not grab port 72.
[VO_XV] Could not grab port 73.
[VO_XV] Could not grab port 74.
[VO_XV] Using Xv Adapter #0 (Intel(R) Textured Video)
[xv common] Drawing no colorkey.
[xv common] Maximum source image dimensions: 2048x2048
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
dec_audio: Allocating 6144 bytes for input buffer.
dec_audio: Allocating 65536 + 65536 = 131072 bytes for output buffer.
FAAD: Decoder init done (0Bytes)!
FAAD: Negotiated samplerate: 32000Hz  channels: 2
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 32000 Hz, 2 ch, s16le, 128.0 kbit/12.50% (ratio: 16000->128000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
Building audio filter chain for 32000Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 32000Hz/2ch/s16le
[dummy] Was reinitialized: 32000Hz/2ch/s16le
Trying preferred audio driver 'pulse', options '[none]'
AO: [pulse] 32000Hz 2ch s16le (2 bytes per sample)
AO: Description: PulseAudio audio output
AO: Author: Lennart Poettering
Building audio filter chain for 32000Hz/2ch/s16le -> 32000Hz/2ch/s16le...
[dummy] Was reinitialized: 32000Hz/2ch/s16le
[dummy] Was reinitialized: 32000Hz/2ch/s16le
Starting playback...
ds_fill_buffer: EOF reached (stream: audio)
ds_fill_buffer: EOF reached (stream: video)
ds_fill_buffer: EOF reached (stream: video)
ds_fill_buffer: EOF reached (stream: video)
ds_fill_buffer: EOF reached (stream: video)
ds_fill_buffer: EOF reached (stream: video)
ds_fill_buffer: EOF reached (stream: video)
ds_fill_buffer: EOF reached (stream: video)
ds_fill_buffer: EOF reached (stream: video)
ds_fill_buffer: EOF reached (stream: video)
EOF code: 1   0.0 A-V:  0.000 ct:  0.000   0/  0 ??% ??% ??,?% 0 0 


 From the server side:

new: rtsp://officePBX:1935/plp/mp4:Play-2004-300k.mp4
INFO rtsp connect 1567220278 -
INFO stream create - -
INFO rtsp describe 1567220278 -
INFO stream play Play-2004-300k.mp4 -
INFO server comment - RTPUDPTransport.bind[plp/_definst_]: 
0.0.0.0/0.0.0.0:6970
INFO server comment - RTPUDPTransport.bind[plp/_definst_]: 
0.0.0.0/0.0.0.0:6971
INFO server comment - RTPUDPTransport.bind[plp/_definst_]: 
0.0.0.0/0.0.0.0:6972
INFO server comment - RTPUDPTransport.bind[plp/_definst_]: 
0.0.0.0/0.0.0.0:6973
INFO rtsp play 1567220278 -
INFO server comment - UDPTransport.firstPacket: 0.0.0.0/0.0.0.0:6973
INFO server comment - RTPUDPTransport.unbind[plp/_definst_]: 
0.0.0.0/0.0.0.0:6970
INFO server comment - RTPUDPTransport.unbind[plp/_definst_]: 
0.0.0.0/0.0.0.0:6971
INFO server comment - RTPUDPTransport.unbind[plp/_definst_]: 
0.0.0.0/0.0.0.0:6972
INFO server comment - RTPUDPTransport.unbind[plp/_definst_]: 
0.0.0.0/0.0.0.0:6973
INFO stream stop Play-2004-300k.mp4 -
INFO stream destroy Play-2004-300k.mp4 -
INFO rtsp disconnect 1567220278 -

sean



More information about the MPlayer-users mailing list