Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EasyPusher_RTSP 拉流UDP视频数据不能播放 #12

Open
wangweifrank opened this issue Feb 28, 2017 · 2 comments
Open

EasyPusher_RTSP 拉流UDP视频数据不能播放 #12

wangweifrank opened this issue Feb 28, 2017 · 2 comments

Comments

@wangweifrank
Copy link

远端RTSP服务器 使用UDP传输发送H264视频, VLC 设置 --no-rtsp-tcp 播放正常, EasyPusher_RTSP 拉流Log显示正常,但是EasyDarwin sdp 无法播放视频流。

Pusher log:

Sending request: OPTIONS rtsp://172.16.3.14:8008 RTSP/1.0
CSeq: 2
User-Agent: EasyRTSPClient v1.0.16.0909 (LIVE555 Streaming Media v2016.05.20)

Received 121 new bytes of response data.
Received a complete OPTIONS response:
RTSP/1.0 200 OK
Server: AirCraft RTSP Server
Cseq: 2
Content-Length: 0
Public: DESCRIBE,SETUP,TEARDOWN,PLAY,PAUSE

Sending request: DESCRIBE rtsp://172.16.3.14:8008 RTSP/1.0
CSeq: 3
User-Agent: EasyRTSPClient v1.0.16.0909 (LIVE555 Streaming Media v2016.05.20)
Accept: application/sdp

Received 363 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 200 OK
Server: AirCraft RTSP Server
Cseq: 3
Content-Length: 220
Content-Base: 172.16.3.14:8008/
Content-Type: application/sdp

v=0
o=- 0 0 IN IP4 172.16.3.14
s=Unnamed
i=N/A
c=IN IP4 10.168.17.56
t=0 0
a=recvonly
m=video 5006 RTP/AVP 96
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=42C029;
a=control:trackID=1

20170228 165833 Channel[0] Got a SDP description: v=0
o=- 0 0 IN IP4 172.16.3.14
s=Unnamed
i=N/A
c=IN IP4 10.168.17.56
t=0 0
a=recvonly
m=video 5006 RTP/AVP 96
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=42C029;
a=control:trackID=1

Press Enter exit...
Sending request: SETUP 172.16.3.14:8008/trackID=1 RTSP/1.0
CSeq: 4
User-Agent: EasyRTSPClient v1.0.16.0909 (LIVE555 Streaming Media v2016.05.20)
Transport: RTP/AVP;unicast;client_port=5006-5007

Received 255 new bytes of response data.
Received a complete SETUP response:
RTSP/1.0 200 OK
Server: AirCraft RTSP Server
Cseq: 4
Content-Length: 0
Transport: RTP/AVP/UDP;unicast;destination=10.168.17.56;client_port=5006-5007;server_port=51811-53418;ssrc=3fa4dfef;mode=play
Session: 1185d20035702ca
Cache-Control: no-cache

20170228 165833 channel[0] Created a data sink for the video/H264 subsession
Sending request: PLAY 172.16.3.14:8008/ RTSP/1.0
CSeq: 5
User-Agent: EasyRTSPClient v1.0.16.0909 (LIVE555 Streaming Media v2016.05.20)
Session: 1185d20035702ca
Scale: 0.000000
Range: npt=0.000-

Received 158 new bytes of response data.
Received a complete PLAY response:
RTSP/1.0 200 OK
Server: AirCraft RTSP Server
Cseq: 5
Content-Length: 0
RTP-Info: url=rtsp://172.16.3.14:8008/trackID=1;seq=0
Session: 1185d20035702ca

20170228 165833 channel[0] Started playing session
EasyStreamPusher_StartStream serverAddr[127.0.0.1] port[6554] videoCodec[28] audioCodec[0] samplerate[0] serverURL[rtsp://127.0.0.1:6554/easypusher_rtsp.sdp]
init sock: 0
Connecting...
IP address: 127.0.0.1
Connecting [127.0.0.1:6554]
Connected
Connect success
SEND[526]
ANNOUNCE rtsp://127.0.0.1:6554/easypusher_rtsp.sdp RTSP/1.0
CSeq: 1
User-Agent: EasyPusher v1.2.16.1105
Content-Type: application/sdp
Content-Length: 365

v=0
o=- 2205756022 2205756022 IN IP4 127.0.0.1
s=EasyDarwin
i=EasyDarwin
c=IN IP4 127.0.0.1
t=0 0
a=x-qt-text-nam:EasyDarwin
a=x-qt-text-inf:EasyDarwin
a=x-qt-text-cmt:source application::EasyDarwin
a=x-qt-text-aut:
a=x-qt-text-cpy:
m=video 0 RTP/AVP 96
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;sprop-parameter-sets=
a=control:trackID=1

RECV[127]
RTSP/1.0 200 OK
Server: EasyDarwin/7.0.5 (Build/16.0518; Platform/Win32; Release/EasyDarwin; State/Development; )
Cseq: 1

SEND[176]
SETUP rtsp://127.0.0.1:6554/easypusher_rtsp.sdp/trackID=1 RTSP/1.0
CSeq: 2
User-Agent: EasyPusher v1.2.16.1105
Transport: RTP/AVP/TCP;unicast;mode=record;interleaved=0-1

RECV[315]
RTSP/1.0 200 OK
Server: EasyDarwin/7.0.5 (Build/16.0518; Platform/Win32; Release/EasyDarwin; State/Development; )
Cseq: 2
Cache-Control: no-cache
Session: 126409477471398
Date: Tue, 28 Feb 2017 08:58:40 GMT
Expires: Tue, 28 Feb 2017 08:58:40 GMT
Transport: RTP/AVP/TCP;unicast;mode=record;interleaved=0-1

SEND[150]
PLAY rtsp://127.0.0.1:6554/easypusher_rtsp.sdp RTSP/1.0
CSeq: 4
User-Agent: EasyPusher v1.2.16.1105
Session: 126409477471398
Range: npt=0.000-

RECV[220]
RTSP/1.0 200 OK
Server: EasyDarwin/7.0.5 (Build/16.0518; Platform/Win32; Release/EasyDarwin; State/Development; )
Cseq: 4
Session: 126409477471398
RTP-Info: url=rtsp://127.0.0.1:6554/easypusher_rtsp.sdp/trackID=1

RTSP interaction is complete. Prepare to send RTP...
*** live streaming url:rtsp://127.0.0.1:6554/easypusher_rtsp.sdp ***
Pushing to rtsp://127.0.0.1:6554/easypusher_rtsp.sdp ...Send data. Ret: 0
Pushing to rtsp://127.0.0.1:6554/easypusher_rtsp.sdp ...`

@im11926
Copy link

im11926 commented Apr 28, 2019

遇到同样的问题,如何解决呢?我使用rtsp_pusher的SDK,使用TCP将视频流推送至EasyDarwin服务器,播放器能正常观看;但换为UDP后,显示的log和你的相同(推送成功),但是播放器无法播放,不知是哪的问题? 

代码关键部分截图
image

log截图
image

@zktc5418
Copy link

zktc5418 commented Dec 1, 2021

同问 rtsp使用udp 流拉不下来??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants