chenxiuheng / rtsplib-java

Automatically exported from code.google.com/p/rtsplib-java
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Problem opening rtsp video stream #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I've tried to get a h264 video rtsp stream from an ip camera by running the 
playttest program included in the project. I get the following traces.

Best regards.

Session Descriptor
v=0
o=- 1175309572184317 1 IN IP4 0.0.0.0
s=Session streamed by "nessyMediaServer"
i=h264
t=0 0
a=tool:LIVE555 Streaming Media v2010.04.09_dyna_modi_2010.05.05
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:Session streamed by "nessyMediaServer"
a=x-qt-text-inf:h264
m=video 0 RTP/AVP 99
c=IN IP4 0.0.0.0
a=rtpmap:99 H264/90000
a=fmtp:99 packetization-mode=28;profile-level-id=4D4028; 
sprop-parameter-sets=J01AKI2NKA8ARPy4C1AQEBQAAA+kAAOpgaGABQAAAwBZ/K7y40MACgAAAwC
z+V3lwXosAA==,KO48gA==
a=control:track1
a=cliprect:0,0,1920,1080
a=framerate:29.969999
m=audio 7878 RTP/AVP 98
a=rtpmap:98 G726-40/8000/1
a=control:track2

Got response: 
RTSP/1.0 200 OK
CSeq: 0
Date: Sat, Mar 31 2007 04:08:10 GMT
Content-Base: rtsp://10.0.51.146/h264/
Content-Type: application/sdp
Content-Length: 654

for the request: 
DESCRIBE rtsp://10.0.51.146/h264 RTSP/1.0
CSeq: 0
Accept: application/sdp
User-Agent: RTSPClientLib/Java

[*, track1, track2]
Got response: 
RTSP/1.0 200 OK
CSeq: 1
Cache-Control: must-revalidate
Date: Sat, Mar 31 2007 04:08:10 GMT
Transport: 
RTP/AVP;unicast;destination=10.0.51.104;source=10.0.51.146;client_port=2000-2001
;server_port=6970-6971
Session: 48

for the request: 
SETUP rtsp://10.0.51.146/h264/track1 RTSP/1.0
CSeq: 1
Transport: RTP/AVP;unicast;client_port=2000-2001
User-Agent: RTSPClientLib/Java

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(Unknown Source)
    at br.com.voicetechnology.rtspclient.RTSPMessageFactory.incomingMessage(RTSPMessageFactory.java:103)
    at br.com.voicetechnology.rtspclient.RTSPClient.dataReceived(RTSPClient.java:235)
    at br.com.voicetechnology.rtspclient.transport.SafeTransportListener.dataReceived(SafeTransportListener.java:60)
    at br.com.voicetechnology.rtspclient.transport.TransportThread.run(PlainTCP.java:69)
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(Unknown Source)
    at br.com.voicetechnology.rtspclient.RTSPMessageFactory.incomingMessage(RTSPMessageFactory.java:103)
Got response: 
RTSP/1.0 200 OK
CSeq: 2
Cache-Control: must-revalidate
Date: Sat, Mar 31 2007 04:08:10 GMT
Transport: 
RTP/AVP;unicast;destination=10.0.51.104;source=10.0.51.146;client_port=2002-2003
;server_port=6972-6973
Session: 48

for the request: 
SETUP rtsp://10.0.51.146/h264/track2 RTSP/1.0
CSeq: 2
Transport: RTP/AVP;unicast;client_port=2002-2003
Session: 48
User-Agent: RTSPClientLib/Java

    at br.com.voicetechnology.rtspclient.RTSPClient.dataReceived(RTSPClient.java:235)
    at br.com.voicetechnology.rtspclient.transport.SafeTransportListener.dataReceived(SafeTransportListener.java:60)
    at br.com.voicetechnology.rtspclient.transport.TransportThread.run(PlainTCP.java:69)
Got response: 
RTSP/1.0 200 OK
CSeq: 3
Date: Sat, Mar 31 2007 04:08:10 GMT
Session: 48
RTP-Info: 
url=rtsp://10.0.51.146/h264/track1;seq=12328;rtptime=707795532,url=rtsp://10.0.5
1.146/h264/track2;seq=55352;rtptime=3790400010

for the request: 
PLAY rtsp://10.0.51.146/h264 RTSP/1.0
CSeq: 3
Session: 48
User-Agent: RTSPClientLib/Java

Got response: 
RTSP/1.0 200 OK
CSeq: 4
Date: Sat, Mar 31 2007 04:08:20 GMT

for the request: 
TEARDOWN rtsp://10.0.51.146/h264 RTSP/1.0
CSeq: 4
Session: 48
Connection: close
User-Agent: RTSPClientLib/Java

Original issue reported on code.google.com by dgod...@gmail.com on 24 Jan 2011 at 4:06

GoogleCodeExporter commented 9 years ago
I have the same traces, with a samsung ip camera.
i can post the result

Original comment by fernande...@gmail.com on 14 Jun 2011 at 1:59