rtp over rtsp (TCP)

1. RTCP and rtp (udp)

by default, ffmpeg setup connection to server by rtsp with udp protocol.

for example

                              server_port                    transport_protocol                       client_port

rtsp (session):   554                                  tcp                                                   51703

rtcp (sr, rr):          6973 (sr=>client)          udp (<=>)                                       10379(rr=>server)

rtp (data):            6972                                udp(<=>)                                        10378


Therefore, as far as this case, there exists three connections between server and client.

The rtsp session is by tcp, and rtcp, rtp by udp.


ffmpeg sends receiver report in about one second interval. (44bytes)

vlc sends receiver report in about 5 seconds interval. (60 bytes)


some producter send sender report in about 5 seconds interval. (48bytes)


2. rtp over rtsp (tcp)


by default, ffmpeg setup rtp by rtsp with udp (both for rtcp and rtp),

if the network status is unstable, it will cause that ffmpeg send

pause, then setup, play to resetup connection to server by rtp

over rtsp (tcp).  As far as this case, all datas will convey by rtsp

connection, include rtcp(sender report, receiver report) and rtp (data).

Therefore, there is only one connection between server and client,

by tcp. and the server port is 554 by default.


vlc send receiver report in about 6 seconds interval. (60 bytes)

some producter send sender report in about 7~8 seconds interval. (48bytes)

ffmpeg don't send sender report in this case. 


as far as rtp over rtsp (TCP), generally, channel 0 for rtp(data),  channel 1 for rtcp(sr, rr)


3. dss

for dss, if vlc play with string rtsp://192.168.137.66:8000/test.mov

the dss will use udp transfer data (both rtp, rtcp), not packetized with rtp.

if vlc play with string rtsp://192.168.137.66/test.mov, the dss will 

work with rtp(rtcp) on udp.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值