[MPlayer-users] Mplayer in RTSP crash when network no longer reachable
lonkaji
lonkaji at gmail.com
Mon Oct 25 17:15:15 CEST 2010
hello,
I use mplayer for a small application that displays video from cameras
ip using RTSP.
I developed a GUI in pygtk using the slave mode of mplayer.
I encounter problems when the camera is no longer reachable for a random reason.
I try to hack mplayer with my knowledge of C but I feel that there are
at least 2 implementations in mplayer rtsp and I do not know where to
start.
for now mplayer crash with this log:
mplayer rtsp://root:pass@192.168.0.149/axis-media/media.amp -nocache
-loop 0 -lavdopts skiploopfilter=nonref -hardframedrop
MPlayer SVN-r32492-4.5.1 (C) 2000-2010 MPlayer Team
159 audio & 349 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing rtsp://root:pass@192.168.0.149/axis-media/media.amp.
Resolving 192.168.0.149 for AF_INET6...
Couldn't resolve name for AF_INET6: 192.168.0.149
Connecting to server 192.168.0.149[192.168.0.149]: 554...
librtsp: server responds: 'RTSP/1.0 401 Unauthorized'
rtsp_session: unsupported RTSP server. Server type is 'unknown'.
STREAM_LIVE555, URL: rtsp://root:pass@192.168.0.149/axis-media/media.amp
Stream not seekable!
file format detected.
Initiated "video/H264" RTP subsession on port 51206
Initiated "audio/PCMU" RTP subsession on port 52120
VIDEO: [H264] 0x0 0bpp 15.000 fps 0.0 kbps ( 0.0 kbyte/s)
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
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
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: [oss] 8000Hz 1ch s16le (2 bytes per sample)
Starting playback...
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 800x450 => 800x450 Planar YV12
FramedSource[0x96baa88]::getNextFrame(): attempting to read more than
once at the same time!
MPlayer interrupted by signal 6 in module: decode_audio
- MPlayer crashed. This shouldn't happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
gcc version. If you think it's MPlayer's fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
won't help unless you provide this information when reporting a possible bug.
I think this message "FramedSource[0x96baa88]::getNextFrame():
attempting to read more than once at the same time!" comes from
live555 rtsp librairy.
I would at least know how I can restart mplayer when it has crashed,
or better know hack mplayer to relaunching itself in a loop trying to
retrieve the video stream.
Thanks in advance for any help.
More information about the MPlayer-users
mailing list