From owner-freebsd-multimedia@FreeBSD.ORG Tue Apr 15 12:35:43 2008 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC9991065670 for ; Tue, 15 Apr 2008 12:35:43 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.177]) by mx1.freebsd.org (Postfix) with ESMTP id 9AB138FC23 for ; Tue, 15 Apr 2008 12:35:43 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so2784052waf.3 for ; Tue, 15 Apr 2008 05:35:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=QPYKH5qUhheeqRvrbk6KmnoCSMRWZv3te3DCTZ9xmP4=; b=a/JBEzAit+qYIwV4L3yWFvXO6iN2tkLgeq7SfgzCoe8G6YlyTJ6fIg5httEwxNJyDtooZY5euQh68PAKKNfb7Qa5rOUm2bOjZUmaPtzh1kBaFwGmGgMO4DekHBM1FsS+bR9AZXeGVaWEnUSXhpVMbfksAofL7DSN4GzjQF3JbFU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Yf9+lGV0+LvVtuZjV4c61av+UhcnAHdt3gGwk7bTdWl18N+/2rvvJdLIMwEjC0FCVzVU9xcn2FZAcJTGCMUQqj5VsMm2I8Zr0nQwqYjjhV/pNLVIo+MJElOzB5zuaGfGQq1BtX44B2eye+avs1GJUFGphW6xA1fTfzxz1MWjlTY= Received: by 10.114.175.16 with SMTP id x16mr8131950wae.12.1208262943361; Tue, 15 Apr 2008 05:35:43 -0700 (PDT) Received: by 10.114.113.11 with HTTP; Tue, 15 Apr 2008 05:35:43 -0700 (PDT) Message-ID: <80f4f2b20804150535w43d82804n9518bd577be61cd7@mail.gmail.com> Date: Tue, 15 Apr 2008 08:35:43 -0400 From: "Jim Stapleton" To: Jeff In-Reply-To: <895C58D6-609C-4D81-8F2E-F5148226149A@doeshosting.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <80f4f2b20804080605x4a2e063av4327e8480d0ac9e7@mail.gmail.com> <200804081339.m38DdVWD006894@lava.sentex.ca> <80f4f2b20804080714s437adf26n3890ab01737334ff@mail.gmail.com> <1d3ed48c0804080721s1395a0c9wc72bcc6b9df50037@mail.gmail.com> <895C58D6-609C-4D81-8F2E-F5148226149A@doeshosting.com> Cc: freebsd-multimedia@freebsd.org Subject: Re: For those using PVR-XXX X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Apr 2008 12:35:43 -0000 you can just do: alias channel='pvr250-setchannel -m # -t ' where # is the number of your country code: -m Select channel set / system. 0 = Tuner Default 1 = US Broadcast / NTSC 2 = US Cable / NTSC 4 = Western Europe / PAL 5 = Japan Broadcast / NTSC 6 = Japan Cable / NTSC 8 = Australia / PAL 9 = France / SECAM then you just type 'channel 44', for example, if you want channel 44. -Jim Stapleton On Tue, Apr 15, 2008 at 3:59 AM, Jeff wrote: > I made a lil script to help me be lazier while changing channels. I do not > have a remote anymore, so I must do it at console. In case anyone is going > to make something similar for themselves, here is mine so you do not need > to: > > it expects a file in the same dir named chaninput containing only the > following: > > for example: > 2 55.25 > 3 61.25 > 4 67.25 > > > the script is as follows: > > #!/bin/sh > start=`head -n1 chaninput|awk '{print $1}'` > finish=`tail -n1 chaninput|awk '{print $1}'` > echo "echo \"What channel do you want?\" " > channel-change.sh > echo "echo \"Please choose a number between $start and ${finish}\" " > >>channel-change.sh > echo "read chan" >> channel-change.sh > echo "case \$chan in" >> channel-change.sh > for i in `cat chaninput|awk '{print $1}'` > do > echo " ${i}) " >>channel-change.sh > freq=`grep -w -e ^${i} chaninput|awk '{print $2}'` > >>channel-change.sh > echo " pvr250-setchannel $freq " >>channel-change.sh > echo " ;; " >>channel-change.sh > done > echo "esac" >>channel-change.sh > chmod +x channel-change.sh > > > It then outputs a script named channel-change.sh which is ready to change > channels for you. > I did not make this for real public release, mainly because it is so > simple, but I figure maybe someone besides myself would get use from it. > > -krzee > _______________________________________________ > freebsd-multimedia@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia > To unsubscribe, send any mail to > "freebsd-multimedia-unsubscribe@freebsd.org" >