[pvrusb2] Channel-change script

Mike Isely isely at isely.net
Sat Sep 10 18:14:09 CDT 2005


With your permission I will add this to the pvrusb2 driver snapshot.

It also seems like it might be useful to script the creation of the
mapping file as well...

  -Mike

On Sat, 10 Sep 2005, Per Christian Henden wrote:

> Hi,
>
> I made a script for changing channels (attached).
> Consider this a preview release :)
>
> It assumes a file mapping channel names to frequencies exist.
> The format is like this:
>
> [E5]
> freq = 175250
>
> The file can be made combining output from scantv with frequencies
> from /usr/local/share/xawtv/*.list
>
> I plan to automate the creation of this frequency file.
>
> It can be created like this:
> #goes to xawtv frequency lists
> cd /usr/local/share/xawtv
> #shows me the files that are included
> cat europe-west.list
> #concatenates the files that are included
> cat ccir-i-iii.list ccir-sl-sh.list  ccir-h.list uhf.list > ~/allids
> #extracts channel ids from scantv output
> cat ~/.tv/stations |grep "\["|cut -d "(" -f 2|cut -d")" -f 1 > myids
> #combines channel ids with frequencies
> (for id in `cat myids `; do grep -1 "\[$id\]" allids ;done) > freqs
>
> The placement of the file is given by the FREQUENCY_FILE variable in the
> script, so make sure you change that to point to your frequency file.
>
> -PER
>

-- 
                        |         Mike Isely          |     PGP fingerprint
     Spammers Die!!     |                             | 03 54 43 4D 75 E5 CC 92
                        |   isely @ pobox (dot) com   | 71 16 01 E2 B5 F5 C1 E8
                        |                             |


More information about the pvrusb2 mailing list