Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Mythtvnz

epgsnoop

 

 

MythTV mythtvnz RSS feed   Index | Next | Previous | View Threaded


graeme.joy at paradise

Mar 16, 2010, 12:33 AM

Post #1 of 7 (1432 views)
Permalink
epgsnoop

Given the problems with Sky I've resorted to getting epgsnoop going. I'm
using version 0.81.
I have copied channels.conf.sky to channels.conf and epgsnoop.sqlite to
.epgsnoop.

Freeview seems to work OK but sky the config is not, all I get is

myth [at] mercur:~/epgsnoop-0.81$ epgsnoop
/usr/local/lib/python2.6/dist-packages/epgsnoop/snooper.py:8:
DeprecationWarning: The popen2 module is deprecated. Use the subprocess
module.
import popen2

Processing packets: 02500
Total programs: 0
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE tv SYSTEM "xmltv.dtd">
<tv generator-info-name="epgsnoop/0.81"
generator-info-url="http://nice.net.nz/epgsnoop" date="20100316202828 ">
</tv>

I'm assuming that mythbackend must not be running for this to work??



_______________________________________________
mythtvnz mailing list
mythtvnz [at] lists
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/


graeme.joy at paradise

Mar 16, 2010, 12:56 AM

Post #2 of 7 (1390 views)
Permalink
Re: epgsnoop [In reply to]

On 16/03/10 20:33, graeme wrote:
> Given the problems with Sky I've resorted to getting epgsnoop going. I'm
> using version 0.81.
> I have copied channels.conf.sky to channels.conf and epgsnoop.sqlite to
> .epgsnoop.
>
With some more playing around I've found that epgsnoop will work with
mythbackend running, but not without. Without it just hangs on packet
0001 and does nothing. Is this because epgsnoop doesn't tune to the
transponder by itself? Do I have to manually use dvbtune and then run
epgsnoop??


_______________________________________________
mythtvnz mailing list
mythtvnz [at] lists
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/


hads at nice

Mar 16, 2010, 1:09 AM

Post #3 of 7 (1383 views)
Permalink
Re: epgsnoop [In reply to]

On Tue, 2010-03-16 at 20:56 +1300, graeme wrote:
> With some more playing around I've found that epgsnoop will work with
> mythbackend running, but not without. Without it just hangs on packet
> 0001 and does nothing. Is this because epgsnoop doesn't tune to the
> transponder by itself? Do I have to manually use dvbtune and then run
> epgsnoop??

You are correct. epgsnoop doesn't (currently) do any tuning of DVB cards
etc. This needs to be done by a script.

I've also put epgsnoop up on launchpad;

https://launchpad.net/epgsnoop

and made a release 0.82, not many changes really, just a few minor
things but there hadn't been one in a while.

hads

--
http://nicegear.co.nz
New Zealand's Open Source Hardware Supplier


_______________________________________________
mythtvnz mailing list
mythtvnz [at] lists
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/


stephen_agent at jsw

Mar 16, 2010, 1:23 AM

Post #4 of 7 (1385 views)
Permalink
Re: epgsnoop [In reply to]

On Tue, 16 Mar 2010 20:33:56 +1300, you wrote:

>Given the problems with Sky I've resorted to getting epgsnoop going. I'm
>using version 0.81.
>I have copied channels.conf.sky to channels.conf and epgsnoop.sqlite to
>.epgsnoop.
>
>Freeview seems to work OK but sky the config is not, all I get is
>
>myth [at] mercur:~/epgsnoop-0.81$ epgsnoop
>/usr/local/lib/python2.6/dist-packages/epgsnoop/snooper.py:8:
>DeprecationWarning: The popen2 module is deprecated. Use the subprocess
>module.
> import popen2
>
>Processing packets: 02500
>Total programs: 0
><?xml version="1.0" encoding="ISO-8859-1"?>
><!DOCTYPE tv SYSTEM "xmltv.dtd">
><tv generator-info-name="epgsnoop/0.81"
>generator-info-url="http://nice.net.nz/epgsnoop" date="20100316202828 ">
></tv>
>
>I'm assuming that mythbackend must not be running for this to work??

I will be getting epgsnoop going tomorrow when my DVB-S2 card arrives,
so I have been looking at how this works. epgsnoop needs to have a
card tuned to the signal it is going to get the EIT data from. Take a
look at this from the list archives:

http://lists.ourshack.com/pipermail/mythtvnz/2008-December/006085.html

What the epg.sh script does is to check if the DVB-S card it needs to
use is being used by mythbackend. It does that by checking if any of
the virtual tuners associated with that card are busy (7, 8 or 9 in
this case). If they are busy, it sleeps for 30 minutes and then tries
again. When the card is not busy, it uses dvbtune to tune the card to
the correct satellite transponder (Freeview or Sky) and then runs
epgsnoop to collect the EIT data from that transponder.

