Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does Youtube implement live streaming

Monitoring your network while watching a Youtube live streaming (http://youtube.com/live/), you can see that they are downloading a file to your cache, and this file is actually the live stream.

Bitgravity use the same way to deliver their live stream since years (Check Twit.tv for example).

Does anyone know what is the server side used for this ? and how can someone achieve this instead of using Adobe FMS, Wowza or Red5 ?

like image 518
Jeoren Avatar asked Apr 08 '11 18:04

Jeoren


People also ask

How does YouTube do live streaming?

Log in to your YouTube account and click the “Create a video or post” button in the top-right corner of the screen. Select “Go Live” from the drop-down menu. Choose to go live right now or at a later date. Select “Built-in webcam” as the type of stream.

Is YouTube a live streaming platform?

YouTube Live is a live streaming service that offers an easy way to reach your audience in real-time. Whether you're streaming a video game, hosting a live Q&A, or teaching a class, YouTube Live tools will help you manage your stream and interact with viewers in real-time.

Does YouTube automatically post live streams?

If your live stream is less than 12 hours, YouTube can automatically archive it for you. This option applies to all types of live streams - including: encoder, webcam, and mobile. YouTube will also automatically archive streams of 1440p and 2160p (4K) video resolution.


2 Answers

These guys have put together an open source video streaming server, so you can look at the source code and see how they did it.

They wrote it in Java.

The current version is a working prototype, which showcases the main ideas. The main design goal is low resource usage.

like image 109
Gilbert Le Blanc Avatar answered Sep 28 '22 00:09

Gilbert Le Blanc


there can be many ways to implement streaming, i dont think google will let you know how they do that, but it can be done even by simple http, just a simple stream that sends the video data without the "range" header so its just go on and on

like image 39
Dima Avatar answered Sep 28 '22 00:09

Dima