📜 ⬆️ ⬇️

View Torrent-TV in the LiveTV XBMC interface, under Linux

Result Video:


Preamble


All the time I wanted to comfortably watch TV (yes, I watch TV) right away in xbmc, in a beautiful interface with a schedule and so on. Buns. My provider does not provide IPTV, it is somehow dumb to install a “plate”, only repairs have been made, then again the cable is incomprehensible how to start the apartment. The quality of the video stream from the external usb TV tuner for the old netbook, which acts as a media center, leaves much to be desired, and catches a channel and a half. In general, a bummer from all sides, I thought for a long time, until I found out about torrent-tv.

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

Short


  1. We put mono 3.4+, vlc, acestream-engine, xbmc 13+;
  2. Downloading P2pProxy ( http://mytalks.ru/index.php?topic=5196 );
  3. Run acestream 3 (acestream-engine - client-console);
  4. Run 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 deep, I wrote a script installer of all this stuff for ubuntu 64b.

Just run in the terminal:
cd /tmp && wget http://alexstep.com/XBMC/p2pproxy/i2.sh && chmod +x i2.sh && sh i2.sh 

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

Now more


We will need :


As a result, we get the following scheme: Kodi using the PVR plug-in accesses the P2pProxy server, which with the help of acestream takes a p2p video stream with a torrent-tv and in a converted form (vlc) gives us to watch as IPTV.

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

Training

Let's update the system first:

 sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade #    sudo apt-get install wget unzip 


Install Kodi
At the time of writing, the Kodi 14 Helix is ​​not available in the official repositories of ubuntu 14.04, 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-* 


Install add-on torrent tv
It is installed from the xbmc repository of seppius to test the performance of the acestream and xbmc bundles.
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 archive repository.seppius.zip.
After a successful installation, turn on Torrent-TV XBMC in the video completion 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 

Run in another terminal and leave 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 they did not do it at the previous stage.

Install mono
The longest stage (long going).
 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/ 


Install vlc
Everything here is just the version we need in the official repositories:
 sudo apt-get install vlc 


Installing and running P2pProxy
You can download the program from here .
I put it in / home / user / XbmcTv / p2pproxy /.
Start the server with the 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 

Login and password is enough to specify 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 of the functionality we do not have , as long as we activate the demo mode http://127.0.0.1:8081/demo .
After that in the list http://127.0.0.1:8081/help there should be links to the xbmc.pvr module.

We assemble the plugin for xbmc
Either download compiled under ubuntu64b from here alexstep.com/XBMC/addons/pvr.p2pproxy.zip

We install git, packages necessary for the assembly and we copy a 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 lies in the current directory in the zip archive.

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

Register to autoload
Then one moment, - p2pproxy needs to be run from the user, not from the root, well, acestream just in case.
Add the following lines to /etc/rc.local, 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 loaded , - in the plugins directory of the p2pproxy program, delete the files cache_36.xml, epg_36.xml, epg_36.zip is the cache, most likely it is “broken” and restart p2pproxy.
Few channels , - need the status of vip on torrent-tv
How to change the port or dlna server name - in ~ / .config / P2pProxy / settings.xml

I will supplement as new ones appear.

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


All Articles