Difference between revisions of "V4l"

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