ffmpeg推送rtsp交互流程--tcp

ffmpeg将流用tcp rtsp方式推送到easydarwin

ffmpeg.exe  -i e:\media\mp4\12905527_20151009001316_r_1236038636_20151010163836_0_1236100237.mp4 -vcodec copy -acodec copy -rtsp_transport tcp -f rtsp rtsp://10.10.27.222:554/push.sdp


OPTIONS rtsp://10.10.27.222:554/push.sdp RTSP/1.0

CSeq: 1

User-Agent: Lavf57.29.100


RTSP/1.0 200 OK

Server: EasyDarwin/7.2 (Build/16.1231; Platform/Linux; Release/EasyDarwin; State/Development; )

Cseq: 1

Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, ANNOUNCE, RECORD


ANNOUNCE rtsp://10.10.27.222:554/push.sdp RTSP/1.0

Content-Type: application/sdp

CSeq: 2

User-Agent: Lavf57.29.100

Content-Length: 474


v=0

o=- 0 0 IN IP4 127.0.0.1

s=No Name

c=IN IP4 10.10.27.222

t=0 0

a=tool:libavformat 57.29.100

m=video 0 RTP/AVP 96

b=AS:1500

a=rtpmap:96 MP4V-ES/90000

a=fmtp:96 profile-level-id=1; config=000001B0F5000001B5A913000001000000012000C48D8800CD1684481463

a=control:streamid=0

m=audio 0 RTP/AVP 97

b=AS:88

a=rtpmap:97 MPEG4-GENERIC/44100/2

a=fmtp:97 profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3; config=1210

a=control:streamid=1

RTSP/1.0 200 OK

Server: EasyDarwin/7.2 (Build/16.1231; Platform/Linux; Release/EasyDarwin; State/Development; )

Cseq: 2


SETUP rtsp://10.10.27.222:554/push.sdp/streamid=0 RTSP/1.0

Transport: RTP/AVP/TCP;unicast;interleaved=0-1;mode=record

CSeq: 3

User-Agent: Lavf57.29.100


RTSP/1.0 200 OK

Server: EasyDarwin/7.2 (Build/16.1231; Platform/Linux; Release/EasyDarwin; State/Development; )

Cseq: 3

Cache-Control: no-cache

Session: 2433173238369797527

Date: Tue, 21 Feb 2017 09:18:19 GMT

Expires: Tue, 21 Feb 2017 09:18:19 GMT

Transport: RTP/AVP/TCP;unicast;mode=record;interleaved=0-1


SETUP rtsp://10.10.27.222:554/push.sdp/streamid=1 RTSP/1.0

Transport: RTP/AVP/TCP;unicast;interleaved=2-3;mode=record

CSeq: 4

User-Agent: Lavf57.29.100

Session: 2433173238369797527


RTSP/1.0 200 OK

Server: EasyDarwin/7.2 (Build/16.1231; Platform/Linux; Release/EasyDarwin; State/Development; )

Cseq: 4

Session: 2433173238369797527

Cache-Control: no-cache

Date: Tue, 21 Feb 2017 09:18:19 GMT

Expires: Tue, 21 Feb 2017 09:18:19 GMT

Transport: RTP/AVP/TCP;unicast;mode=record;interleaved=2-3


RECORD rtsp://10.10.27.222:554/push.sdp RTSP/1.0

Range: npt=0.000-

CSeq: 5

User-Agent: Lavf57.29.100

Session: 2433173238369797527


RTSP/1.0 200 OK

Server: EasyDarwin/7.2 (Build/16.1231; Platform/Linux; Release/EasyDarwin; State/Development; )

Cseq: 5

Session: 2433173238369797527

RTP-Info: url=rtsp://10.10.27.222:554/push.sdp/push.sdp,url=rtsp://10.10.27.222:554/push.sdp/push.sdp



接下来就是interleave+视音频数据了


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值