Difference between revisions of "V4l"

From VideoLAN Wiki
Jump to navigation Jump to search
 
(Added new options to V4L2)
Line 34: Line 34:
 
* --v4l2-dev ([[string]])
 
* --v4l2-dev ([[string]])
 
*: Your video device (default /dev/video0)
 
*: Your video device (default /dev/video0)
 +
* --v4l2-adev ([[string]])
 +
*: Your audio device (default /dev/dsp)
 +
* --v4l2-standard ([[string]])
 +
*:* Default
 +
*:* SECAM
 +
*:* PAL
 +
*:* NTSC
 +
* --v4l2-chroma ([[string]])
 +
*: Video input chroma format. The default is to auto detect.
 
* --v4l2-input ([[integer]])
 
* --v4l2-input ([[integer]])
*: Input of the card to use
+
*: Input of the card to use (0 is the default).  Usually:-
 
*:* 0 = tuner
 
*:* 0 = tuner
 
*:* 1 = composite
 
*:* 1 = composite
 
*:* 2 = svideo
 
*:* 2 = svideo
 
+
* --v4l2-io ([[string]])
 +
*: Read method for the video.
 +
*:* READ = Basic read()
 +
*:* MMAP = Memory mapped buffer (the default)
 +
*:* USERPTR = User buffer pointer
 +
* --v4l2-fps ([[float]])
 +
*: Framerate per second (0 = Unrestricted - the default)
 +
* --v4l2-stereo ([[bool]])
 +
*: Stereo audio (default true)
 +
* --v4l2-samplerate ([[integer]])
 +
*: Audio sample rate (default 48000)
 +
* --v4l2-caching ([[integer]])
 +
*: Caching value in ms
 
== Source code ==
 
== Source code ==
 
{{file|modules/access/v4l.c|access module}}
 
{{file|modules/access/v4l.c|access module}}
 
{{file|modules/access/v4l2.c|access module}}
 
{{file|modules/access/v4l2.c|access module}}

Revision as of 16:50, 6 October 2007

v4l

??
VLC uses this protocol (or access module) to read data from a device or network.

module options

     --v4l-caching <integer>    Caching value in ms
     --v4l-vdev <string>        Video device name
     --v4l-adev <string>        Audio device name
     --v4l-chroma <string>      Video input chroma format
     --v4l-fps <float>          Framerate
     --v4l-samplerate <integer> Samplerate
     --v4l-channel <integer>    Channel
     --v4l-tuner <integer>      Tuner
     --v4l-norm {3 (Automatic), 2 (SECAM), 0 (PAL), 1 (NTSC)}
                                Norm
     --v4l-frequency <integer>  Frequency
     --v4l-audio <integer>      Audio Channel
     --v4l-stereo, --no-v4l-stereo
                                Stereo (default enabled)
     --v4l-width <integer>      Width
     --v4l-height <integer>     Height
     --v4l-brightness <integer> Brightness
     --v4l-colour <integer>     Color
     --v4l-hue <integer>        Hue
     --v4l-contrast <integer>   Contrast
     --v4l-mjpeg, --no-v4l-mjpeg
                                MJPEG (default disabled)
     --v4l-decimation <integer> Decimation
     --v4l-quality <integer>    Quality

v4l2

??
VLC uses this protocol (or access module) to read data from a device or network.

module options

  • --v4l2-dev (string)
    Your video device (default /dev/video0)
  • --v4l2-adev (string)
    Your audio device (default /dev/dsp)
  • --v4l2-standard (string)
    • Default
    • SECAM
    • PAL
    • NTSC
  • --v4l2-chroma (string)
    Video input chroma format. The default is to auto detect.
  • --v4l2-input (integer)
    Input of the card to use (0 is the default). Usually:-
    • 0 = tuner
    • 1 = composite
    • 2 = svideo
  • --v4l2-io (string)
    Read method for the video.
    • READ = Basic read()
    • MMAP = Memory mapped buffer (the default)
    • USERPTR = User buffer pointer
  • --v4l2-fps (float)
    Framerate per second (0 = Unrestricted - the default)
  • --v4l2-stereo (bool)
    Stereo audio (default true)
  • --v4l2-samplerate (integer)
    Audio sample rate (default 48000)
  • --v4l2-caching (integer)
    Caching value in ms

Source code