TVHeadend


Revision [15866]

This is an old revision of TVHeadend made by daveraver on 2017-06-06 08:50:50.

 

IMPORT ENIGMA2 CHANNELS, THROUGH OPENWEBIF, TO TVHEADEND


First of all, give thanks to Luis Pascual, Luispa, for the .py file that let us to convert the .m3u we get from openwebif to hts format, tvheadend. This project, https://github.com/LuisPalacios/iptv2hts , let you to manage EPG and picons too.

Tested on TVHeadend 4.3 (early versions dont map all services at once on Raspberry)

RASPBERRY PI

We get it in three simple steps:

Copy iptv2hts.py and .m3u of services or stream we get from openwebif to the tvheadend instalation folder, it would be /etc/tvheadend in ubuntu distro, I think so.

Now, we have to stop tvheadend:

service tvheadend stop

Then, we have to run this line on console, inside the folder /etc/tvheadend and logged in as hts user (sudo chmod 777 iptv2hts.py):

/home/hts/.hts/tvheadend/./iptv2hts.py -r -n 0 -i eth0 -c utf-8 services.m3u

We are deleting the channel number before channel name (-r) to generate correlative channel number (-n 0) the interface we are working with (-i eth0, for example) we indicate the m3u code (-c utf-8), and finally the *.m3u file we want to convert.

The .py file takes almost all parameters so we can do simply:

/home/hts/.hts/tvheadend/./iptv2hts.py services.m3u

This will create the channels on tvheadend, the input name comes inside the .py file, you can change it before run the .py, by default the input network name will be IPTV Movistar.

Now, lets to start tvheadend

service tvheadend start

Now, when we go to configuration>dvb inputs>networks we will find the network we define inside the .py file or the default network name IPTV Movistar.

It's the moment to force scan of the network, taking in consideration one thing:

If we import a complete service with several channels, we have to edit the input network and we place 1 on maximun # input stream field.

If we import a single channel, it doesn't care.

Now select the network and click to force scan. You will see how the total muxes goes to scan queue, and decrease up to 0. When all muxes are scaned with their services, we can go to services, and map all services.

Finally we will have all channels created on tvheadend.

UBUNTU/DEBIAN

It's easier with these linux OS. We have to:

- Create an 'Automatic IPTV' input.

- Place 1 on max # input stream.

- Put in the first URL field the file path of .m3u this way:
And then we click on create, and if input doesn't start to scan muxes, click on force scan.

At the end of the scan all muxes, we make DVB input>services>map all services

And that's all. I hope you enjoy it.



There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki