Forums » Tutorial and setups »
Setting up XBMC plus tvheadend with a PVR (analog) TV card and an external grabber (tv_grab_nl_py). Ziggo cable provider
Added by po op over 11 years ago
Here's my 5 cents of info. This had cost me a full day of work to figure out. Hope it will save you some time.
Install: xbmc on a ubuntu 12.10 minimal following this guide (http://forum.xbmc.org/showthread.php?tid=141369). Tvheadend was installed as part of the excellent script offered in that guide.
Ziggo is DVB-C (NB: A DVB-T TV card WILL NOT WORK!!! Took two full days to figure this out). PVR card will not acquire any information about the channels by itself, to go to the cable provider page, Ziggo in my case (https://www.ziggo.nl/#producten/televisie/zenderoverzicht/frequentiesoverzicht) and get a list of analog channels for your town. You will have to type them down one by one into the TVheadend's webUI (Configuration/TV adapters (choose adapter)/Services).
Please note that frequencies are entered down to single HZ, this means 9 digits per channel (last four will be zeroes)!
At this point you may already go to your xbmc and configure it to get the feeds from tvheadend. I followed "step 3" of the tutorial here (http://lifehacker.com/5981757/how-to-watch-and-record-live-tv-on-your-xbmc-media-center). You should get the LiveTV tab and be able to flip the channels.
Now on to the EPG (electronic program guide). The tv_grab_nl_py external grabber must be installed according to this page (https://code.google.com/p/tvgrabnlpy/wiki/Installatie). Note that TVheadend has created a user hts on your system. Go to /home/hts folder and run "tv_grab_nl --configure". If all goes well, you will get a sub-folder .xmltv created, in which the tv_grab_nl_py.conf file will appear. This file contains names and channel numbers of all channels for which tvgids.nl carries the programming (right?). Comment out all the channels you didn't enter (with frequencies and all) into the WebUI of TVheadend/ I suggest you only leave a couple uncommented (Ned1,2,3) to begin with for testing, as fetching EPG for those will already take ~10 min! You can also try to run tv_grab_nl to see if it works (it will output to the terminal).
Now you MUST restart tvheadend by issuing "sudo service tvheadend restart" from a (SSH) terminal. After this this NL grabber should appear in the drop-down list (Configuration/EPG grabber/Internal Grabber/Module). Select it, leave the time at 12 hours (or make it longer). It takes at least an hour to get one full EPG from tvgids.nl, so fetching it more frequently is plain nonsense. Now hit "save changes" and if all goes well, the TVheadend will fire the grabber.
You can test if it works by issuing
ps aux |grep tv_grab
This will tell you if it is running. But is it doing anything? One way to see that is to see the "program_cache" file size growing in the .xmltv folder. But it will only increment once a full channel is grabbed. So after issuing the ps command you can get the PID of the tv_grab_nl process and issue
sudo strace -e write -p PID
This will also show you what the grabber is fetching right now. After it's done (takes a LONG time), go to the "Electronic Program Guide" on the webUI of TVheadend and hit the inconspicuous blue "recycle" button (two arrows in a circle) at the left bottom corner of the screen. The list of all fetched programs will appear (insh'allah
One more thing you may wish to do after this is go to "Configuration/Channels" and add numbers to your channels. In this sequence they will appear in your EPG on the xbmc "Live TV" screen, if you allow this in the "System/Settings/LiveTV" config screen of XBMC.
That's how I got it working. All comments/improvements are welcome!
Replies (8)
RE: Setting up XBMC plus tvheadend with a PVR (analog) TV card and an external grabber (tv_grab_nl_py). Ziggo cable provider - Added by Bas K over 11 years ago
Thanks for your howto.
I only got one question why do you prefer an external EPG?
RE: Setting up XBMC plus tvheadend with a PVR (analog) TV card and an external grabber (tv_grab_nl_py). Ziggo cable provider - Added by po op over 11 years ago
A PVR (analog) card cannot acquire any EPG (digital) information by itself. If I had a DVB-T card, I suppose I could just get the EPG from the feed. With the PVR card, however, I need to get the external EPG from the web.
RE: Setting up XBMC plus tvheadend with a PVR (analog) TV card and an external grabber (tv_grab_nl_py). Ziggo cable provider - Added by Adam Sutton over 11 years ago
But you're not talking about analogue TV, you're talking about DVB (-C in this case). There have been some issues with network discovery on Ziggo, caused by some mistakes on my part (and not yet fixed in 3.4), but this should work with master.
Also I believe that Ziggo should be providing EIT EPG data, though not sure of the scope of it.
Adam
RE: Setting up XBMC plus tvheadend with a PVR (analog) TV card and an external grabber (tv_grab_nl_py). Ziggo cable provider - Added by Bas K over 11 years ago
Thanks for the answers guys.
The reason why i asked this is because you use Ziggo and i am using Ziggo's EPG, so i was wondering if it has any benefits besides Ziggo's EPG.
I am using master and i have no problems so far with the Ziggo EPG.
RE: Setting up XBMC plus tvheadend with a PVR (analog) TV card and an external grabber (tv_grab_nl_py). Ziggo cable provider - Added by po op over 11 years ago
I guess my mentioning that ziggo is DVB-C creates all the confusion. I only say this to underscore that DVB-T cards, like my HVR-1300, will not work with Ziggo digital feed.
My PVR-500 is connected to the analog output of the Ziggo Humax box. Apparently this box always decodes and sends all the channels to this analog "TV/VCR" coax output (even when it's off). So from this point on it looks as if I'm connecting my PC to an analog cable signal.
RE: Setting up XBMC plus tvheadend with a PVR (analog) TV card and an external grabber (tv_grab_nl_py). Ziggo cable provider - Added by Bas K over 11 years ago
po op wrote:
I guess my mentioning that ziggo is DVB-C creates all the confusion. I only say this to underscore that DVB-T cards, like my HVR-1300, will not work with Ziggo digital feed.
My PVR-500 is connected to the analog output of the Ziggo Humax box. Apparently this box always decodes and sends all the channels to this analog "TV/VCR" coax output (even when it's off). So from this point on it looks as if I'm connecting my PC to an analog cable signal.
I did not try that i use a Smargo card reader with Oscam. If it work it is a nice alternative, did not thought about that when i bought the Smargo.
RE: Setting up XBMC plus tvheadend with a PVR (analog) TV card and an external grabber (tv_grab_nl_py). Ziggo cable provider - Added by po op over 11 years ago
Would you please care to explain what your config is? You're using your PC as a set-top box to decode the ziggo DV signal? If so, I guess getting the EPG is easy, but you still need a DV-capture device on your pc to get the video stream, right? Which os/soft are you using?
RE: Setting up XBMC plus tvheadend with a PVR (analog) TV card and an external grabber (tv_grab_nl_py). Ziggo cable provider - Added by Bas K over 11 years ago
po op wrote:
Would you please care to explain what your config is? You're using your PC as a set-top box to decode the ziggo DV signal? If so, I guess getting the EPG is easy, but you still need a DV-capture device on your pc to get the video stream, right? Which os/soft are you using?
Sorry, that indeed would be nice.
I am running Ubuntu 13.04 with the latest Tvheadend master from github as i was needed to apply a fix else it did not find the muxes and services (network id 8888).
And i am running Oscam stable ppa, with a Smargo card reader to decode encrypted channels.
My TV tuners are DVB-C Sundtek Mediatv Pro.
Here you can find my tutorial, how to set it up.
Getting EPG is automatic.
This was why i thought you would have a similar setup, and why you'd prefer a different EPG :D
But that's not the case.