Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Mar 2007 23:46:00 +0000
From:      "Jim Stapleton" <stapleton.41@gmail.com>
To:        "Josh Paetzel" <josh@tcbug.org>, freebsd-questions@freebsd.org
Subject:   Re: hauppauge PVR 150 problem loading modules
Message-ID:  <80f4f2b20703041546h7a0e071ay7ec18d5d9e44ea55@mail.gmail.com>
In-Reply-To: <80f4f2b20703041417m548502f2yfb2de1383780b6c0@mail.gmail.com>
References:  <80f4f2b20703021833kfa8d0dxaa838b2bfc72f400@mail.gmail.com> <80f4f2b20703021834u131ae0e8i6f73e29d013e04d4@mail.gmail.com> <200703032317.16140.josh@tcbug.org> <80f4f2b20703040456pbbc5be5nb094e6b612198214@mail.gmail.com> <80f4f2b20703041417m548502f2yfb2de1383780b6c0@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
OK, this little script seemed to get the job done, but... it's not
horribly fast/efficient (I found a tuner the same as 0x55 that works
with 0x67 also). For testing purposes, is there an mpeg player that
will gake input from stdin?

I.E. I would replace
cat /dev/cxm0 > test_$START.mpg &
with
cat /dev/cxm0 | some_app &

Thanks,
-Jim Stapleton

#!/bin/sh

INC=0.10
START=740.00
STOP=750.00
P=$START

cat /dev/cxm0 > test_$START.mpg &
TEST=$(echo "$P <= $STOP" | bc)
while [ "$TEST" -eq "1" ]
do
  echo $P
  pvr250-setchannel -m 2 $P
  P=$(echo "$P + $INC" | bc)
  TEST=$(echo "$P <= $STOP" | bc)
  sleep 2
done

kill $(ps -A | grep cat | grep cxm0 | cut -f 2 -d ' ')

noatun test_$START.mpg


On 3/4/07, Jim Stapleton <stapleton.41@gmail.com> wrote:
> OK, I'm working on that, what's the most trivial method of finding out
> if the tuner is working?
>
> I saw a cat /dev/cxm0 > test.mpg comment, do I have to set channel
> before I do that, should I use the pvr250_setchannel application?
>
>
> Thanks,
> -Jim Stapleton
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?80f4f2b20703041546h7a0e071ay7ec18d5d9e44ea55>