Discussion:
[MPlayer-users] 1 second latency and complain about GStreamer when accessing to RTSP stream from AXIS camera
Faisal Mozher
2017-01-24 14:49:56 UTC
Permalink
Hi,
I'm using ubuntu 14.04. I'm trying to play the audio from an `rtsp` audio
stream provided by Axis P5515 camera but I have about a second latency. I'm
using the following command:

mplayer rtsp://username:***@10.10.210.2/axis-media/media.amp
-rtsp-stream-over-tcp -novideo -nolirc -prefer-ipv4 -benchmark -nocache

I get the following reply in the terminal:
MPlayer SVN-r37881 (C) 2000-2012 MPlayer Team

Playing rtsp://username:***@10.10.210.2/axis-media/media.amp.

Connecting to server 10.10.210.2[10.10.210.2]: 554...

librtsp: server responds: 'RTSP/1.0 401 Unauthorized'
rtsp_session: unsupported RTSP server. Server type is 'GStreamer RTSP
server'.
libavformat version 57.44.100 (internal)
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (pcm_mulaw), -aid 0
Clip info:
title: Session streamed with GStreamer
comment: rtsp-server

==========================================================================
Opening audio decoder: [alaw] aLaw/uLaw audio decoder
AUDIO: 8000 Hz, 1 ch, s16le, 64.0 kbit/50.00% (ratio: 8000->16000)
Selected audio codec: [ulaw] afm: alaw (uLaw)

==========================================================================
AO: [pulse] 8000Hz 1ch s16le (2 bytes per sample)
Video: no video
Starting playback...

How to get rid of this complain?

librtsp: server responds: 'RTSP/1.0 401 Unauthorized'
rtsp_session: unsupported RTSP server. Server type is 'GStreamer RTSP
server'.

Is this the reason why it has about one second latency? Could you please
suggest me any idea regarding reducing the latency?
--
Best regards
Faisal
Reimar Döffinger
2017-03-07 23:43:13 UTC
Permalink
Post by Faisal Mozher
Hi,
I'm using ubuntu 14.04. I'm trying to play the audio from an `rtsp` audio
stream provided by Axis P5515 camera but I have about a second latency. I'm
-rtsp-stream-over-tcp -novideo -nolirc -prefer-ipv4 -benchmark -nocache
MPlayer SVN-r37881 (C) 2000-2012 MPlayer Team
That year is weird. Maybe should do a "make clean"?
Post by Faisal Mozher
How to get rid of this complain?
librtsp: server responds: 'RTSP/1.0 401 Unauthorized'
rtsp_session: unsupported RTSP server. Server type is 'GStreamer RTSP
server'.
It's using MPlayer's really old, weird and unmaintained librtsp.
You could try
ffmpeg://rtsp://username:***@10.10.210.2/axis-media/media.amp
instead, maybe it works better.

Loading...