Re: How to "clear" VCR hack flag "programmatically"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, Jan 01, 2002 at 02:37:20AM -0500, Brian J. Murrell wrote:
> My recording all have the "VCR Hack" grey bar at the bottom.  Is there
> a command line/programmatic way to turn that off before I launch my
> recording utiltity?

OK, to followup on my own message: because I found some time to dig
into the source for v4lctl, I figured this out.

v4lctl has a (generic) mechanism to set "unnamed" options.  If you
use:

$ v4lctl setattr <attribute> <value>

"attribute" is allowed to be any attribute supported by the v4l[2]
interface.  In the case of "VCR Hack" one simply executes:

$ v4lctl setattr "VCR Hack" 0

to turn it off and 

$ v4lctl setattr "VCR Hack" 1

to turn it on.

If you set "attribute" to an invalid attribute you will get a list of
the valid attributes for the video device you opened. 

Now one word of advise: if you do this from an xterm (or any tty that
has a valid $DISPLAY set) on an X server that supports Xvideo, you
will not get the neato knobs that v4l2 gives you.  You need to either
unset your DISPLAY variable or set it to something that will not
equate to your Xvideo capable X server.  To demonstrate:

$ v4lctl setattr foo
cmd: foo: attribute not found
valid choices are: "bright", "contrast", "color", "hue", "norm", "input"

$ DISPLAY="" v4lctl setattr foo
cmd: foo: attribute not found
valid choices are: "norm", "input", "bright", "contrast", "color", "hue", "volume", "Audio Balance", "Audio Bass", "Audio Treble", "mute", "Burst", "Chroma Comb Filter", "Auto Mute", "Luma Comb Filter", "Luma Notch Filter", "Composite Video", "Luma Decimation Filter", "Chroma AGC", "Low Colour Removal", "Luma Output Range", "Luma Coring", "Adaptive AGC", "Colour Bars", "RGB Error Diffusion", "Gamma Correction Removal", "Full Frame Dither", "VCR Hack", "Raw Timestamps"

Happy video device knob controlling.  :-)

b.

-- 
Brian J. Murrell





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux