Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.



29 posts

Geek
+1 received by user: 4


Topic # 60651 29-Apr-2010 16:53 One person supports this post Send private message

Hi all,

A while back I posted about getting a working MHEG EPG for mythtv.  Didn't find what I needed so I wrote one.  It's a single script that only requires bash, awk, sed, and rb-download.

https://sourceforge.net/projects/mheg2xmltv/

You need rb-download, http://redbutton.sourceforge.net/ and then the script.  It currently converts MHEG-5 DVB-T to XMLTV xml file.  Right now I get a 7 day listing using DVB-T MHEG-5 data.   Listings include: title, description, freeview rating, teletext, HD quality flags, and start/stop times.

Feedback welcome, so please email me comments/problems.

Cheers,
sV

View this topic in a long page with up to 500 replies per page Create new topic
 1 | 2
601 posts

Ultimate Geek
+1 received by user: 5

Trusted

  Reply # 324966 29-Apr-2010 21:02 Send private message

Wow, nice.  Thank you very much!






29 posts

Geek
+1 received by user: 4


  Reply # 325038 30-Apr-2010 00:01 Send private message

Added more code, now does automatic xmltv channel id mapping from crid://* to *.freeviewnz.tv. Few other minor additions.

960 posts

Ultimate Geek
+1 received by user: 17

Trusted

  Reply # 325332 30-Apr-2010 15:54 Send private message

This should make openmedia one happy man.




CPU: Intel 3770k| RAM: F3-2400C10D-16GTX G.Skill Trident X |MB:  Gigabyte Z77X-UD5H-WB | GFX: GV-N660OC-2GD gv-n660oc-2gd GeForce GTX 660 | Monitor: Qnix 27" 2560x1440

1567 posts

Uber Geek
+1 received by user: 45

Trusted

  Reply # 325403 30-Apr-2010 18:55 Send private message

mentalinc: This should make openmedia one happy man.


We've got numerous ways to extract the EPG data already, but its nice to have support for the MHEG stream.

Already adding patches and feedback to this project ;)

Steve




Generally known online as OpenMedia, now working for Red Hat New Zealand as a Solution Architect for all things Linux, Virtual and of course Cloud. Still playing with MythTV and digital media on the side.

26 posts

Geek


  Reply # 331354 18-May-2010 13:37 Send private message

Anyone looking into getting this working with OpenTvix?

Tom

22 posts

Geek


  Reply # 339047 7-Jun-2010 16:12 Send private message

This is excellent, after a lot of trial and error I got this running last night (on mythbuntu 10.4) and manually imported it into mythtv. I'd love to help make this a simpler setup for idiots like me. Would anyone who's using it mind sharing the glue they use to run rb-download, mheg2xmltv and import it into myth? shell scripts? cron jobs? Also how long should rb-download take to run? I left it running for a few minutes and killed it, I'm not sure if it was meant to finish on it's own.



29 posts

Geek
+1 received by user: 4


Reply # 339058 7-Jun-2010 16:55 Send private message

Jamms: This is excellent, after a lot of trial and error I got this running last night (on mythbuntu 10.4) and manually imported it into mythtv. I'd love to help make this a simpler setup for idiots like me. Would anyone who's using it mind sharing the glue they use to run rb-download, mheg2xmltv and import it into myth? shell scripts? cron jobs? Also how long should rb-download take to run? I left it running for a few minutes and killed it, I'm not sure if it was meant to finish on it's own.


I'm glad it is working for you. I have some helper scripts that I just didn't include in the package. Just need to tidy them up a bit and can include it.

To answer you question, MHEG-5 data is very quickly downloaded. Typical time needed is 45 seconds. I usually run it at 2am for about 120 seconds to ensure everything is downloaded. rb-download itself is designed to run all the time and listen on a network port. But we only need the data once per day so a simple grab of 120 secs give you all you need for 7 day listing.

So again, I'll try and include some examples of helper scripts and improve the readme. :)



29 posts

Geek
+1 received by user: 4


  Reply # 339153 7-Jun-2010 20:40 Send private message

I've updated the mheg2xmltv package to include the wrapper script and updated the documenation. 

And do let me know if you have any problems with it.  I just updated it from alpha to beta since there are at least a few people running it.

441 posts

Ultimate Geek


  Reply # 384132 24-Sep-2010 18:51

Love the idea.

Been working on this the whole afternoon, was even trying to compile rp-browser, then I realised I didn't need to :P

Using Debian 5 BTW


So im trying to use rb-download, but it doesn't want to work, keeps complaining about 'Invalid parameter 'QAM_AUTO' in channels.conf file'

debian:~# rb-download -v -a 1 -f /root/channels1.conf -b $HOME/mheg 1200
Trying to open /root/channels1.conf
Searching channels.conf for service_id 1200
TV ONE(TVNZ):522000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_AUTO:FEC_AUTO:QAM_AUTO:TRANSMISSION_MODE_AUTO:GUARD_INTERVAL_AUTO:HIERARCHY_AUTO:270:320:1200
Invalid parameter 'QAM_AUTO' in channels.conf file

But then if I'm already tuned to a channel and do this, it displays the channels...
debian:~# rb-download
Channels on this mutiplex:

ID Channel
== =======
1302 TV3 PLUS1
1300 TV3
1301 C4
1303 C42

Any ideas?

441 posts

Ultimate Geek


  Reply # 384355 25-Sep-2010 16:28

^ edit
Using Debian 5 x64

Trying Ubuntu 10.04 x64 now (tried it, same errors as Debian)

Could it be the x64?

Will give x32 a go tomorrow

1567 posts

Uber Geek
+1 received by user: 45

Trusted

  Reply # 384362 25-Sep-2010 17:05 Send private message

As you are tuned to the Mediaworks multiplex you need to try

rb-download -v -a 1 -f /root/channels1.conf -b $HOME/mheg 1300

1200 is TV One which is on the TVNZ multiplex.




Generally known online as OpenMedia, now working for Red Hat New Zealand as a Solution Architect for all things Linux, Virtual and of course Cloud. Still playing with MythTV and digital media on the side.

441 posts

Ultimate Geek


  Reply # 385942 29-Sep-2010 16:52

Ah that was it, thanks.

Where do you find these Service ID's?



29 posts

Geek
+1 received by user: 4


  Reply # 474113 25-May-2011 19:54 Send private message

I don't see a way to edit my original post,but I've update to version 0.3.5.

Changes:

* Fixed bug with multi-day listing crossing midnight because EPG splits
shows into two listings.

* Added code to "guess" show category by looking for keywords in
title/descriptions (not on by default, you must run with -g to enable
guessing)

* Added more series metadata to sample file.

Thanks for your feedback.
sV

384 posts

Ultimate Geek
+1 received by user: 2


  Reply # 637684 8-Jun-2012 10:13 Send private message

Whats the easiest way of grabbing an epg, importing it into XBMC in Linux (Ubuntu)?
TVHeadend is the backend. TV Card is a DVB-T Hauppauge HVR 2200. Thank you.




Support a locally made Linux based Operating System, try Linux Lite.
Download Linux Lite



29 posts

Geek
+1 received by user: 4


  Reply # 637697 8-Jun-2012 10:46 Send private message

valtam: Whats the easiest way of grabbing an epg, importing it into XBMC in Linux (Ubuntu)?
TVHeadend is the backend. TV Card is a DVB-T Hauppauge HVR 2200. Thank you.


I'm sorry, I don't have any experience with XBMC or TVHeadend.  I use this for MythTV so I can only tell you about how that works.

The readme.txt has some details and examples.  But basically you setup a cron job to run once per day, that job launches redbutton (MHEG stream extractor) for 30-60 seconds.  The MHEG stream data is then fed into the MHEG2XMLTV script which makes an XMLTV formatted XML file.  This is then imported into mythtv via mythfilldatabase.

Hope this helps.

 1 | 2
View this topic in a long page with up to 500 replies per page Create new topic




Twitter »
Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





Trending now »

Hot discussions in our forums right now:

Snap refuses to replace faulty gear
Created by Brendan, last reply by sorceror on 26-Oct-2014 21:19 (33 replies)
Pages... 2 3


Speed limit when overtaking? Teach me please.
Created by nakedmolerat, last reply by Hobchild on 26-Oct-2014 00:11 (92 replies)
Pages... 5 6 7


House Auctions
Created by t0ny, last reply by joker97 on 26-Oct-2014 20:58 (66 replies)
Pages... 3 4 5


VDSL, which router/modem sub $200?
Created by TeaLeaf, last reply by NonprayingMantis on 25-Oct-2014 19:48 (28 replies)
Pages... 2


Neon - Sky's new streaming service
Created by JarrodM, last reply by JimmyH on 25-Oct-2014 17:37 (29 replies)
Pages... 2


Snap have failed our company!
Created by dafman, last reply by kornflake on 23-Oct-2014 17:41 (37 replies)
Pages... 2 3


Thief taunts 12 year old via stolen laptop
Created by macuser, last reply by charsleysa on 22-Oct-2014 23:49 (12 replies)

iPad Air 2 and iPad Mini 3. Gonna get one?
Created by Dingbatt, last reply by dickytim on 26-Oct-2014 12:32 (116 replies)
Pages... 6 7 8



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.