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.




51 posts

Master Geek


#60651 29-Apr-2010 16:53
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
600 posts

Ultimate Geek

Trusted

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

Wow, nice.  Thank you very much!






51 posts

Master Geek


  #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.

 
 
 
 


1995 posts

Uber Geek

Trusted
Subscriber

  #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

 

 


2247 posts

Uber Geek

Trusted
Subscriber

  #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 APAC a Technology Evangelist and Product Manager. Still playing with MythTV and digital media on the side.


26 posts

Geek


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

Anyone looking into getting this working with OpenTvix?

Tom

22 posts

Geek


  #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.



51 posts

Master Geek


#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. :)

 
 
 
 




51 posts

Master Geek


  #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.

591 posts

Ultimate Geek


  #384132 24-Sep-2010 18:51
Send private message

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?

591 posts

Ultimate Geek


  #384355 25-Sep-2010 16:28
Send private message

^ 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

2247 posts

Uber Geek

Trusted
Subscriber

  #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 APAC a Technology Evangelist and Product Manager. Still playing with MythTV and digital media on the side.


591 posts

Ultimate Geek


  #385942 29-Sep-2010 16:52
Send private message

Ah that was it, thanks.

Where do you find these Service ID's?



51 posts

Master Geek


  #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


  #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



51 posts

Master Geek


  #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




News »

Freeview On Demand app launches on Sony Android TVs
Posted 6-Aug-2020 13:35


UFB hits more than one million connections
Posted 6-Aug-2020 09:42


D-Link A/NZ extends COVR Wi-Fi EasyMesh System series with new three-pack
Posted 4-Aug-2020 15:01


New Zealand software Rfider tracks coffee from Colombia all the way to New Zealand businesses
Posted 3-Aug-2020 10:35


Logitech G launches Pro X Wireless gaming headset
Posted 3-Aug-2020 10:21


Sony Alpha 7S III provides supreme imaging performance
Posted 3-Aug-2020 10:11


Sony introduces first CFexpress Type A memory card
Posted 3-Aug-2020 10:05


Marsello acquires Goody consolidating online and in-store marketing position
Posted 30-Jul-2020 16:26


Fonterra first major customer for Microsoft's New Zealand datacentre
Posted 30-Jul-2020 08:07


Everything we learnt at the IBM Cloud Forum 2020
Posted 29-Jul-2020 14:45


Dropbox launches native HelloSign workflow and data residency in Australia
Posted 29-Jul-2020 12:48


Spark launches 5G in Palmerston North
Posted 29-Jul-2020 09:50


Lenovo brings speed and smarter features to new 5G mobile gaming phone
Posted 28-Jul-2020 22:00


Withings raises $60 million to enable bridge between patients and healthcare
Posted 28-Jul-2020 21:51


QNAP integrates Catalyst Cloud Object Storage into Hybrid Backup solution
Posted 28-Jul-2020 21:40



Geekzone Live »

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


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



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.