SonsOfTone / RaspberrIP-Camera

Raspberry IP Camera - HD H264 Stream Over RTSP - Low Latency
94 stars 42 forks source link

issues with mplayer and xbmc #1

Open pgrandin opened 9 years ago

pgrandin commented 9 years ago

Hi, nice project!

It works using VLC, but I have issues with mplayer and xbmc. Any idea?

Mplayer returns "Server returned 405: Method Not Allowed"

Xbmc returns : ERROR: Playlist Player: skipping unplayable item

Here's the verbose output from mplayer, in case it could be useful:

SDP:
v=0
o=- 1415594735955194 1 IN IP4 192.168.6.9
s=Session streamed by "testH264VideoStreamer"
i=LIVE555 Streaming Media v2014.08.26
t=0 0
a=tool:LIVE555 Streaming Media v2014.08.26
a=type:broadcast
a=control:*
a=source-filter: incl IN IP4 * 192.168.6.9
a=rtcp-unicast: reflection
a=range:npt=0-
a=x-qt-text-nam:Session streamed by "testH264VideoStreamer"
a=x-qt-text-inf:LIVE555 Streaming Media v2014.08.26
m=video 18888 RTP/AVP 96
c=IN IP4 232.45.143.10/255
b=AS:15000
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=640028;sprop-parameter-sets=J2QAKKwrQCgC3QDxImo=,KO4CXLA=
a=control:track1

rtsp_session: unsupported RTSP server. Server type is 'unknown'.
Filename for url is now rtsp://192.168.6.9:8554
Filename for url is now rtsp://192.168.6.9:8554
STREAM_HTTP(2), URL: rtsp://192.168.6.9:8554
Connecting to server 192.168.6.9[192.168.6.9]: 8554...

--- HTTP DEBUG HEADER --- START ---
protocol:           [HTTP/1.1]
http minor version: [1]
uri:                [(null)]
method:             [(null)]
status code:        [405]
reason phrase:      [Method Not Allowed]
body size:          [2]
Fields:
 0 - Date: Mon, Nov 10 2014 04:56:47 GMT
--- HTTP DEBUG HEADER --- END ---
Server returned 405: Method Not Allowed
No stream found to handle url rtsp://192.168.6.9:8554
pgrandin commented 9 years ago

I also have the same error using zoneminder :

zmc_m2[21492]: ERR [Unexpected response code 405, text is 'Method Not Allowed']
SonsOfTone commented 9 years ago

Hi,

I've just tested with mplayer without problem (windows7, ethernet) I used this version : http://freefr.dl.sourceforge.net/project/mplayerwin/MPlayer-MEncoder/r37324/mplayer-svn-37324.7z

This wiith cmd, launch mplayer like this : mplayer rtsp://192.168.1.33:8554/

The mplayer latency is really bad. Tried to reduce the cache size without improvement. If you know a trick to reduce latency with mplayer, i'm interested.