Watching Torrent TV in the LiveTV XBMC interface, under Linux

  • Tutorial
Result Video:


All the time I wanted to conveniently watch TV (yes, I watch TV) immediately in xbmc, in a beautiful interface with a schedule and other goodies. My provider does not provide IPTV, I put the “plate” somehow dumbly, they just made the repair, here again the cable is unclear how to start the apartment. The quality of the video stream from an external usb tv tuner for the old netbook, acting as a media center, leaves much to be desired, and it catches one and a half channels. In general, from all sides a bummer, I thought for a long time, until I found out about torrent-tv.

Actually, in the article on how to watch it in the native xbmc interface for TV.


  1. We put mono 3.4+, vlc, acestream-engine, xbmc 13+;
  2. Download P2pProxy ( );
  3. We start acestream 3 (acestream-engine --client-console);
  4. We start P2pProxy (mono /path/P2pProxy_console.exe -u -p password);
  5. We put the plugin to Kodi (xbmc) ( );
  6. ...
  7. Profit!

Especially for those who do not want to go deeper, I wrote an installer script for all this stuff for ubuntu 64b.

Just execute in terminal:
cd /tmp && wget && chmod +x && sh

And follow the installation, periodically confirming actions.
After successful execution of the script, you will need to install the p2pproxy add-on in kodi from the zip archive ~ / XbmcTv / addons /, turn on the TV in the settings, enable the P2pproxy and IPTVSimple add-on which specify the file ~ / XbmcTv / radio.m3u.

Now more

We will need :
  • Kodi is a former xbmc.
  • Account at
  • AceStream 3 (former Torrent Stream) - it was already mentioned on the Haber , a program for streaming viewing torrents, i.e. for example, a movie from a rutracker can be started immediately (after a little buffering) to watch without waiting until it is fully downloaded.
  • VLC is an open source media platform for decoding received video.
  • Mono is a cross-platform .NET framework needed to run P2pProxy.
  • P2pProxy is a server that converts acestream stream to iptv format.

As a result, we get the following scheme: Kodi uses the PVR plug-in to contact the P2pProxy server, which uses acestream to take p2p video stream from torrent-tv and send it to us as IPTV in converted form (vlc).

I will describe the installation using the example of ubuntu 14 64b, I think users of other distributions will be able to fine-tune for themselves, everything is made even easier in arch, because All necessary packages are in AUR.


First, update the system:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
#так же нам пригодятся
sudo apt-get install wget unzip 

Installing Kodi
At the time of writing, Kodi 14 Helix is ​​not available in the official ubuntu 14.04 repositories, so we install from the xbmc-team repository:

sudo add-apt-repository ppa:team-xbmc/ppa
sudo apt-get update
sudo apt-get install kodi kodi-pvr-iptvsimple kodi-audioencoder-*

Installing the torrent tv add-on
It is installed from the seppius xbmc repository to test the acestream and xbmc connection.
Download the archive to install the xbmc repository.
Register on .
Go to xbmc System-> Settings-> Add-ons-> Install from ZIP, select the downloaded archive.
After a successful installation, turn on Torrent-TV XBMC in the video addition section, specify your username and password in the settings.

Install acestream
echo 'deb trusty main' | sudo tee /etc/apt/sources.list.d/acestream.list
sudo wget -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install acestream-engine
acestreamengine --version

We start in another terminal and leave it to work:
acestreamengine --client-console

Go to xbmc Video-> Add-ons-> Torrent TV and turn on some channel, wait.
We wait.
We are waiting for the “picture” and really hope that it will appear. Try different channels.

Now the main thing is to make sure that acestream works correctly, if this does not happen, we think that we did wrong in the previous step.

Installing mono
The longest stage (it takes a long time).
tar -xvf mono-3.6.0.tar.bz2
cd mono-3.6.0/
./configure --prefix=/usr/local
sudo make install
#можем удалить исходники(а то много весят)
cd ../
rm -rf mono-3.6.0/

Installing vlc.
Here everything is just the version we need is in the official repositories:
sudo apt-get install vlc

Install and run P2pProxy
You can download the program from here .
I put it in / home / user / XbmcTv / p2pproxy /.
We start the server with the command mono /directory/P2pProxy_console.exe -u email_account_to_torrent-tv -p password:

mono /home/user/XbmcTv/p2pproxy/P2pProxy_console.exe -u -p t0rshm0rs1tb0r

It is enough to specify the login and password once, they will be saved in ~ / .config / P2pProxy / settings.xml and then you can raise the server without parameters.

We go to the address and see that the server is working.
Now in the free version we don’t have the functionality we need , as long as we activate the demo mode .
After that, links to the xbmc.pvr module should appear in the list .

We build the plugin for xbmc
Or download the assembled under ubuntu64b from here

We put git, the packages necessary for assembly and copy the repository
sudo apt-get install git build-essential libtool autotools-dev autoconf automake
git clone
# переходим в каталог с исходниками
cd xbmc-addon-p2pproxy
make dist-zip

If there were no errors, the plug-in ready for installation is in the current directory in the zip archive.

Go to xbmc System-> Settings-> Add-ons-> Install from ZIP.

We write in startup
There is one point - p2pproxy needs to be launched from the user, not from the root, well, and acestream just in case.
In /etc/rc.local, add the following lines before “exit”.
su -s /bin/sh - user -c "mono /home/user/XbmcTv/p2pproxy/P2pProxy_console.exe -u -p my_password" 
sudo -u user --set-home acestreamengine --client-console


Well, the schedule is loading, - in the plugins directory of the p2pproxy program, delete the files cache_36.xml, epg_36.xml, - this is the cache, most likely it is “broken” and restart p2pproxy.
Few channels , - you need vip status on torrent-tv
How to change the port or dlna server name , in ~ / .config / P2pProxy / settings.xml

I will supplement as new ones appear.

Also popular now: