LogiTech 920 control issues

2012-03-09
2013-05-30
  • paradigm2012

    paradigm2012 - 2012-03-09

    Hi,

    I'm having an issue getting a LogiTec C920 to with MJPG Streamer but I've hit a bit of a wall getting the
    controls to work.

    As a reference I was able to get an MS LifeCam HD-5000 to run using:

    root@beaglebone:~/mjpg-streamer# ./mjpg_streamer -i "input_uvc.so -d /dev/video0 -r 1280x720 -f 5" -o "output_http.so -w ./www -p 8090"
    MJPG Streamer Version: svn rev:
    i: Using V4L2 device.: /dev/video0
    i: Desired Resolution: 1280 x 720
    i: Frames Per Second.: 5
    i: Format…………: MJPEG
    Adding control for Pan (relative)
    UVCIOC_CTRL_ADD - Error: Invalid argument
    Adding control for Tilt (relative)
    UVCIOC_CTRL_ADD - Error: Invalid argument
    Adding control for Pan Reset
    UVCIOC_CTRL_ADD - Error: Invalid argument
    Adding control for Tilt Reset
    UVCIOC_CTRL_ADD - Error: Invalid argument
    Adding control for Pan/tilt Reset
    UVCIOC_CTRL_ADD - Error: Invalid argument
    Adding control for Focus (absolute)
    UVCIOC_CTRL_ADD - Error: Invalid argument
    mapping control for Pan (relative)
    UVCIOC_CTRL_MAP - Error: Invalid argument
    mapping control for Tilt (relative)
    UVCIOC_CTRL_MAP - Error: Invalid argument
    mapping control for Pan Reset
    UVCIOC_CTRL_MAP - Error: Invalid argument
    mapping control for Tilt Reset
    UVCIOC_CTRL_MAP - Error: Invalid argument
    mapping control for Pan/tilt Reset
    UVCIOC_CTRL_MAP - Error: Invalid argument
    mapping control for Focus (absolute)
    UVCIOC_CTRL_MAP - Error: Invalid argument
    mapping control for LED1 Mode
    UVCIOC_CTRL_MAP - Error: Invalid argument
    mapping control for LED1 Frequency
    UVCIOC_CTRL_MAP - Error: Invalid argument
    mapping control for Disable video processing
    UVCIOC_CTRL_MAP - Error: Invalid argument
    mapping control for Raw bits per pixel
    UVCIOC_CTRL_MAP - Error: Invalid argument
    o: www-folder-path…: ./www/
    o: HTTP TCP port…..: 8090
    o: username:password.: disabled
    o: commands……….: enabled

    I can see the stream at http://192.168.0.209:8090/?action=stream and change the controls in the web interface http://192.168.0.209:8090/control.htm with

    no problem.

    http://tinypic.com/r/33nckjp/5

    However when I change the camera to a LogiTech 920
    ./mjpg_streamer -i "input_uvc.so -d /dev/video0 -r 1280x720 -f 5" -o "output_http.so -w ./www -p 8090"

    root@beaglebone:~/mjpg-streamer# ./mjpg_streamer -i "input_uvc.so -d /dev/video0 -r 1280x720 -f 5" -o "output_http.so -w ./www -p 8090"
    MJPG Streamer Version: svn rev:
    i: Using V4L2 device.: /dev/video0
    i: Desired Resolution: 1280 x 720
    i: Frames Per Second.: 5
    i: Format…………: MJPEG
    Adding control for Pan (relative)
    UVCIOC_CTRL_ADD - Error: Invalid argument
    Adding control for Tilt (relative)
    UVCIOC_CTRL_ADD - Error: Invalid argument
    Adding control for Pan Reset
    UVCIOC_CTRL_ADD - Error: Invalid argument
    Adding control for Tilt Reset
    UVCIOC_CTRL_ADD - Error: Invalid argument
    Adding control for Pan/tilt Reset
    UVCIOC_CTRL_ADD - Error: Invalid argument
    Adding control for Focus (absolute)
    UVCIOC_CTRL_ADD - Error: Invalid argument
    mapping control for Pan (relative)
    UVCIOC_CTRL_MAP - Error: Invalid argument
    mapping control for Tilt (relative)
    UVCIOC_CTRL_MAP - Error: Invalid argument
    mapping control for Pan Reset
    UVCIOC_CTRL_MAP - Error: Invalid argument
    mapping control for Tilt Reset
    UVCIOC_CTRL_MAP - Error: Invalid argument
    mapping control for Pan/tilt Reset
    UVCIOC_CTRL_MAP - Error: Invalid argument
    mapping control for Focus (absolute)
    UVCIOC_CTRL_MAP - Error: Invalid argument
    mapping control for LED1 Mode
    UVCIOC_CTRL_MAP - Error: Invalid argument
    mapping control for LED1 Frequency
    UVCIOC_CTRL_MAP - Error: Invalid argument
    mapping control for Disable video processing
    UVCIOC_CTRL_MAP - Error: Invalid argument
    mapping control for Raw bits per pixel
    UVCIOC_CTRL_MAP - Error: Invalid argument
    o: www-folder-path…: ./www/
    o: HTTP TCP port…..: 8090
    o: username:password.: disabled
    o: commands……….: enabled

    I can see the direct stream http://192.168.0.209:8090/?action=stream with no problems
    but I cannot access the controls in the web interface http://192.168.0.209:8090/control.htm.

    http://tinypic.com/r/25knbly/5

    Does anyone have any ideas what this could be ?

    Thanks in advance for your time (and patience).

    Best,

    Kenneth

     
  • Márton Miklós

    Márton Miklós - 2012-03-26

    Hey,

    Could you please show me the contents of the http://192.168.0.209:8090/input_0.json.
    Also please check the page load with firebug if possible for errors/warnings.

    Regards,
    Miklós

     
  • Márton Miklós

    Márton Miklós - 2012-03-26

    And I have forgotten the most easy and obvious thing: if you have a desktop Linux box please install the v4l2ucp and check that it shows the controls.

     
  • madrugado

    madrugado - 2013-02-12

    Hello martonmiklos.

    I have the same errors as paradigm2012 and since he didn't post his input_0.json I'll post mine, may be it would be useful:

    {
    "controls": [
    {
    "name": "Brightness",
    "id": "9963776",
    "type": "1",
    "min": "0",
    "max": "255",
    "step": "1",
    "default": "128",
    "value": "128",
    "dest": "0",
    "flags": "0",
    "group": "1"
    },
    {
    "name": "Contrast",
    "id": "9963777",
    "type": "1",
    "min": "0",
    "max": "255",
    "step": "1",
    "default": "128",
    "value": "128",
    "dest": "0",
    "flags": "0",
    "group": "1"
    },
    {
    "name": "Saturation",
    "id": "9963778",
    "type": "1",
    "min": "0",
    "max": "255",
    "step": "1",
    "default": "128",
    "value": "128",
    "dest": "0",
    "flags": "0",
    "group": "1"
    },
    {
    "name": "White Balance Temperature, Auto",
    "id": "9963788",
    "type": "2",
    "min": "0",
    "max": "1",
    "step": "1",
    "default": "1",
    "value": "1",
    "dest": "0",
    "flags": "0",
    "group": "1"
    },
    {
    "name": "Gain",
    "id": "9963795",
    "type": "1",
    "min": "0",
    "max": "255",
    "step": "1",
    "default": "0",
    "value": "3",
    "dest": "0",
    "flags": "0",
    "group": "1"
    },
    {
    "name": "Power Line Frequency",
    "id": "9963800",
    "type": "3",
    "min": "0",
    "max": "2",
    "step": "1",
    "default": "2",
    "value": "2",
    "dest": "0",
    "flags": "0",
    "group": "1",
    "menu": {"0": "Disabled", "1": "50 Hz", "2": "60 Hz"}
    },
    {
    "name": "White Balance Temperature",
    "id": "9963802",
    "type": "1",
    "min": "2000",
    "max": "6500",
    "step": "1",
    "default": "4000",
    "value": "4336",
    "dest": "0",
    "flags": "16",
    "group": "1"
    },
    {
    "name": "Sharpness",
    "id": "9963803",
    "type": "1",
    "min": "0",
    "max": "255",
    "step": "1",
    "default": "128",
    "value": "128",
    "dest": "0",
    "flags": "0",
    "group": "1"
    },
    {
    "name": "Backlight Compensation",
    "id": "9963804",
    "type": "1",
    "min": "0",
    "max": "1",
    "step": "1",
    "default": "0",
    "value": "0",
    "dest": "0",
    "flags": "0",
    "group": "1"
    },
    {
    "name": "Exposure, Auto",
    "id": "10094849",
    "type": "3",
    "min": "0",
    "max": "3",
    "step": "1",
    "default": "3",
    "value": "3",
    "dest": "0",
    "flags": "0",
    "group": "1",
    "menu": {"0": "X½`[", "1": "Manual Mode", "2": "", "3": "Aperture Priority Mode"}
    },
    {
    "name": "Exposure (Absolute)",
    "id": "10094850",
    "type": "1",
    "min": "3",
    "max": "2047",
    "step": "1",
    "default": "250",
    "value": "333",
    "dest": "0",
    "flags": "16",
    "group": "1"
    },
    {
    "name": "Exposure, Auto Priority",
    "id": "10094851",
    "type": "2",
    "min": "0",
    "max": "1",
    "step": "1",
    "default": "0",
    "value": "1",
    "dest": "0",
    "flags": "0",
    "group": "1"
    },
    {
    "name": "Pan (Absolute)",
    "id": "10094856",
    "type": "1",
    "min": "-36000",
    "max": "36000",
    "step": "3600",
    "default": "0",
    "value": "0",
    "dest": "0",
    "flags": "0",
    "group": "1"
    },
    {
    "name": "Tilt (Absolute)",
    "id": "10094857",
    "type": "1",
    "min": "-36000",
    "max": "36000",
    "step": "3600",
    "default": "0",
    "value": "0",
    "dest": "0",
    "flags": "0",
    "group": "1"
    },
    {
    "name": "Focus (absolute)",
    "id": "10094858",
    "type": "1",
    "min": "0",
    "max": "250",
    "step": "5",
    "default": "0",
    "value": "0",
    "dest": "0",
    "flags": "16",
    "group": "1"
    },
    {
    "name": "Focus, Auto",
    "id": "10094860",
    "type": "2",
    "min": "0",
    "max": "1",
    "step": "1",
    "default": "1",
    "value": "1",
    "dest": "0",
    "flags": "0",
    "group": "1"
    },
    {
    "name": "Zoom, Absolute",
    "id": "10094861",
    "type": "1",
    "min": "100",
    "max": "500",
    "step": "1",
    "default": "100",
    "value": "100",
    "dest": "0",
    "flags": "0",
    "group": "1"
    },
    {
    "name": "JPEG quality",
    "id": "1",
    "type": "1",
    "min": "0",
    "max": "100",
    "step": "1",
    "default": "50",
    "value": "0",
    "dest": "0",
    "flags": "0",
    "group": "3"
    }
    ]
    }
    

    Best Regards,
    Val

    P.S. I've v4l2ucp installed, while starting it shows two msgs:

    Unable to get menu item for Exposure, Auto, index=0
    Will use Unknown

    and

    Unable to get menu item for Exposure, Auto, index=2
    Will use Unknown

     
  • Márton Miklós

    Márton Miklós - 2013-02-12

    Which version do you use. The last revision of the experimental should drop every nonprintable character from the json.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks