Hello,

I have a minor problem that I'm hoping someone can help me with.

I have a bash shell script which uses v4lctl to set volume and channel for my
Hauppauge WinTV card (bttv is properly configured, everything normally works)
and which uses lavrec to record TV programs for timeshifting.

Presently I'm using cron to schedule the recordings, and everything works fine
unless I have to record two shows back-to-back.

The script does a "killall -1 lavrec" prior to executing v4lctl to change
channels as insurance that the first invocation of the recording script isn't
running overtime, then relaunches lavrec to record the new program.  The
trouble is, v4lctl fails when run immediately after the killall and lavrec
can't grab the sound device (so the second program has no sound!).

If I put a "sleep 1" in the script after the killall, this apparently gives
the first lavrec process(es) time to fully exit, child threads and all, and
release the sound device.  Which is fine, except that I end up missing 1-3
seconds of the next show, which can sometimes be an issue.

Background:  Machine is an AMD Athlon XP 2100+ running RedHat Linux 7.3 with
all the errata and security patches, and a custom 2.4.20 kernel with alsa
0.9.4 and lirc-0.6.6.  The version of mjpegtools I'm using is 1.6.1 with the
glav patch which gets rid of the weird filenames.

Any help on this would be greatly appreciated.  Thanks.

-- 
Allen J. Newton  ([EMAIL PROTECTED])


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to