I am doing that right know, but I was wondering if the conversion I am
doing right now:

# Parse out the number and convert it to ivtv-tune's format (n/16 on
#us-cable, might be n*16 on others)
freqnumber = int(cfrequency.stdout.readlines()[1].split('=')[1].replace('\n', 
'').strip()) / 16.0

Applied to other frequency tables?.

I would need more testing on frequencies other than us-cable. Anybody that 
needs it, please just email me. (See source code).


On Thu, 2006-12-28 at 11:52 +0100, Hans Verkuil wrote:
> On Thursday 28 December 2006 04:57, Marc E. wrote:
> > ivtv-channel is a small utility to be used in conjunction to LIRC.
> >
> > It allows users to use their remote to change the channels without
> > having to use a huge application like MythTV.
> >
> > Virtually any aplication that supports stdin from /dev/video0 and has
> > optional support for LIRC (mplayer, xine, vlc?) can be used as a tv
> > watching appliation.
> >
> > http://www.jardinpresente.com.ar/svn/utiles/tags/scripts/ivtv-channel
> >/0.3.1/ivtv-channel.py
> >
> > Version 0.3.1 fixes a major bug in channel changing.
> >
> > Greetings, and for the ivtv devs, please add a function to get which
> > channel is currently tuned (not frequency).
> 
> Sorry, but v4l devices only know about frequencies. Channels are 
> region-specific and can be useless as well in some regions. For 
> example, the frequencies my cable company uses have nothing to do with 
> the 'official' channel map for western europe. So you will have to do 
> some reverse table lookup to find the channel based on the frequency.
> 
>       Hans
> 
> _______________________________________________
> ivtv-users mailing list
> [email protected]
> http://ivtvdriver.org/mailman/listinfo/ivtv-users

_______________________________________________
ivtv-users mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-users

Reply via email to