Note that for this to work you need to set the option that makes
mythbackend only grab a tuner card when it needs it and release it
when it is finished. I forget where that is - I always set it anyway
when I first install a MythTV system.

Looking at the dvbtune commands in epg.sh, I am not sure how the
correct tuner card is selected. I would have thought that a -c option
would also be required to set the correct card. In my case, I will
only have one DVB-S card, and getting the EIT data from one of the
other three DVB-T tuners would not get the right EIT data.

I have never done python before, so I am finding it a bit difficult to
follow the epgsnoop code as yet. It will help when I have a DVB-S
card to actually try it with tomorrow.

_______________________________________________
mythtvnz mailing list
mythtvnz [at] lists
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/


graeme.joy at paradise

Mar 16, 2010, 2:50 AM

Post #5 of 7 (1388 views)
Permalink
Re: epgsnoop [In reply to]

On 16/03/10 21:23, Stephen Worthington wrote:
> On Tue, 16 Mar 2010 20:33:56 +1300, you wrote:
>
>
>> Given the problems with Sky I've resorted to getting epgsnoop going. I'm
>> using version 0.81.
>> I have copied channels.conf.sky to channels.conf and epgsnoop.sqlite to
>> .epgsnoop.
>>
>> Freeview seems to work OK but sky the config is not, all I get is
>>
>> myth [at] mercur:~/epgsnoop-0.81$ epgsnoop
>> /usr/local/lib/python2.6/dist-packages/epgsnoop/snooper.py:8:
>> DeprecationWarning: The popen2 module is deprecated. Use the subprocess
>> module.
>> import popen2
>>
>> Processing packets: 02500
>> Total programs: 0
>> <?xml version="1.0" encoding="ISO-8859-1"?>
>> <!DOCTYPE tv SYSTEM "xmltv.dtd">
>> <tv generator-info-name="epgsnoop/0.81"
>> generator-info-url="http://nice.net.nz/epgsnoop" date="20100316202828 ">
>> </tv>
>>
>> I'm assuming that mythbackend must not be running for this to work??
>>
>
All going now, thanks for your help ;)

_______________________________________________
mythtvnz mailing list
mythtvnz [at] lists
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/


hads at nice

Mar 19, 2010, 7:55 PM

Post #6 of 7 (1307 views)
Permalink
Re: epgsnoop [In reply to]

On Tue, 2010-03-16 at 21:09 +1300, Hadley Rich wrote:
> You are correct. epgsnoop doesn't (currently) do any tuning of DVB cards
> etc. This needs to be done by a script.

So the above statement is now out of date :)

I've just implemented the ability for epgsnoop to tune the DVB card
itself. This should hopefully make it easier for people to get up and
running themselves.

It's only in the bzr version so far but I'd appreciate anyone that wants
to test it. The command to check it out is;

bzr branch lp:~hads/epgsnoop/trunk epgsnoop

(I'm still figuring out this launchpad deal so hopefully that's
correct).

I'll make a new release in a while with these changes.

hads

> I've also put epgsnoop up on launchpad;
>
> https://launchpad.net/epgsnoop
>
> and made a release 0.82, not many changes really, just a few minor
> things but there hadn't been one in a while.

--
http://nicegear.co.nz
New Zealand's Open Source Hardware Supplier


_______________________________________________
mythtvnz mailing list
mythtvnz [at] lists
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/


g8ecj at gilks

Mar 19, 2010, 8:46 PM

Post #7 of 7 (1292 views)
Permalink
Re: epgsnoop [In reply to]

> On Tue, 2010-03-16 at 21:09 +1300, Hadley Rich wrote:
>> You are correct. epgsnoop doesn't (currently) do any tuning of DVB cards
>> etc. This needs to be done by a script.
>
> So the above statement is now out of date :)
>
> I've just implemented the ability for epgsnoop to tune the DVB card
> itself. This should hopefully make it easier for people to get up and
> running themselves.
>
> It's only in the bzr version so far but I'd appreciate anyone that wants
> to test it. The command to check it out is;
>
> bzr branch lp:~hads/epgsnoop/trunk epgsnoop
>
> (I'm still figuring out this launchpad deal so hopefully that's
> correct).
>
> I'll make a new release in a while with these changes.
>
> hads
>

Works for me :-)

I'll try it for real tonight.

My preference would be that it *NOT* install to /usr/bin but to
/usr/local/bin but that's just me with my Gentoo hat on!!

I take it that the few (5?) seconds delay is no longer required when
changing muxes as I see you do a flush...

'Nice' job ;->

--
Robin Gilks




_______________________________________________
mythtvnz mailing list
mythtvnz [at] lists
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/

MythTV mythtvnz RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.