RTMP和HTTP的八项参数比较

 

RTMP

HTTP

Port Number

1935

80

Video Delivery

RTMP server streams video bytes from any point of time according to client’s request. Good for long content video

HTTP is designed to progressive download video

Cache

Video is stored at flash player’s memory

Video is stored at web browser’s buffer before playback

Video Codec Suggestions

·         Better use Constant Bit-rate (CBR) encoding;

·         Variable Bit-rate (VBR) encoded video might contain data spikes which can abruptly empty the flash player’s temporal cache and result in annoying pause-play-pause experience;

Can safely use VBR encoding since video are progressively downloaded. Extreme data spikes might not impact during playback

Firewall

Firewalls might disable1935 port.

RTMP takes two polices to deal with firewall:

·         If play video over port 1935 fails, RTMP over port 80 is used;

·         If port 80 still fails, RTMP packets are wrapped in HTTP packets;

In default, almost all the firewalls allow HTTP connections over port 80

Video Access Control

Most users can only watch video content. (Of course the hackers can steal any video stream.) RTMP is useful for companies distributing movies

Users can fish the flash content out of the web browser cache

Hosting

Limited servers support RTMP services, e.g. RED5[1], FMS[2], Wowza[3], etc

Any HTTP web server such as the widely used Apache[4]

Cos

t

Data Transfer Cost

Cost accounts only the streamed video

Cost accounts since flash video starts to download to browser cache and continues to download even users are not watching

Implementation Cost

expensive

cheap

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值