Watching Torrent TV in the LiveTV XBMC interface, under Linux

  • Tutorial
Result Video:


Preamble


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.

Short


  1. We put mono 3.4+, vlc, acestream-engine, xbmc 13+;
  2. Download P2pProxy ( http://mytalks.ru/index.php?topic=5196 );
  3. We start acestream 3 (acestream-engine --client-console);
  4. We start P2pProxy (mono /path/P2pProxy_console.exe -u username@gmail.com -p password);
  5. We put the plugin to Kodi (xbmc) ( https://github.com/const586/xbmc-addon-p2pproxy );
  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 http://alexstep.com/XBMC/p2pproxy/i2.sh && chmod +x i2.sh && sh i2.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 / pvr.p2pproxy.zip, 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 torrent-tv.ru
  • 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.

Training

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 torrent-tv.ru .
Go to xbmc System-> Settings-> Add-ons-> Install from ZIP, select the downloaded repository.seppius.zip 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 http://repo.acestream.org/ubuntu/ trusty main' | sudo tee /etc/apt/sources.list.d/acestream.list
sudo wget -O - http://repo.acestream.org/keys/acestream.public.key | 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).
wget http://download.mono-project.com/sources/mono/mono-3.6.0.tar.bz2
tar -xvf mono-3.6.0.tar.bz2
cd mono-3.6.0/
./configure --prefix=/usr/local
make
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 mel11@mail.ru -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 http://127.0.0.1:8081/help 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 http://127.0.0.1:8081/demo .
After that, links to the xbmc.pvr module should appear in the list http://127.0.0.1:8081/help .

We build the plugin for xbmc
Or download the assembled under ubuntu64b from here alexstep.com/XBMC/addons/pvr.p2pproxy.zip

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 https://github.com/const586/xbmc-addon-p2pproxy
# переходим в каталог с исходниками
cd xbmc-addon-p2pproxy
sh autogen.sh
./configure
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 mail@gmail.com -p my_password" 
sudo -u user --set-home acestreamengine --client-console


FAQ

Well, the schedule is loading, - in the plugins directory of the p2pproxy program, delete the files cache_36.xml, epg_36.xml, epg_36.zip - 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: