Project

General

Profile

Enigma2 channel converter

Added by Anonymous almost 11 years ago

Just to let everybody know, I've created a channel converter to convert Enigma2 lamedb channellists to the Tvheadend format.
Since VPID,APID, TPID and CAID are not available in lamedb, I had to ommit these values.
If somebody likes to test and give feedback, linux shell script and sample output is located at:

https://bitbucket.org/picons/lamedb2tvh/src

If all works OK, next step, wich is pretty easy, is to auto-add channel logos link...

EDIT: This converts to the NEW config format


Replies (37)

RE: Enigma2 channel converter - Added by Anonymous almost 11 years ago

just added channel logo linking, see attachment

RE: Enigma2 channel converter - Added by kysiok x almost 11 years ago

Great job, editing channels list was always main issue for me of tvheadend. I try to use it, but I don’t know how I can put results from script (folder “input”). Can You write short manual?

EDIT: Ok, I didn't notice that this is the NEW config format.

RE: Enigma2 channel converter - Added by Anonymous almost 11 years ago

Indeed, no point in writing something for an "to be obsolete" config

RE: Enigma2 channel converter - Added by Antonw Wallner almost 11 years ago

Hi!

thanks much for your hard work. Tried your script today and it did a lot of things....

Output was not exactly what expected.
/channel contains only 1 file named "*".
/channeltags has 1 file with taginfo: "name": "All Channels", and 42 files with taginfo : "name": "TV" ORDER BY BOUQUET".
/input has endless info about muxes etc...

while coming from a openpli -> enigma2 environment are there any limitations or specials to be aware of?

Will try to give as much information as possible for troubleshooting and testing. add the complete log of the conversion run. hope it will be useful!

best regards
aW

convert.out.bz2 (1.72 MB) convert.out.bz2 lamedb2tvh conversion run bash -x

RE: Enigma2 channel converter - Added by Anonymous almost 11 years ago

Could you attach your channellist used to convert....

RE: Enigma2 channel converter - Added by Antonw Wallner almost 11 years ago

Here it comes. tared complete dir i used as source for conversion.
br
aW

RE: Enigma2 channel converter - Added by Anonymous almost 11 years ago

Script has been fixed, attached is the resulting output for your channellist.

RE: Enigma2 channel converter - Added by Antonw Wallner almost 11 years ago

wow! this was fast! respect... will replace output with existing config and test new settings..

thanks much!
aW

RE: Enigma2 channel converter - Added by Antonw Wallner almost 11 years ago

ok, stopped server, replaced config, started server. mapped channels. output attached.
some channel names missing. picons url missing. tags mixed somewhat. will try myself with latest script version from bitbucket and send feedback.

br
aW

RE: Enigma2 channel converter - Added by Anonymous almost 11 years ago

Indeed, something isn't going like it should with your channellist.

RE: Enigma2 channel converter - Added by Antonw Wallner almost 11 years ago

ok, some feedback before i have to go to work.... did some housecleaning within the bouquet list first. downed latest script version and startet... voila! looks very promising at the moment. channels are there, tags correct, picon-url in place. seems working now ~100%. have to check for channel renumbering but this will be a later task when back from shift.

thanks so far for your great script and the excellent support for it.

br
aW

RE: Enigma2 channel converter - Added by Anonymous almost 11 years ago

your channellist was indeed sloppy and the problem was that the serviceref in the bouquet files was in capital letters, and in lamedb it was not, but this is fixed now in the latest script.

RE: Enigma2 channel converter - Added by Anonymous almost 11 years ago

BTW, mapping channels with tvheadend should not be necessary, if the script and channellist is correct. Your "favourites" are mapped by the script.

RE: Enigma2 channel converter - Added by Antonw Wallner almost 11 years ago

Hi!

tried latest version from bitbucket today. tvheadend stops during startup with error/dump when using the fresh generated output.

find attached info.

br
aW

aw_lamedb2tvh.tar.gz (2.23 MB) aw_lamedb2tvh.tar.gz conversion info, debug.output tvheadend startup

RE: Enigma2 channel converter - Added by Anonymous almost 11 years ago

Should be fixed now

RE: Enigma2 channel converter - Added by Antonw Wallner almost 11 years ago

Looks great again. Well done!

RE: Enigma2 channel converter - Added by gilberto chiarentin almost 11 years ago

sorry I'd be interested to converter lamedb to tvh, how to install or how you perform, there is a wiki for this converter.

thanks
gil

RE: Enigma2 channel converter - Added by Sascha Schmidt over 10 years ago

Hm seems that there's still/again something wrong with it?

Converting worked (seems to)...

- Moving "channel" directory to hts folder worked
- Moving "channeltags" directory to hts folder worked
- Within "input" folder there's something different. The "networks" folder exists within "dvb" folder, not within linuxdvb.

After copying everything and starting TV-Headend I noticed that all channels have no name and no number.

How can I help to find what's went wrong?

Greets
Sascha

RE: Enigma2 channel converter - Added by Sascha Schmidt over 10 years ago

The importscript creates "network"-folders which do not match the ones already existing...

RE: Enigma2 channel converter - Added by hencha satellite over 10 years ago

Wow nice thread :D,
can anybody here make simple tutorial how to use it ? i confuse when i start it. i wanna try it too :D

RE: Enigma2 channel converter - Added by Anonymous over 10 years ago

Are you using the latest tvheadend version from GitHub or a version from before the config switch?

Sascha Schmidt wrote:

Hm seems that there's still/again something wrong with it?

Converting worked (seems to)...

- Moving "channel" directory to hts folder worked
- Moving "channeltags" directory to hts folder worked
- Within "input" folder there's something different. The "networks" folder exists within "dvb" folder, not within linuxdvb.

After copying everything and starting TV-Headend I noticed that all channels have no name and no number.

How can I help to find what's went wrong?

Greets
Sascha

RE: Enigma2 channel converter - Added by Sascha Schmidt over 10 years ago

I'm using the latest git checkout of tv-headend. And enigma2 channel stuff from a OE2.0 image...

RE: Enigma2 channel converter - Added by Sascha Schmidt over 10 years ago

I've written a "Enigma2 to TV-Channel channel/bouquet converter" in python.

https://github.com/realriot/e2ToTVH

The important thing is that existing bouquet entries are matched against an existing TV-Heading channellist. So, you should already have performed a channelscan.

RE: Enigma2 channel converter - Added by Michael Donet over 10 years ago

Hi Sascha, I've tried it but it doesn't work for me.
If I run it as ./e2ToTVH.py it returns 'command not found'.
If I run it as 'python e2ToTVH.py then I get this:

Writing TV-Headend bouquet configuration...
Writing TV-Headend service configuration...
Reading file: /home/tvh/lamedb
Parsing content from file: /home/tvh/lamedb
Reading TV bouquets...
Reading RADIO bouquets...
Reading TV-Headend service files...
Writing TV-Headend bouquet configuration...
Writing TV-Headend service configuration...

But it does create empty channel and channeltags directory with no files inside.
I use lamedb ver. 4 edited in Dreamset.

Appriciate your help.

RE: Enigma2 channel converter - Added by Sascha Schmidt over 10 years ago

As output directory, did you enter an already existing tv-headend directory?
Which version of TV-Headend are you using?

(1-25/37)