800Li streaming and traditional HTTP playback MP4 and FLV comparisons

Source: Internet
Author: User

with The popularity of WEB application development, the need to play media ( video, audio ) in the browser is becoming more and more common; many enterprises are trying to add multimedia content to the website, the two most common ways :

1. normal http file on demand, directly through the website front file upload upload file MP4 or FLV , save the path, the client through the open source Flash player or HTML5 The label goes to the playback server to return the video file for this path, which may be mp4 or FLV .

2. join the streaming media server to solve the problem of video uploading and video playback through streaming media Web site only resolves Web page display and site logic.

The following will mainly explain the difference between the two ways of implementation

What is streaming media

Streaming Media (streaming media) is a medium that plays on the network in a streaming way. Streaming media is called streaming media, it refers to the media to provide a commercial video, audio transmission server to the program as a network (TCP ip/udp IP) packets sent to the final viewing user, the user through the decompression device to extract the data, The program will appear as before the transmission, streaming media, is a side-by-side broadcast media, is a kind of multimedia. Ben is the "simultaneous" use of media providers to transmit media over the network, while users continuously receive and watch or listen to the media being transmitted. The "stream" of the "stream" media refers to the way the media is transmitted (the way it flows), not the media itself.

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/98/90/wKioL1k-PSjTOGeSAALLwgZidsY888.png-wh_500x0-wm_ 3-wmp_4-s_271920088.png "title=" image 1.png "alt=" Wkiol1k-psjtogesaallwgzidsy888.png-wh_50 "/>

Advantage:

1. < Span style= "font-family: ' The song Body '; > support http (TCP) rtmpf (UPD) pull stream ( file shard Span style= "FONT-FAMILY:CALIBRI;FONT-SIZE:14PX;" >)  

2. Support data encryption, anti-theft chain; custom video packet format.

3. download on-demand,play or seek to where to download to that data shard, saving the resources of the server and the client.

4. save bandwidth by sharing data between peers.

5. support live stream streaming.

Disadvantage:

1. There is a certain cost, professional streaming media company to achieve.

2. higher threshold, need to understand some of the basic knowledge of multimedia convenience, in order to better maintain a good streaming media system.

of traditional FLV and MP4 video uploads and playback ( website file on Demand )

The website provides the video upload function, submits the form submits the way MP4 or FLV files, the Web site to receive data, directly to the disk, the original file name or the newly generated file name, return to the site background, site administrator record file path, the site foreground or client request to watch is, the server directly back Playback URL, the client can be played with the HTML5 tag or Flash player, once it starts to play, Maximize the client and server-side maximum resources to download video data, no flow control; Once the concurrency is large, the network reaches the limit and the HDD IO reaches the limit.

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/98/90/wKioL1k-PTLj4cf9AACjVspDwA8274.png-wh_500x0-wm_ 3-wmp_4-s_184019285.png "title=" image 2.png "alt=" Wkiol1k-ptlj4cf9aacjvspdwa8274.png-wh_50 "/>

Advantage:

1. low threshold, ordinary Web developers can achieve video upload playback.

2. without any costs, web developers can develop.

Disadvantage:

1. the client consumes the maximum resources to download, the server runs out of resources to the data, consume both resources.

2. No data encryption and function, directly save as can download video.

3. in the case of large fluctuations in the network can not be played smoothly, such as cross-operator, transnational.

4. no peer, sharing data between clients, reduce server load.

5. live streaming is not supported.


800Li streaming and traditional HTTP playback MP4 and FLV comparisons

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.