[vlc-devel] Re: [MOD] added brightness control to v4l module

Laurent Aimar fenrir at via.ecp.fr
Wed Feb 4 21:15:29 CET 2004


> From: Carsten Gottbehüt <gottbehuet at active-elements.de>
> Date: Tue, 3 Feb 2004 19:28:26 +0100
> To: <vlc-devel at videolan.org>
> Subject: added brightness control to v4l module
> 
> Hi there,
> 
> I like vlc, I use the linux version to stream videos from a 3com Homeconnect
> webcam. Unfortunatelly vlc does not support the adjustment of brightness,
> hue, contrast and colour of a video4linux device. On some v4l devices some
> of these parameters can be adjusted, for example to control the gain of a
> webcam in dark rooms.
> 
> I have modified the v4l.c file so users can control the four parameters, at
> least at the command line of vlc.
> You can set the following parameters:
> brightness	0-65535
> hue	0-65535
> contrast 0-65535
> colour 0-65535
> If a parameter is not provided at the command line, or is out of range, the
> default value from the device is used.
> 
> An example line could be:
> /usr/local/bin/vlc -vvv
> v4l:/dev/video0:size=320x240:channel=0:brightness=45000:hue=32000:contrast=3
> 2000:colour=32000 --sout
> '#transcode{vcodec=mp4v,vb=110,vt=800000,keyint=80}:std{access=udp,mux=ts,ur
> l=192.168.0.3}'
> 
> The values used can be found in the debug output. Something like:
> [00000290] v4l input debug: v4l device uses brightness: 45000
> [00000290] v4l input debug: v4l device uses colour: 32000
> [00000290] v4l input debug: v4l device uses hue: 32000
> [00000290] v4l input debug: v4l device uses contrast: 32000
> 
> Please feel free to use, modify or ignore this file. A short feedback would
> be nice.
 Changes commited to CVS.

-- 
fenrir

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc-devel mailing list