v4l
index
/home/mdd/programming/python/pyv4l/v4l.so

Implementation for V4L (Video4Linux) operations.

 
Classes
            
exceptions.Exception
AudioError
V4lError
VideoError
__builtin__.object
V4L
radio
video
 
class AudioError(exceptions.Exception)
       
   Data and non-method functions defined here:
__doc__ = None
__module__ = 'v4l'

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)
 
class V4L(__builtin__.object)
       
   Methods defined here:
__repr__(...)
x.__repr__() <==> repr(x)
getFrequency(...)
getFrequency() -> int frequency (Khz)
 
Gets the current frequency of device.
getMode(...)
getMode() -> int mode
 
Returns audio mode.
getVolume(...)
getVolume() -> int volume
 
Returns volume level (0-9).
mute(...)
mute() -> None
 
Mutes device.
setBass(...)
setBass(basslevel) -> None
 
Sets the bass level (0-9), not supported by all devices.
setFrequency(...)
setFrequency(integer) -> None
 
Set Frequency (Khz)
setMono(...)
setMono() -> None
 
Sets audio mode to mono.
setRawFrequency(...)
setStereo(...)
setStereo() -> None
 
Sets audio mode to stereo, not supported by all devices.
setTreble(...)
setTreble(treblelevel) -> None
 
Sets the treble level (0-9), not supported by all devices.
setVolume(...)
setVolume(volumelevel) -> None
 
Sets the volume level, not supported by all devices.

Data and non-method functions defined here:
__doc__ = None

Methods inherited from __builtin__.object:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__hash__(...)
x.__hash__() <==> hash(x)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__reduce__(...)
helper for pickle
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__str__(...)
x.__str__() <==> str(x)

Data and non-method functions inherited from __builtin__.object:
__class__ = <type 'type'>
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T
 
class V4lError(exceptions.Exception)
       
   Data and non-method functions defined here:
__doc__ = None
__module__ = 'v4l'

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)
 
class VideoError(exceptions.Exception)
       
   Data and non-method functions defined here:
__doc__ = None
__module__ = 'v4l'

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)
 
class radio(__builtin__.object)
       
   Methods defined here:
__repr__(...)
x.__repr__() <==> repr(x)
getFrequency(...)
getFrequency() -> int frequency (Khz)
 
Gets the current frequency of device.
getMode(...)
getMode() -> int mode
 
Returns audio mode.
getVolume(...)
getVolume() -> int volume
 
Returns volume level (0-9).
mute(...)
mute() -> None
 
Mutes device.
setBass(...)
setBass(basslevel) -> None
 
Sets the bass level (0-9), not supported by all devices.
setFrequency(...)
setFrequency(integer) -> None
 
Set Frequency (Khz)
setMono(...)
setMono() -> None
 
Sets audio mode to mono.
setStereo(...)
setStereo() -> None
 
Sets audio mode to stereo, not supported by all devices.
setTreble(...)
setTreble(treblelevel) -> None
 
Sets the treble level (0-9), not supported by all devices.
setVolume(...)
setVolume(volumelevel) -> None
 
Sets the volume level, not supported by all devices.

Data and non-method functions defined here:
__doc__ = None

Methods inherited from __builtin__.object:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__hash__(...)
x.__hash__() <==> hash(x)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__reduce__(...)
helper for pickle
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__str__(...)
x.__str__() <==> str(x)

Data and non-method functions inherited from __builtin__.object:
__class__ = <type 'type'>
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T
 
class video(__builtin__.object)
       
   Methods defined here:
__repr__(...)
x.__repr__() <==> repr(x)
getBuffer(...)
getBuffer() -> (int height, int width, int depth, int bytesperline)
 
Returns buffer tuple.
getCapabilities(...)
setFrequency(integer) -> None
 
Set Frequency (Khz)
getChannel(...)
getChannel(channel) -> (int channel, string name, int tuners)
Returns channel information.
getFrequency(...)
getFrequency() -> int frequency (Khz)
 
Gets the current frequency of device.
getImage(...)
getImage() -> string image
 
Get a frame from device.
getOverlay(...)
getOverlay() -> (int x, int y, int width, int height, int chromakey, int flags, int clipcount)
 
