RTMP和HTTP的八項參數比較

來源:互聯網
上載者:User

 

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



[1]http://www.red5.org/

[2]http://www.adobe.com

[3]http://www.wowza.com

[4]http://www.apache.org/

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.