[FFmpeg-trac] #129(avformat:new): RTSP stream support broken for some RTSP servers
FFmpeg
trac at avcodec.org
Tue May 10 08:43:02 CEST 2011
#129: RTSP stream support broken for some RTSP servers
----------------------+-----------------------
Reporter: grzesiekb | Owner:
Type: defect | Status: new
Priority: critical | Component: avformat
Version: git | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced: 0
Analyzed: 1 |
----------------------+-----------------------
Comment (by grzesiekb):
Hello again.
For telling truth - I used vim :). I include summary of communication
below, I think it is quite clear:
VLC (binary data and cseqs etc - skipped):
{{{
> OPTIONS rtsp://192.168.1.64 RTSP/1.0
> User-Agent: LibVLC/1.1.7 (LIVE555 Streaming Media v2010.04.09)
< RTSP/1.0 200 OK
< Public: DESCRIBE, PLAY, SETUP, TEARDOWN
> DESCRIBE rtsp://192.168.1.64 RTSP/1.0
> Accept: application/sdp
> User-Agent: LibVLC/1.1.7 (LIVE555 Streaming Media v2010.04.09)
< RTSP/1.0 401 Unauthorized
< WWW-Authenticate: Basic realm="/"
> DESCRIBE rtsp://192.168.1.64 RTSP/1.0
> Accept: application/sdp
> Authorization: Basic [HASH]
> User-Agent: LibVLC/1.1.7 (LIVE555 Streaming Media v2010.04.09)
< RTSP/1.0 200 OK
< Content-Type: application/sdp
< Content-Length: 455
< v=0
< o=- 1109162014219182 1109162014219192 IN IP4 x.y.z.w
< s=Media Presentation
< e=NONE
< c=IN IP4 0.0.0.0
< t=0 0
< a=range:ntp=now-
< a=control:*
< m=video 0 RTP/AVP 96
< a=rtpmap:96 MP4V-ES/90000
< a=fmtp:96 profile-level-id=8;
config=000001B0F5000001B50900000100000001200886C40013628087828C;
< a=range:ntp=now-
< a=control:trackID=1
<
a=Media_header:MEDIAINFO=494D4B48010100000400030000000000000000000000000000000000000000000000000000000000;
< a=appversion:1.0
> SETUP rtsp://192.168.1.64/trackID=1 RTSP/1.0
> Transport: RTP/AVP;unicast;client_port=53426-53427
> Authorization: Basic [HASH]
> User-Agent: LibVLC/1.1.7 (LIVE555 Streaming Media v2010.04.09)
< RTSP/1.0 200 OK
< Session: 53025553
< Transport:
RTP/AVP;unicast;client_port=53426-53427;server_port=8202-8203;ssrc=3FBF092C
> PLAY rtsp://192.168.1.64 RTSP/1.0
> Session: 53025553
> Range: npt=0.000-
> Authorization: Basic [HASH]
> User-Agent: LibVLC/1.1.7 (LIVE555 Streaming Media v2010.04.09)
< RTSP/1.0 200 OK
< Session: 53025553
< Range: npt=now-
< RTP-Info: url=trackID=1;seq=49035
[ FRAME DATA ]
> TEARDOWN rtsp://192.168.1.64 RTSP/1.0
> Session: 53025553
> Authorization: Basic [HASH]
> User-Agent: LibVLC/1.1.7 (LIVE555 Streaming Media v2010.04.09)
< RTSP/1.0 200 OK
< Session: 53025553
}}}
AVFormat:
{{{
> OPTIONS rtsp://192.168.1.64:554 RTSP/1.0
< RTSP/1.0 200 OK
< Public: DESCRIBE, PLAY, SETUP, TEARDOWN
> DESCRIBE rtsp://192.168.1.64:554 RTSP/1.0
> Accept: application/sdp
< RTSP/1.0 401 Unauthorized
< WWW-Authenticate: Basic realm="/"
> DESCRIBE rtsp://192.168.1.64:554 RTSP/1.0
> Accept: application/sdp
> Authorization: Basic [HASH]
< RTSP/1.0 200 OK
< Content-Type: application/sdp
< Content-Length: 455
< v=0
< o=- 1109162014219182 1109162014219192 IN IP4 x.y.z.w
< s=Media Presentation
< e=NONE
< c=IN IP4 0.0.0.0
< t=0 0
< a=range:ntp=now-
< a=control:*
< m=video 0 RTP/AVP 96
< a=rtpmap:96 MP4V-ES/90000
< a=fmtp:96 profile-level-id=8;
config=000001B0F5000001B50900000100000001200886C40013628087828C;
< a=range:ntp=now-
< a=control:trackID=1
<
a=Media_header:MEDIAINFO=494D4B48010100000400030000000000000000000000000000000000000000000000000000000000;
< a=appversion:1.0
> SETUP rtsp://192.168.1.64:554/trackID=1 RTSP/1.0
> Transport: RTP/AVP/UDP;unicast;client_port=5000-5001
> Authorization: Basic ...
< RTSP/1.0 200 OK
< Session: 1130582642
< Transport:
RTP/AVP/UDP;unicast;client_port=5000-5001;server_port=8208-8209;ssrc=3FBF092C
> PLAY rtsp://192.168.1.64:554 RTSP/1.0
> Range: npt=0.000-
> Session: 1130582642
> Authorization: Basic ...
[ FRAME DATA ]
> GET_PARAMETER rtsp://192.168.1.64:554 RTSP/1.0
> Session: 1105072745
> Authorization: Basic ...
[ CONNECTION RESET BY PEER ]
}}}
Don't use this summary as strong reference - I removed some important
parts (like authentication problems with VLC) - you can read those pcap
files in Vim for example. As I said - I can send complete files on email.
It is clear that VLC + Live555 doesn't send GET_PARAMETER and
GET_PARAMETER is problem in this case.
Regards,
Grzegorz Bizon
[http://ntsn.pl]
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/129#comment:6>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list