Return overlay information.
getPicture(...)
getPicture() -> (int brightness, int hue, int colour, int contrast, int whiteness, int depth, int palette)
 
Returns picture information, whiteness only for black & white palette types.
getTuner(...)
getTuner() -> (int tuner, string name, int rangelow, int rangehigh, int flags, int mode, int signal)
 
Returns tuner information.
getVbi(...)
getVbi() -> (int sampling_rate, int samples_per_line,
    int sample_format, (int start1, int start2),
    (int count1, int count2), int flags)
 
Returns VBI information.
getVolume(...)
getVolume() -> int volume
 
Returns volume level (0-9).
mute(...)
mute() -> None
 
Mutes device.
preQueueFrames(...)
preQueueFrames() -> None
 
Queue up frames before capture.
queueFrame(...)
queueFrame() -> None
 
Queue up a single frame.
setChannel(...)
setChannel(channel) -> None
 
Set Channel.
setFrequency(...)
setFrequency(integer) -> None
 
Set Frequency (Khz)
setOverlay(...)
setOverlay(x, y, width, height) -> None
 
Set Overlay information.
setPicture(...)
setPicture(bright, hue, colour, contrast, whiteness, depth, palette) -> None
 
Set Picture information.
setSync(...)
setSync(sync) -> None
 
Set sync.
setTuner(...)
setTuner() -> None
 
Set tuner mode.
setVolume(...)
setVolume(volumelevel) -> None
 
Sets the volume level, not supported by all devices.
setupImage(...)
setupImage(width, height) -> None
 
Set image capture parameters.

Data and non-method functions defined here:
__doc__ = None

Methods inherited from __builtin__.object:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__hash__(...)
x.__hash__() <==> hash(x)
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
__reduce__(...)
helper for pickle
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__str__(...)
x.__str__() <==> str(x)

Data and non-method functions inherited from __builtin__.object:
__class__ = <type 'type'>
__new__ = <built-in method __new__ of type object>
T.__new__(S, ...) -> a new object with type S, a subtype of T
 
Data
             VIDEO_AUDIO_BALANCE = 32
VIDEO_AUDIO_BASS = 8
VIDEO_AUDIO_MUTABLE = 2
VIDEO_AUDIO_MUTE = 1
VIDEO_AUDIO_TREBLE = 16
VIDEO_AUDIO_VOLUME = 4
VIDEO_MODE_AUTO = 3
VIDEO_MODE_NTSC = 1
VIDEO_MODE_PAL = 0
VIDEO_MODE_SECAM = 2
VIDEO_PALETTE_COMPONENT = 7
VIDEO_PALETTE_GREY = 1
VIDEO_PALETTE_HI240 = 2
VIDEO_PALETTE_PLANAR = 13
VIDEO_PALETTE_RAW = 12
VIDEO_PALETTE_RGB24 = 4
VIDEO_PALETTE_RGB32 = 5
VIDEO_PALETTE_RGB555 = 6
VIDEO_PALETTE_RGB565 = 3
VIDEO_PALETTE_UYVY = 9
VIDEO_PALETTE_YUV410P = 16
VIDEO_PALETTE_YUV411 = 11
VIDEO_PALETTE_YUV411P = 14
VIDEO_PALETTE_YUV420 = 10
VIDEO_PALETTE_YUV420P = 15
VIDEO_PALETTE_YUV422 = 7
VIDEO_PALETTE_YUV422P = 13
VIDEO_PALETTE_YUYV = 8
VIDEO_SOUND_LANG1 = 4
VIDEO_SOUND_LANG2 = 8
VIDEO_SOUND_MONO = 1
VIDEO_SOUND_STEREO = 2
VIDEO_TUNER_LOW = 8
VIDEO_TUNER_MBS_ON = 512
VIDEO_TUNER_NORM = 16
VIDEO_TUNER_NTSC = 2
VIDEO_TUNER_PAL = 1
VIDEO_TUNER_RDS_ON = 256
VIDEO_TUNER_SECAM = 4
VIDEO_TUNER_STEREO_ON = 128
VIDEO_TYPE_CAMERA = 2
VIDEO_TYPE_TV = 1
VIDEO_VC_AUDIO = 2
VIDEO_VC_TUNER = 1
VID_TYPE_CHROMAKEY = 16
__file__ = './v4l.so'
__name__ = 'v4l'