📜 ⬆️ ⬇️

P2P Broadcasting (organizing your own live broadcasts using Torrent Stream)

Not so long ago, we expanded the functionality of our product with the Live Stream feature, which now makes it possible not only to watch quality video online without the most convenient way, without having to download it through torrents, but also allows you to watch and / or create your own live broadcasts.

How this new feature works, many have already been able to evaluate on our test broadcasts, and now we want to invite everyone to try to organize their own broadcasts.

For all who have the desire and the necessary technical skills and capabilities, we have prepared a basic instruction, which is laid out under the cut.
')


For windows


You must have Torrent Stream software version 1.0.6.7 and higher.

Use the "Broadcasting" option in the Torrent Stream client application menu to create your own live broadcast channel.

Parameter Value:

Name
The name of the broadcast. It is advisable to use Latin letters and numbers, without special characters and spaces.
Example: mychannel

Source
Source of broadcast. This should be a link to an HTTP stream with MPEG-TS encapsulation.
Example: 127.0.0.1 : 8080

Bitrate
The average bit rate of a Kbps stream.
(100 Kb / s = 800 Kbps)

Piece length
The size of the piece in kilobytes. The default value is Auto - the size of the piece will be automatically selected depending on the specified bit rate.

Trackers
List of additional trackers that will support distribution.
Trackers should be listed one per line. If this field is empty, then only the local tracker will be used, which automatically starts when the broadcast starts.

Port
The port on which the broadcast source will accept incoming connections. The default port is 7764.

Host
The external IP address of the computer from which the translation starts.
This field must be filled in if the broadcast is launched from a computer that is connected to the Internet via a router. In order to find out your external IP-address, you can use one of the specialized services, for example, showip.net

For Ubuntu and Debian



Link to instructions

Important! (Additional info):

Now the broadcast / distribution from the client works in two cases:
1) the client has an honest external ip-address and it is accessible from the world by
tcp-port 8621 (the port can be changed in the settings: Options -> Advanced
options -> Port)
2) the client enters the world through a router on which the UPnP function is activated

Clients in the local network at the moment do not see each other.
If the exit to the world goes through several routers, then the distribution from the client
also will not occur.

PS Our test broadcast is on this page torrentstream.info/#/test/live , if someone wants to run it in the desktop player, then copy this Content ID: 605a6130dcbd3ab6a892e199c2035c30e1f56039 and beat it in the appropriate field in TS Player (for this, run TS Player and press Ctrl + t).

PPS As an extra. announcers can use any torrent trackers. Actually, the announcement mechanism is absolutely identical, as when using the usual torrent files. If you already have your own torrent tracker, you can use it or even add a Live section on it so that your users can create releases with their live broadcasts.

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


All Articles