Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

video::capture::v4l(3pm) [debian man page]

V4l(3pm)						User Contributed Perl Documentation						  V4l(3pm)

NAME
Video::Capture::V4l - Perl interface to the Video4linux framegrabber interface. SYNOPSIS
use Video::Capture::V4l; DESCRIPTION
Not documentation AGAIN! Please see the scripts grab, inexer or vbi that are packaged in the distribution and direct any question and feature requests (as well as bug reports) to the author. Exported constants The following hideous constants are defined in the "Video::Capture::V4l" package, but you rarely need to use them. AUDIO_BASS AUDIO_MUTABLE AUDIO_MUTE AUDIO_TREBLE AUDIO_VOLUME CAPTURE_EVEN CAPTURE_ODD MAX_FRAME MODE_AUTO MODE_NTSC MODE_PAL MODE_SECAM PALETTE_COMPONENT PALETTE_GREY PALETTE_HI240 PALETTE_PLANAR PALETTE_RAW PALETTE_RGB24 PALETTE_RGB32 PALETTE_RGB555 PALETTE_RGB565 PALETTE_UYVY PALETTE_YUV410P PALETTE_YUV411 PALETTE_YUV411P PALETTE_YUV420 PALETTE_YUV420P PALETTE_YUV422 PALETTE_YUV422P PALETTE_YUYV SOUND_LANG1 SOUND_LANG2 SOUND_MONO SOUND_STEREO TUNER_LOW TUNER_MBS_ON TUNER_NORM TUNER_NTSC TUNER_PAL TUNER_RDS_ON TUNER_SECAM TUNER_STEREO_ON TYPE_CAMERA TYPE_TV VC_AUDIO VC_TUNER TYPE_CAPTURE TYPE_CHROMAKEY TYPE_CLIPPING TYPE_FRAMERAM TYPE_MONOCHROME TYPE_OVERLAY TYPE_SCALES TYPE_SUBCAPTURE TYPE_TELETEXT TYPE_TUNER AUTHOR
Marc Lehmann <schmorp@schmorp.de> LICENSE
This module is available under GPL only (see the file COPYING for details), if you want an exception please contact the author, who might grant exceptions freely ;) SEE ALSO
perl(1). perl v5.14.2 2011-11-15 V4l(3pm)

Check Out this Related Man Page

ivtv(3pm)						User Contributed Perl Documentation						 ivtv(3pm)

NAME
Video::ivtv - Perl extension for using V4l2 in the ivtv perl scripts SYNOPSIS
use Video::ivtv; open(my $tuner, "</dev/video0") or die "Error opening /dev/video0! $!"; my $tunerFD = fileno($tuner); # the C functions need the file handle #. # initialize the Video::ivtv module my $ivtvObj = Video::ivtv->new(); # get the current resolution my ($width, $height) = $ivtvObj->getResolution($tunerFD); # set the new resolution $ivtvObj->setResolution($tunerFD, 640, 480); close($tuner); DESCRIPTION
The Video::ivtv module will provide helper methods for working with videodev2.h structures and making ioctl calls that have proven to be too difficult to create pack strings for in perl itself. This is not supposed to be an equivalent of the Video::Capture::V4l module which was created for videodev.h. EXPORT All functions and the variables section. VARIABLES
%codecIndexes This contains the index names and their position in the ivtv_ioctl_codec structure as returned by getCodecInfo() and as expected by setCodecInfo(). %capIndexes This contains the index names and their position in the v4l2_capability structure as returned by getCapabilities(). FUNCTIONS
@(driver, card, bus_info, version, capabilities) getCapabilities(fd) Returns the contents of the v4l2_capability structure. If the ioctl fails, then an empty list is returned. @(width,height) getResolution(fd) Pass in the file handle number using fileno($fd) and the width and height are returned in an array ref. If an error is encountered in the ioctl call, then width and height will = -1. int setResolution(fd, width, height) Specify the new width, height to set the capture to. Returns undef if invalid resolution is specified. Returns a 1 if sucess, 0 if error from the actual code. int getStandard(fd) Returns the current video standard the card is using. int setStandard(fd, standard) Sets the video standard to what is specified (hex value). Returns 1 on success, 0 on error. @(index, id, name, frameperiod_numerator, frameperiod_denominator, framelines) enumerateStandard(fd, index) Returns the contents of the v4l2_standard structure for the specified index. If the ioctl fails then index = -1. int getFrequency(fd, tuner) Returns the current frequency for the specified tuner or -1 if an ioctl error occured. Returns undef on invalid parameters. int setFrequency(fd, tuner, freq) Sets the specified frequency on the specified tuner. Returns 1 on success, 0 on error. int getInput(fd) Returns the current input number starting from 0. Returns -1 if an error occured. int setInput(fd, input) Sets the input to the specified value. input is a 0 indexed value. Returns 1 on success, 0 on error. @(index, name, type, audioset, tuner, std, status) enumerateInput(fd, index) Returns the contents of the v4l2_input structure for the specified index. If the ioctl fails then index = -1. @(aspect, audio_bitmask, bframes, bitrate, bitrate_peak, dnr_mode, dnr_spatial, dnr_temporal, dnr_type, framerate, framespergop, gop_closure, pulldown, stream_type) getCodecInfo(fd) Returns the contents of the ivtv_ioctl_codec structure. If the ioctl fails then an empty list is returned. audio_bitmask is what audio used to be. int setCodecInfo(fd, aspect, audio_bitmask, bframes, bitrate, bitrate_peak, dnr_mode, dnr_spatial, dnr_temporal, dnr_type, framerate, framespergop, gop_closure, pulldown, stream_type) Sets the card to the specified codec related stuff. Returns 1 on success, 0 on error. audio_bitmask is what audio used to be. int setEndGOP(fd, end_gop) Sets the GOP_END flag to the specified value (1 or 0) to instruct the driver to finish a recording with a closed GOP. Returns undef if end_gop < 0 or > 1. Returns 1 on success, 0 on error. int stopEncoding(fd) Calls the VIDIOC_STREAMOFF ioctl to signal we want to stop encoding (reading from the driver). Returns 1 on success, 0 on error. AUTHOR
James A. Pattie <james at pcxperience dot com> SEE ALSO
perl. perl v5.14.2 2012-06-05 ivtv(3pm)
Man Page