VOD stream rejecting RTSP request with "457 Invalid Range"
Posted: 26 Apr 2014 00:49
I'm streaming some videos from my computer to my Android device. Some videos stream just fine, but some will not play because the PLAY request is being rejected by VLC for inexplicable reasons. Here is the conversation between the client and server:
As you can see, VLC is complaining about an invalid range in the PLAY request; however, the range appears to be valid, since it's exactly the range specified in the SDP file. Is this a bug, or am I just overlooking something due to inexperience?
Code: Select all
OPTIONS rtsp://192.168.1.5:2464/Frozen.avi RTSP/1.0
User-Agent: User-Agent: Samsung SAMSUNG-SGH-I337 stagefright/Beyonce/1.1.9 (Linux;Android 4.4.2)
CSeq: 0
DESCRIBE rtsp://192.168.1.5:2464/Frozen.avi RTSP/1.0
Accept: application/sdp
User-Agent: User-Agent: Samsung SAMSUNG-SGH-I337 stagefright/Beyonce/1.1.9 (Linux;Android 4.4.2)
CSeq: 1
RTSP/1.0 200 OK
Server: VLC/2.1.4
Content-Length: 0
Cseq: 0
Public: DESCRIBE,SETUP,TEARDOWN,PLAY,PAUSE,GET_PARAMETER
RTSP/1.0 200 OK
Server: VLC/2.1.4
Date: Fri, 25 Apr 2014 22:46:31 GMT
Content-Type: application/sdp
Content-Base: rtsp://192.168.1.5:2464/Frozen.avi
Content-Length: 739
Cache-Control: no-cache
Cseq: 1
v=0
o=- 15493900349514561655 15493900349514561655 IN IP4 localhost
s=Unnamed
i=N/A
c=IN IP4 0.0.0.0
t=0 0
a=tool:vlc 2.1.4
a=recvonly
a=type:broadcast
a=charset:UTF-8
a=range: npt=0-6045.000
a=control:rtsp://192.168.1.5:2464/Frozen.avi
m=audio 0 RTP/AVP 96
b=RR:0
a=rtpmap:96 mpeg4-generic/48000/6
a=fmtp:96 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=11b056e500; SizeLength=13; IndexLength=3; IndexDeltaLength=3; Profile=1;
a=control:rtsp://192.168.1.5:2464/Frozen.avi/trackID=0
m=video 0 RTP/AVP 96
b=RR:0
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=64001e;sprop-parameter-sets=Z2QAHqzZQLQpsBEAAAMD6QAA6mCPFi2W,aOvjyyLA;
a=control:rtsp://192.168.1.5:2464/Frozen.avi/trackID=1
SETUP rtsp://192.168.1.5:2464/Frozen.avi/trackID=0 RTSP/1.0
Transport: RTP/AVP/UDP;unicast;client_port=16362-16363
Blocksize: 1400
User-Agent: User-Agent: Samsung SAMSUNG-SGH-I337 stagefright/Beyonce/1.1.9 (Linux;Android 4.4.2)
CSeq: 2
RTSP/1.0 200 OK
Server: VLC/2.1.4
Date: Fri, 25 Apr 2014 22:46:31 GMT
Transport: RTP/AVP/UDP;unicast;client_port=16362-16363;server_port=60141-60142;ssrc=E2AA1973;mode=play
Session: 7d969c7a8a2f5659
Content-Length: 0
Cache-Control: no-cache
Cseq: 2
SETUP rtsp://192.168.1.5:2464/Frozen.avi/trackID=1 RTSP/1.0
Transport: RTP/AVP/UDP;unicast;client_port=15652-15653
Session: 7d969c7a8a2f5659
Blocksize: 1400
User-Agent: User-Agent: Samsung SAMSUNG-SGH-I337 stagefright/Beyonce/1.1.9 (Linux;Android 4.4.2)
CSeq: 3
RTSP/1.0 200 OK
Server: VLC/2.1.4
Date: Fri, 25 Apr 2014 22:46:31 GMT
Transport: RTP/AVP/UDP;unicast;client_port=15652-15653;server_port=57903-57904;ssrc=C990A877;mode=play
Session: 7d969c7a8a2f5659
Content-Length: 0
Cache-Control: no-cache
Cseq: 3
PLAY rtsp://192.168.1.5:2464/Frozen.avi RTSP/1.0
Session: 7d969c7a8a2f5659
Range: npt=0.000-6045.0
User-Agent: User-Agent: Samsung SAMSUNG-SGH-I337 stagefright/Beyonce/1.1.9 (Linux;Android 4.4.2)
CSeq: 4
RTSP/1.0 457 Invalid range
Server: VLC/2.1.4
Date: Fri, 25 Apr 2014 22:46:31 GMT
Session: 7d969c7a8a2f5659
Content-Length: 0
Cache-Control: no-cache
Cseq: 4