📜 ⬆️ ⬇️

As we launched a TV channel on the Internet. Equipment

This is the third article ( first and second ) of the planned cycle “How we launched the channel”. Today I will talk about the technical support of the DOG CHANNEL TV channel and how it all works ... The article contains a lot of specialized vocabulary for broadcasting. If it is clear from the comments that something is not clear, I will clarify and specify specific points as needed.
So...

PART ONE. AT FIRST, THE INSTALLATION WAS ...

Strange as it may sound, but personally I consider content to be the main asset of such projects. Channel specialized. Talk about mass purchases of content is not necessary. itTherefore, this particular channel was born from hundreds of days spent in the installation, when the next program “Just a Dog” was born.

Now about the technical requirements, on which bitrate to broadcast?
')
On the one hand, you can easily give an SD format picture (this is 720x576 pixels), on the other hand, a larger frame size is a larger bitrate, in order to maintain an acceptable quality. By trial, error and heated discussions, we stopped at the size of 500x374 pixels, and the bitrate is about 750-800 kbit / s. On the one hand, it provides an acceptable quality, on the other - anyone who has megabit Internet can watch our channel consistently and comfortably.

PART TWO. THERE WILL NOT BE TURN OUT FROM A SONG, OR ANY FLY WITH ...

It should be said that the site of the program at the time of the creation of the channel already existed. It is written on the basis of CMS JOOMLA. And as soon as the broadcast parameters were formulated, the question arose of creating a content delivery system for the end user.

It is clear that this was most easily implemented using Flash. Test broadcasts were going to literally "on the knee." The scheme was as follows:
The signal source (either just files, or a DV signal from a tape recorder in general) clung to a virtual camera, which was then sent to a free service, such as ustream.tv .

All right ... There is a channel!

Yeah, right now, sir ... those who believed - imagine yourself, sitting for days in front of the computer and changing the splash screen-programs forever ... And all this has to be put together, calculated by time, and praying that God forbid you do not turn off the Internet. In general, as a scheme - yes, but as a base - I had to build everything from scratch and myself.

So, what would you like to receive?
- the content lies on a server somewhere in a data center with good thick and reliable channels.
- there is a media server (servers) that distribute content to visitors.
- the scheme should be stable and easily expandable.
- for the future. Create playlists.
- for the future. Automation of accounting, verification and content conversion.
- minimization of costs.

It is the stage of searching, trial and error. From what was “in sight” - this is Adobe Flash Media Server, Wowza Media Server, Red5 Media Server.
Adobe:
pros:
- reliable solution
- technical support
- actually, they invented the RTMP protocol
minuses:
- asking for money
- put on WINDOWS
- source is closed

Wowza:
- convenient and reliable enough
- technical support
- can be put on Linux
- you can stream for iPhone & Co
minuses:
- asking for money
- under heavy loads "floats"

Red5
- is free
minuses:
- “floats” already at medium loads

Something is my personal opinion, something is read on the Internet. Personally, I was most inclined towards Wowza.

But, as always, the case intervened in the case. Absolutely by chance, I stumbled upon the project of Muscovite Maxim Lapshin of Erlyvideo media server . The language of ERLANG, in which it was written - for me - is pure exotic. But!!! Basic server functionality is free. Reliability is high. Reviews - in general, different, but mostly positive. And I decided to take a chance. (What is now not a bit sorry)

So Erlyvideo :
- free (or rather, conditionally free. I’ll tell you more about this)
- going from source (which means, with a certain perseverance put, anywhere)
- now it is gaining momentum (on the one hand, the community is not as big as we would like, on the other hand, it’s enough just to go directly to the creator and get a tip on the issue of interest to you)
minuses:
- additional functionality - for money
- hard to find a good erlang-e programmer
- as a result of free of charge, a possible change in functionality in the new version without warning.

PART THREE. HEROIC ...

We have rented a dedicated server. It has UBUNTU and ERLYVIDEO installed.

On the erlyvideo forum, you can get an answer to the question asked, almost always, on the same day. For what the author, as they say, respect and respect. But! As a rule, the answer contains the direction where to move, and the fundamental possibility or impossibility to achieve the result. Once again, this refers to the additional functionality! As for configuring and fixing bugs - here everything is absolutely adequate. The remaining thirty-three fun - through tech support for licensed customers.

The position is absolutely clear to me, although it’s probably a hot iron melted into our mentality, I would like to be on the list of exceptions. ))) (Well, sorry. I can't do anything about it)

Once the media server has earned, it is time to tweak the functionality for yourself. What can I say ... Erlang, it turns out, can be learned fairly quickly. The server is really surprisingly stable. For me, and now it remains something magical that you can update the version of the server without interrupting the broadcast !!! And this is the functionality of the language itself. Awesome scalability and flexibility. D-ah-ah ... if you are a fan and are ready to slack off time and energy to deal with all this.
We had no money, so we were ready. First, a playlist broadcast system was needed. Then I wanted to dynamically generate the program. Then restart the playlist without breaking the broadcast. On the way - user authorization and chat for users.

The server is really very stable. Behaves predictably and very adequately, if so you can talk about the server.

Almost from scratch had to rewrite the player itself. Both future authorization and chat require very specific functionality. If someone needs a decent lightweight and free player, I highly recommend the tarantinov player . It was he who was taken as the basis for creating his player.

A serious test in all aspects, including technical, awaits us in early October, during the online broadcast of the German Shepherd Dog Training World Championship in Kiev. We will be glad to any help or cooperation in holding this event. Especially with regard to server load capacity, load balancing, etc. But it is in a personal.

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


All Articles