vlc播放rtsp流的问题,服务器ffserver

我使ffserver任务服务器,vlc当作客户端,播放rtsp流时,没有画面,vlc提示没有数据,但是抓包结果显示是有数据的。

抓包记录:

OPTIONS rtsp://10.0.5.182:5454/h264.avi RTSP/1.0
CSeq: 2
User-Agent: LibVLC/2.2.4 (LIVE555 Streaming Media v2016.02.22)

RTSP/1.0 200 OK
CSeq: 2
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE

DESCRIBE rtsp://10.0.5.182:5454/h264.avi RTSP/1.0
CSeq: 3
User-Agent: LibVLC/2.2.4 (LIVE555 Streaming Media v2016.02.22)
Accept: application/sdp

RTSP/1.0 200 OK
CSeq: 3
Date: Sat, 08 Oct 2016 07:39:50 GMT
Content-Base: rtsp://10.0.5.182:5454/h264.avi/
Content-Type: application/sdp
Content-Length: 585

v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Title
c=IN IP4 0.0.0.0
t=0 0
a=tool:libavformat 57.41.100
m=audio 0 RTP/AVP 96
b=AS:19
a=rtpmap:96 MPEG4-GENERIC/8000/2
a=fmtp:96 profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3; config=1590
a=control:streamid=0
m=video 0 RTP/AVP 97
b=AS:62
a=rtpmap:97 H264/90000
a=fmtp:97 packetization-mode=1; sprop-parameter-sets=J01ADKkYYELxCA==,KM4JiA==; profile-level-id=4D400C
a=control:streamid=1
m=application 0 RTP/AVP 3
b=AS:23
a=control:streamid=2
m=application 0 RTP/AVP 3
b=AS:3
a=control:streamid=3
SETUP rtsp://10.0.5.182:5454/h264.avi/streamid=0 RTSP/1.0
CSeq: 4
User-Agent: LibVLC/2.2.4 (LIVE555 Streaming Media v2016.02.22)
Transport: RTP/AVP;unicast;client_port=50140-50141

RTSP/1.0 200 OK
CSeq: 4
Date: Sat, 08 Oct 2016 07:39:50 GMT
Session: 3bf7c45bc1897a77
Transport: RTP/AVP/UDP;unicast;client_port=50140-50141;server_port=44545-44546

SETUP rtsp://10.0.5.182:5454/h264.avi/streamid=1 RTSP/1.0
CSeq: 5
User-Agent: LibVLC/2.2.4 (LIVE555 Streaming Media v2016.02.22)
Transport: RTP/AVP;unicast;client_port=50142-50143
Session: 3bf7c45bc1897a77

RTSP/1.0 200 OK
CSeq: 5
Date: Sat, 08 Oct 2016 07:39:50 GMT
Session: 3bf7c45bc1897a77
Transport: RTP/AVP/UDP;unicast;client_port=50142-50143;server_port=54851-54852

PLAY rtsp://10.0.5.182:5454/h264.avi/ RTSP/1.0
CSeq: 6
User-Agent: LibVLC/2.2.4 (LIVE555 Streaming Media v2016.02.22)
Session: 3bf7c45bc1897a77
Range: npt=0.000-

RTSP/1.0 200 OK
CSeq: 6
Date: Sat, 08 Oct 2016 07:39:50 GMT
Session: 3bf7c45bc1897a77

vlc日志

live555 warning: no data received in 10s. Switching to TCP
live555 error: no data received in 10s, aborting

PS:抓包观察,是有rtp封包的。

2个回答

请问楼主,你这个问题解决了吗?我也遇到了同样的问题,弄了好久都没弄出来,方便解答一下吗?

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