Menu

v4l2?

2006-06-24
2013-03-22
  • Ralph Müller-Welt

    Hi, is camsource beeing worked on for video4linux2 support?

    I do need that for my webcam (uvcvideo module).

    bye,
    Ralph.

     
    • Anonymous

      Anonymous - 2006-06-26

      According to the homepage, camsource requires v4l1 or v4l2. I think I'm using v4l2. Quote webpage: "Hardware supported by video4linux or video4linux 2."

      Sounds like you haven't even tried it.

      -Jay

       
      • Ralph Müller-Welt

        Sorry, that (2006-07-26 10:20) reply should have gone here!

        Ralph.

         
        • Ralph Müller-Welt

          Am Mittwoch, 26. Juli 2006 10:26 schrieb Ralph Müller-Welt:
          > I tried the following for my Logitech QuickCam Sphere/Orbit (ID 046d:08c2)
          > with uvcvideo (http://developer.berlios.de/projects/linux-uvc/, Rev. 44)
          > on /dev/video1:

          Since nothing happened on that forum i googled for a v4l2-enabled version of camsource and found it on http://koti.mbnet.fi/~turja/vino/ at the download-section.

          > Minimal config.
          > <?xml version="1.0"?>
          > <camsourceconfig>
          >  <camdev name="default" active="yes">
            <plugin>input_v4l2</plugin>
          >  <path>/dev/video1</path>
          >  </camdev>
          >  <logfile>~/.camsource.log</logfile>
            <module name="input_v4l2" active="yes"/>
          >  <module name="filewrite" active="yes">
          >  <path>~/camera.jpg</path>
          >  <interval unit="sec">30</interval>
          >  <chmod>0644</chmod>
          >  </module>
          > </camsourceconfig>

          > Output is
          Camsource 0.7.1 starting up...
          [Aug 09 2006 01:31:32] Loading modules:
          [Aug 09 2006 01:31:32]   input_v4l2 (alias input_v4l2) version 0.7.1 OK
          [Aug 09 2006 01:31:32]   jpeg_comp (alias jpeg_comp) version 0.7.1 OK
          [Aug 09 2006 01:31:32]   filewrite (alias filewrite) version 0.7.1 OK
          [Aug 09 2006 01:31:32]
          [Aug 09 2006 01:31:32 / input_v4l2] Capability info for /dev/video1:
          [Aug 09 2006 01:31:32 / input_v4l2]   Name: uvcvideo
          [Aug 09 2006 01:31:32 / input_v4l2]     Card: USB Video Class device
          [Aug 09 2006 01:31:32 / input_v4l2]     Bus: 0000:00:10.4
          [Aug 09 2006 01:31:32 / input_v4l2]     Can capture to memory
          [Aug 09 2006 01:31:32 / input_v4l2]     Overlay is not supported
          [Aug 09 2006 01:31:32 / input_v4l2]     Streaming is supported
          [Aug 09 2006 01:31:32 / input_v4l2]     Direct read/write is not supported
          [Aug 09 2006 01:31:32 / input_v4l2]     Doesn't have a tuner
          [Aug 09 2006 01:31:32 / input_v4l2]     Cannot receive teletext
          [Aug 09 2006 01:31:32 / input_v4l2]     Cannot output video
          [Aug 09 2006 01:31:32 / input_v4l2]     Cannot output teletext
          [Aug 09 2006 01:31:32 / input_v4l2]
          [Aug 09 2006 01:31:32 / input_v4l2] Input 0:
          [Aug 09 2006 01:31:32 / input_v4l2]   Name: Camera
          [Aug 09 2006 01:31:32 / input_v4l2]     Type: camera
          [Aug 09 2006 01:31:32 / input_v4l2]     Power: on
          [Aug 09 2006 01:31:32 / input_v4l2]     Signal detected
          [Aug 09 2006 01:31:32 / input_v4l2]     Color detected
          [Aug 09 2006 01:31:32 / input_v4l2]
          [Aug 09 2006 01:31:32 / input_v4l2] Palette information:
          [Aug 09 2006 01:31:32 / input_v4l2]   Currently active palette: yuyv (16bpp) with depth 24
          [Aug 09 2006 01:31:32 / input_v4l2]   Probing for supported palettes:
          [Aug 09 2006 01:31:32 / input_v4l2]     Palette "bgr24" supported: No
          [Aug 09 2006 01:31:32 / input_v4l2]     Palette "rgb24" supported: No
          [Aug 09 2006 01:31:32 / input_v4l2]     Palette "bgra32" supported: No
          [Aug 09 2006 01:31:32 / input_v4l2]     Palette "rgba32" supported: No
          [Aug 09 2006 01:31:32 / input_v4l2]     Palette "abgr32" supported: No
          [Aug 09 2006 01:31:32 / input_v4l2]     Palette "argb32" supported: No
          [Aug 09 2006 01:31:32 / input_v4l2]     Palette "yuyv (16bpp)" supported: Yes, with depth 24
          [Aug 09 2006 01:31:32 / input_v4l2]     Palette "yuv422 (16 bpp)" supported: No
          [Aug 09 2006 01:31:32 / input_v4l2]     Palette "rgb565" supported: No
          [Aug 09 2006 01:31:32 / input_v4l2]     Palette "rgb555" supported: No
          [Aug 09 2006 01:31:32 / input_v4l2]     Palette "yuv420 planar (12 bpp)" supported: No
          [Aug 09 2006 01:31:32 / input_v4l2]     Palette "yuv420 (12 bpp)" supported: No
          [Aug 09 2006 01:31:32 / input_v4l2]     Palette "grayscale (8 bpp)" supported: No
          [Aug 09 2006 01:31:32 / input_v4l2]
          [Aug 09 2006 01:31:32 / input_v4l2] Enumerating image controls:
          [Aug 09 2006 01:31:33 / input_v4l2]   Control: Brightness
          [Aug 09 2006 01:31:33 / input_v4l2]     Type: integer Minimum: 00000 Maximum: 00255 Default: 00127 Step: 001
          [Aug 09 2006 01:31:33 / input_v4l2]   Control: Contrast
          [Aug 09 2006 01:31:33 / input_v4l2]     Type: integer Minimum: 00000 Maximum: 00255 Default: 00032 Step: 001
          [Aug 09 2006 01:31:33 / input_v4l2]   Control: Saturation
          [Aug 09 2006 01:31:33 / input_v4l2]     Type: integer Minimum: 00000 Maximum: 00255 Default: 00032 Step: 001
          [Aug 09 2006 01:31:33 / input_v4l2]   Control: Gamma
          [Aug 09 2006 01:31:33 / input_v4l2]     Type: integer Minimum: 00100 Maximum: 00220 Default: 00220 Step: 120
          [Aug 09 2006 01:31:33 / input_v4l2]   Control: Gain
          [Aug 09 2006 01:31:33 / input_v4l2]     Type: integer Minimum: 00000 Maximum: 00255 Default: 00000 Step: 001
          [Aug 09 2006 01:31:33 / input_v4l2]
          [Aug 09 2006 01:31:33 / input_v4l2]   Enumerating private (driver-specific) image controls:
          [Aug 09 2006 01:31:33 / input_v4l2]   Control 000: Backlight Compensation
          [Aug 09 2006 01:31:33 / input_v4l2]     Type: integer Minimum: 00000 Maximum: 00002 Default: 00001 Step: 001
          [Aug 09 2006 01:31:33 / input_v4l2]   Control 001: Power Line Frequency
          [Aug 09 2006 01:31:33 / input_v4l2]     Disabled
          [Aug 09 2006 01:31:33 / input_v4l2]     50 Hz
          [Aug 09 2006 01:31:33 / input_v4l2]     60 Hz
          [Aug 09 2006 01:31:33 / input_v4l2]   Control 002: Sharpness
          [Aug 09 2006 01:31:33 / input_v4l2]     Type: integer Minimum: 00000 Maximum: 00255 Default: 00180 Step: 001
          [Aug 09 2006 01:31:33]

          > Camsource doesn't write a log!
          Same using input_v4l or input_v4l2.
          No Logfile written.

          > And /var/log/messages contains
          Nothing using the input_v4l2 plugin.

          But after all, there is no image written,
          no webcam-light is flasching!
          Not with input_v4l2 nor with input_v4l.

          So i don't know whats wrong here.
          > Anyone can help?

          Yours
          Ralph.
          > PS: CC 2 uvcvideo-mailinglist

           
    • Ralph Müller-Welt

      I tried the following for my Logitech QuickCam Sphere/Orbit (ID 046d:08c2) with uvcvideo (http://developer.berlios.de/projects/linux-uvc/) on /dev/video1:

      Minimal config.
      <?xml version="1.0"?>

      <camsourceconfig>
              <camdev name="default" active="yes">
                      <plugin>input_v4l</plugin>
                      <path>/dev/video1</path>
              </camdev>
              <logfile>~/.camsource.log</logfile>

              <module name="input_v4l" active="yes"/>
              <module name="filewrite" active="yes">
                      <path>~/camera.jpg</path>
                      <interval unit="sec">30</interval>
                      <chmod>0644</chmod>
              </module>
      </camsourceconfig>

      Output is
      Camsource 0.7.0 starting up...
      Loading modules:
        input_v4l (alias input_v4l) version 0.7.0 OK
        jpeg_comp (alias jpeg_comp) version 0.7.0 OK
        filewrite (alias filewrite) version 0.7.0 OK

      Capability info for /dev/video1:
        Name: USB Video Class device
          Can capture to memory
          Doesn't have a tuner
          Cannot receive teletext
          Overlay is not chromakeyed
          Overlay clipping is not supported
          Overlay doesn't overwrite frame buffer mem
          Hardware image scaling not supported
          Captures in color
          Can capture the complete image
        Number of channels: 1
        Number of audio devices: 0
        Grabbing frame size:
          Min: 48x32
          Max: 960x720

      Palette information:
        Currenctly active palette: not found/supported? (value 0, depth 32821)
        Probing for supported palettes:
          Palette "bgr24" supported: No
          Palette "rgb24" supported: No
          Palette "bgr32" supported: No
          Palette "rgb32" supported: No
          Palette "yuyv (16 bpp)" supported: No
          Palette "yuv422 (16 bpp)" supported: No
          Palette "rgb565" supported: No
          Palette "rgb555" supported: No
          Palette "yuv420 planar (12 bpp)" supported: No
          Palette "yuv420 (12 bpp)" supported: No
          Palette "grayscale (8 bpp)" supported: No

      Camsource doesn't write a log!

      And /var/log/messages contains
      Jul 26 10:01:52 RalphiX kernel: uvcvideo: Failed to query (135) UVC control 2 (unit 2) : -110.
      Jul 26 10:01:52 RalphiX kernel: uvcvideo: Failed to query (130) UVC control 2 (unit 2) : -75.
      Jul 26 10:01:52 RalphiX kernel: uvcvideo: Failed to query (131) UVC control 2 (unit 2) : -32.
      Jul 26 10:01:53 RalphiX kernel: uvcvideo: Failed to query (135) UVC control 2 (unit 2) : -110.
      Jul 26 10:01:53 RalphiX kernel: uvcvideo: Failed to query (130) UVC control 2 (unit 2) : -75.
      Jul 26 10:01:53 RalphiX kernel: uvcvideo: Failed to query (131) UVC control 2 (unit 2) : -32.
      Jul 26 10:01:54 RalphiX kernel: uvcvideo: Failed to query (135) UVC control 2 (unit 2) : -110.
      Jul 26 10:01:54 RalphiX kernel: uvcvideo: Failed to query (130) UVC control 2 (unit 2) : -75.
      Jul 26 10:01:54 RalphiX kernel: uvcvideo: Failed to query (131) UVC control 2 (unit 2) : -32.
      Jul 26 10:01:55 RalphiX kernel: uvcvideo: Failed to query (135) UVC control 2 (unit 2) : -110.
      Jul 26 10:01:55 RalphiX kernel: uvcvideo: Failed to query (130) UVC control 2 (unit 2) : -75.
      Jul 26 10:01:55 RalphiX kernel: uvcvideo: Failed to query (131) UVC control 2 (unit 2) : -32.
      Jul 26 10:01:56 RalphiX kernel: uvcvideo: Failed to query (1) UVC control 1 (unit 0) : -110.
      Jul 26 10:01:56 RalphiX kernel: uvcvideo: Failed to query (135) UVC control 2 (unit 2) : -75.
      Jul 26 10:01:56 RalphiX kernel: uvcvideo: Failed to query (130) UVC control 2 (unit 2) : -110.
      Jul 26 10:01:57 RalphiX kernel: uvcvideo: Failed to query (1) UVC control 1 (unit 0) : -110.
      Jul 26 10:01:57 RalphiX kernel: uvcvideo: Failed to query (135) UVC control 2 (unit 2) : -75.
      Jul 26 10:01:58 RalphiX kernel: uvcvideo: Failed to query (130) UVC control 2 (unit 2) : -110.
      Jul 26 10:01:58 RalphiX kernel: uvcvideo: Failed to query (135) UVC control 2 (unit 2) : -110.
      Jul 26 10:01:58 RalphiX kernel: uvcvideo: Failed to query (130) UVC control 2 (unit 2) : -75.
      Jul 26 10:01:58 RalphiX kernel: uvcvideo: Failed to query (131) UVC control 2 (unit 2) : -32.
      Jul 26 10:01:59 RalphiX kernel: uvcvideo: Failed to query (135) UVC control 2 (unit 2) : -110.
      Jul 26 10:01:59 RalphiX kernel: uvcvideo: Failed to query (130) UVC control 2 (unit 2) : -75.
      Jul 26 10:01:59 RalphiX kernel: uvcvideo: Failed to query (131) UVC control 2 (unit 2) : -32.
      Jul 26 10:02:00 RalphiX kernel: uvcvideo: Failed to query (135) UVC control 2 (unit 2) : -110.
      Jul 26 10:02:00 RalphiX kernel: uvcvideo: Failed to query (130) UVC control 2 (unit 2) : -75.
      Jul 26 10:02:00 RalphiX kernel: uvcvideo: Failed to query (131) UVC control 2 (unit 2) : -32.
      Jul 26 10:02:00 RalphiX kernel: uvcvideo: Failed to query (132) UVC control 2 (unit 2) : -32.
      Jul 26 10:02:00 RalphiX kernel: uvcvideo: Failed to query (135) UVC control 3 (unit 2) : -32.
      Jul 26 10:02:01 RalphiX kernel: uvcvideo: Failed to query (130) UVC control 3 (unit 2) : -32.
      Jul 26 10:02:01 RalphiX kernel: uvcvideo: Failed to query (132) UVC control 3 (unit 2) : -32.
      Jul 26 10:02:01 RalphiX kernel: uvcvideo: Failed to query (135) UVC control 2 (unit 2) : -110.
      Jul 26 10:02:01 RalphiX kernel: uvcvideo: Failed to query (130) UVC control 2 (unit 2) : -75.
      Jul 26 10:02:01 RalphiX kernel: uvcvideo: Failed to query (131) UVC control 2 (unit 2) : -32.
      Jul 26 10:02:02 RalphiX kernel: uvcvideo: Failed to query (135) UVC control 2 (unit 2) : -110.
      Jul 26 10:02:02 RalphiX kernel: uvcvideo: Failed to query (130) UVC control 2 (unit 2) : -75.
      Jul 26 10:02:02 RalphiX kernel: uvcvideo: Failed to query (131) UVC control 2 (unit 2) : -32.

      But v4l-info /dev/video1 shows
      ### v4l2 device info [/dev/video1] ###
      general info
          VIDIOC_QUERYCAP
              driver                  : "uvcvideo"
              card                    : "USB Video Class device"
              bus_info                : "0000:00:10.4"
              version                 : 0.1.0
              capabilities            : 0x4000001 [VIDEO_CAPTURE,STREAMING]

      standards

      inputs
          VIDIOC_ENUMINPUT(0)
              index                   : 0
              name                    : "Camera"
              type                    : CAMERA
              audioset                : 0
              tuner                   : 0
              std                     : 0x0 []
              status                  : 0x0 []

      video capture
          VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
              index                   : 0
              type                    : VIDEO_CAPTURE
              flags                   : 1
              description             : "MJPEG"
              pixelformat             : 0x47504a4d [MJPG]
          VIDIOC_ENUM_FMT(1,VIDEO_CAPTURE)
              index                   : 1
              type                    : VIDEO_CAPTURE
              flags                   : 0
              description             : "Uncompressed"
              pixelformat             : 0x56595559 [YUYV]
          VIDIOC_G_FMT(VIDEO_CAPTURE)
              type                    : VIDEO_CAPTURE
              fmt.pix.width           : 960
              fmt.pix.height          : 720
              fmt.pix.pixelformat     : 0x47504a4d [MJPG]
              fmt.pix.field           : NONE
              fmt.pix.bytesperline    : 0
              fmt.pix.sizeimage       : 341333
              fmt.pix.colorspace      : SRGB
              fmt.pix.priv            : 0

      controls
          VIDIOC_QUERYCTRL(BASE+0)
              id                      : 9963776
              type                    : INTEGER
              name                    : "Brightness"
              minimum                 : 0
              maximum                 : 255
              step                    : 1
              default_value           : 127
              flags                   : 0
          VIDIOC_QUERYCTRL(BASE+1)
              id                      : 9963777
              type                    : INTEGER
              name                    : "Contrast"
              minimum                 : 0
              maximum                 : 255
              step                    : 1
              default_value           : 32
              flags                   : 0
          VIDIOC_QUERYCTRL(BASE+2)
              id                      : 9963778
              type                    : INTEGER
              name                    : "Saturation"
              minimum                 : 0
              maximum                 : 255
              step                    : 1
              default_value           : 32
              flags                   : 0
          VIDIOC_QUERYCTRL(PRIVATE_BASE+0)
              id                      : 134217728
              type                    : INTEGER
              name                    : "Backlight Compensation"
              minimum                 : 0
              maximum                 : 2
              step                    : 1
              default_value           : 1
              flags                   : 0
          VIDIOC_QUERYCTRL(PRIVATE_BASE+1)
              id                      : 134217729
              type                    : MENU
              name                    : "Power Line Frequency"
              minimum                 : 0
              maximum                 : 2
              step                    : 1
              default_value           : 2
              flags                   : 0
          VIDIOC_QUERYCTRL(PRIVATE_BASE+2)
              id                      : 134217730
              type                    : INTEGER
              name                    : "Sharpness"
              minimum                 : 0
              maximum                 : 255
              step                    : 1
              default_value           : 180
              flags                   : 0

      ### video4linux device info [/dev/video1] ###
      general info
          VIDIOCGCAP
              name                    : "USB Video Class device"
              type                    : 0x1 [CAPTURE]
              channels                : 1
              audios                  : 0
              maxwidth                : 960
              maxheight               : 720
              minwidth                : 48
              minheight               : 32

      channels
      ioctl VIDIOCGCHAN: Invalid argument

      tuner
      ioctl VIDIOCGTUNER: Invalid argument

      audio
      ioctl VIDIOCGAUDIO: Invalid argument

      picture
          VIDIOCGPICT
              brightness              : 0
              hue                     : 0
              colour                  : 8224
              contrast                : 0
              whiteness               : 65535
              depth                   : 32821
              palette                 : unknown

      buffer
      ioctl VIDIOCGFBUF: Invalid argument

      window
          VIDIOCGWIN
              x                       : 0
              y                       : 0
              width                   : 960
              height                  : 720
              chromakey               : 0
              flags                   : 0

      So i guess camsource tries to use /dev/video1 as video4linux device or doesn't recognice the v4l2 features of the uvcvideo-driver.

      Anyone can help?

      Ralph.
      PS: CC 2 uvcvideo-mailinglist

       

Log in to post a comment.

MongoDB Logo MongoDB