📜 ⬆️ ⬇️

How to show video on the site?

Posting videos on the site is becoming the norm. The number of sites that host videos on their pages is growing every day. However, showing videos is not as easy as other types of content. Therefore, many webmasters follow the path of least resistance and place their video on video hosting sites, mainly on YouTube. However, posting videos on YouTube has significant drawbacks and limitations listed under the cat. There is also a brief instruction on how to place the video on the site, without resorting to the services of external video hosters.



Posting videos on YouTube has the following negative effects:
')
1. Loss of audience. Placing a video on YouTube, you lose the audience of the site: after visitors to your site watch your video on YouTube, they will be shown links to many other videos that have nothing to do with your site. Chances are good that the user clicks on one of these videos and leaves your site.

2. Lack of monetization. By placing a video on YouTube, you will not be able to show ads to your users or take money from them for watching videos.

3. Low quality. YouTube videos are stored at low resolution and bitrate, and therefore the quality of the video leaves much to be desired.

4. Loss of control. By placing videos on YouTube, you can’t affect their availability, and therefore at the most necessary moment, due to technical failures on YouTube servers, you can deprive your users of the ability to watch videos.

5. Another brand. On all your videos, visitors to your site will see the YouTube logo, not your own.

From all of the above, you can make a fairly clear conclusion: YouTube is suitable for placing amateur video on home pages. If your site is an important element of your business, it is better to stop posting videos on YouTube and learn how to post videos on your own servers. Moreover, it is not so difficult to do - below is a step-by-step list of actions for displaying Internet video. So, to start posting videos on your site, you need:

A. Decide on the format and codec for video (usually use the Adobe Flash Video format, because it costs 99.5% of computers and the H.264 codec, as it gives the best compression) Purchase a codec program that would transcode video in the required format.

B. Decide with which bitrate (and therefore quality) you will transmit video. It depends both on the content itself (for example, a football match requires a better quality than a talking head interview) and on the capabilities of the end users (for example, in Moscow the average Internet connection speed is 5 Mbit / s, and in regions - 500 kbps / s, so your bitrate should be “adjusted” according to the intended audience of the site. I would recommend a video stream speed of 1 Mbit / s for sites targeted at a Moscow audience and 256 Kbps for the whole Runet. If you want to show videos with a large bitrate - use at content delivery network servants (CDN, Content Delivery Network);

B. Predict how many users watch the video at the same time, and calculate server bandwidth accordingly. If you expect more than 10-20 simultaneous video views - get up to Dedicated / Co-Location (preferably in the city where most of your audience lives), or use CDN again;

D. Decide whether you need streaming video delivery (in this case, the video does not remain on the user's computer). If you need streaming - buy and install video streaming software (Adobe FMS, Wowza, Red5), or use CDN streaming servers. If streaming is not needed, use a regular HTTP server, but preferably, it is possible to transfer files from an arbitrary location so that users can rewind the video before it is fully downloaded. This functionality has, for example, the nginx HTTP server.

D. Write yourself or take a ready-made Flash-player (for example, the Uppod player) - an ActionScript program that will be downloaded to client computers and used to control the video display.

The reward for the work will be full control over your videos and the opportunity to be creative when choosing a model for their monetization :)

Source: https://habr.com/ru/post/70059/


All Articles