![]() The duration parameter actually represents the size of the data file we want to emulate. thumb tramsmall.jpgĪdditional details are available in our tutorial section. Python Tribler/Tools/createlivestream.py -name stream.mpegts So, we have to transport the stream to our source server, and feed it to the SwarmPlayer: Unless you are filming your server room, the camera is likely not attached to the same computer that will offer the stream to the users. # example usage to stream to file - remove for production Common Linux utilies can be used:įfmpeg -f dv -i -f mpegts -vcodec mpeg4 -s $RESOLUTION -b $BITRATE -bt $BITRATE -an -" ![]() The raw video requires too much bandwidth, so it needs to be transcoded as well. We need a video source, such as a DV camera, webcam, or TV tuner. Once the torrent has been created, a seed and a tracker are started.įor live video streaming, more is needed. Other BitTorrent clients will ignore this field. ![]() The duration of the movie is included to allow clients to determine whether they have the download speed required to watch the video. Python createtorrent.py -name weather.avi -duration 4:15 -thumb weather.jpg To set up a VoD server, first create a torrent out of your movie: As a result, it is impossible to guarantee that the SwarmPlayer will work as expected on all configurations and on any movie format. That's why our demo streams are encoded at around 0.5 - 1.0 Mbit/s.ĭisclaimer: Another catch is that SwarmPlayer is complex software, since it combines several large open source projects (VLC, ffmpeg, wxPython, and more) and aims to support Windows, Mac and Linux. To watch it while downloading, you need a sustained download rate of at least 640 Kbyte/s. For example, a two hour movie fitted on a DVD is encoded at 5 Mbit/s. We are spoiled with HD-quality movies, but to stream them, you need to have a pretty decent download speed. ![]() There is a lot more to it, which I'll describe below by first covering the technical setup, and then an outline of the required modifications to support video streaming in BitTorrent. In both cases, a video player needs to be tied to the BitTorrent client, and specialised download and upload policies are needed to achieve high performance. So the BitTorrent protocol had to be broken, but by keeping the changes minimal, other clients can be easily adapted as well. The BitTorrent protocol requires the file data to be fixed in size and known beforehand, neither of which holds for live streaming. The largest 1st generation streaming system (non-Bittorrent), P2PLive also uses numerous central servers. However, Vuze requires a server park to serve the videos at a sufficient speed, and we aim to avoid that. In fact, we're not the only one supporting video-on-demand in BitTorrent, Vuze does the same. It turns out that the modifications required to support video-on-demand are minor and remain backward compatible. How to extend BitTorrent such that one client can be used to watch both video-on-demand streams (existing movies) and live video streams (generated real-time)? However, most clients only support downloading, not watching, a video stream using BitTorrent. The BitTorrent protocol is a popular method for downloading large files, and many tweaks exist to enhance its performance.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |