1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

RPi + LibreELEC External Grabber Error 2

Discussion in 'Hardware Support' started by Mitch7391, 2 January 2019.

  1. Mitch7391

    Mitch7391 New Member

    Messages:
    21
    Hardware:
    RPi3
    Hey everyone, I have been using this project on my raspberry pi for the last few years with little issues and have finally gone down the route of using a video grabber for my other devices. I have the Easycap USBTV007 chipset and Hyperion just seems to throw Error 2 every time I try to start Hyperion using it. But if I change my condo back to use the internal grabber, then my lights work fine. Is there a step I may have missed or something I should try? Thanks in advance!
     
  2. Mitch7391

    Mitch7391 New Member

    Messages:
    21
    Hardware:
    RPi3
    I have tried lsusb command and this is what I get, does this mean the seller sold me a fake USBTV007?

    Bus 001 Device 004: ID 534d:0021

    Devices 001, 002 and 003 seem to show microsystems corp and Linux foundation. However I’m not seeing USBTV007 pop up like others do. Any help or suggestions would be greatly appreciated.
     
  3. Mitch7391

    Mitch7391 New Member

    Messages:
    21
    Hardware:
    RPi3
    I have also tried the the command ‘ ls -lh /dev/ ‘ and cannot find video0 in the outputted list. Does all of this mean perhaps Iv been sold a fake USBTV007?
     
  4. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,038
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    sometimes the power supply is to low... has yours more then 2 amp?
     
  5. Mitch7391

    Mitch7391 New Member

    Messages:
    21
    Hardware:
    RPi3
    Thanks TPmodding for the reply :) I am fairly certain my supply is a 2.5A and I have activated max usb current in my raspberry pi config.
     
  6. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,038
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    can you post a screenshot from "lsusb"
     
  7. Mitch7391

    Mitch7391 New Member

    Messages:
    21
    Hardware:
    RPi3
  8. Mitch7391

    Mitch7391 New Member

    Messages:
    21
    Hardware:
    RPi3
  9. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,038
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
  10. Mitch7391

    Mitch7391 New Member

    Messages:
    21
    Hardware:
    RPi3
    Ok I am glad to hear it is not something I have done wrong :) will keep trying other grabbers! Thanks for your help TPmodding.
     
  11. kwiattek

    kwiattek New Member

    Messages:
    2
    Hardware:
    RPi1/Zero
    did you try plugging grabber on the PC ?
    if PC recognises it than you may have power issue try sending 5v directly from external PSU to USB port similar to this :

    GRYED.jpg
     
  12. Mitch7391

    Mitch7391 New Member

    Messages:
    21
    Hardware:
    RPi3
    So I finally got hold of another Easycap and it would seem this one is a real one and the last one was a fake or faulty. I can now see this when it is plugged in.
    upload_2019-1-29_10-58-19.png
     
  13. Mitch7391

    Mitch7391 New Member

    Messages:
    21
    Hardware:
    RPi3
    I can also see video0 in the list when I issue the command 'ls -lh /dev/'; which is another good sign. However since changing the config to use the grabber, now I receive the following error constantly, even if I revert the config back to use the internal grabber. Which is odd as HyperCon is generating the config itself, so how would it be creating a syntax error through auto generation? I would expect this sort of error if I had put the config together myself.

    upload_2019-1-29_11-1-56.png
     
  14. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,038
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    config please
     
  15. Mitch7391

    Mitch7391 New Member

    Messages:
    21
    Hardware:
    RPi3
    Code:
    // Automatically generated configuration file for Hyperion ambilight daemon
    // Notice: All values are explained with comments at our wiki: wiki.hyperion-project.org (config area)
    // Generated by: HyperCon (The Hyperion deamon configuration file builder)
    // Created with HyperCon V1.03.3 (22.10.2017)
    
    {
        // DEVICE CONFIGURATION
        "device" :
        {
            "name"       : "MyHyperionConfig",
            "type"       : "apa102",
            "output"     : "/dev/spidev0.0",
            "rate"     : 1000000,
            "colorOrder" : "bgr"
        },
    
        // COLOR CALIBRATION CONFIG
        "color" :
        {
            "channelAdjustment" :
            [
                {
                    "id"   : "default",
                    "leds" : "*",
                    "pureRed" :
                    {
                        "redChannel"        : 175,
                        "greenChannel"        : 10,
                        "blueChannel"        : 5
                    },
                    "pureGreen" :
                    {
                        "redChannel"        : 75,
                        "greenChannel"        : 150,
                        "blueChannel"        : 0
                    },
                    "pureBlue" :
                    {
                        "redChannel"        : 20,
                        "greenChannel"        : 0,
                        "blueChannel"        : 150
                    }
                }
            ],
            "temperature" :
            [
                {
                    "id"   : "default",
                    "leds" : "*",
                    "correctionValues" :
                    {
                        "red"     : 150,
                        "green"    : 150,
                        "blue"     : 150
                    }
                }
            ],
            "transform" :
            [
                {
                    "id"   : "default",
                    "leds" : "*",
                    "hsl" :
                    {
                        "saturationGain"    : 1.0000,
                        "luminanceGain"        : 1.0000,
                        "luminanceMinimum"        : 0.0000
                    },
                    "red" :
                    {
                        "threshold"     : 0.0000,
                        "gamma"         : 2.9000
                    },
                    "green" :
                    {
                        "threshold"     : 0.0000,
                        "gamma"         : 3.0000
                    },
                    "blue" :
                    {
                        "threshold"     : 0.0000,
                        "gamma"         : 3.0000
                    }
                }
            ],
        // SMOOTHING CONFIG
            "smoothing" :
            {
                "type"            : "linear",
                "time_ms"         : 200,
                "updateFrequency" : 30.0000,
                "updateDelay"     : 0
            }
        },
    
        // V4L2 GRABBER CONFIG
        "grabber-v4l2" :
        {
            "device" : "/dev/video0",
            "input" : 0,
            "standard" : "PAL",
            "width" : -1,
            "height" : -1,
            "frameDecimation" : 2,
            "sizeDecimation" : 4,
            "priority" : 800,
            "mode" : "2D",
            "cropLeft" : 6,
            "cropRight" : 6,
            "cropTop" : 2,
            "cropBottom" : 2,
            "redSignalThreshold" : 0.1,
            "greenSignalThreshold" : 0.1,
            "blueSignalThreshold" : 0.1
        },
    
        // BLACKBORDER CONFIG
        "blackborderdetector" :
        {
            "enable" : true,
            "threshold" : 0.1,
            "unknownFrameCnt" : 600,
            "borderFrameCnt" : 50,
            "maxInconsistentCnt" : 10,
            "blurRemoveCnt" : 1,
            "mode" : "default"
        },
    
        // BOOTEFFECT CONFIG
        "bootsequence" :
        {
            "color" : [0,0,0],
            "effect" : "Rainbow swirl fast",
            "duration_ms" : 3000,
            "priority" : 700
        },
    
        // JSON SERVER CONFIG
        "jsonServer" :
        {
            "port" : 19444
        },
    
        // PROTO SERVER CONFIG
        "protoServer" :
        {
            "port" : 19445
        },
    
        // EFFECT PATH
        "effects" :
        {
            "paths" :
            [
                "/storage/hyperion/effects",
                "/usr/share/hyperion/effects"
            ]
        },
    
        // NO FRAME GRABBER CONFIG
        // NO KODI CHECK CONFIG
        // NO BOBLIGHT SERVER CONFIG
        // NO JSON/PROTO FORWARD CONFIG
    
        // LED CONFIGURATION
        "leds" :
        [
            {
                "index" : 0,
                "hscan" : { "minimum" : 0.9855, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.9500, "maximum" : 1.0000 }
            },
            {
                "index" : 1,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.9750, "maximum" : 1.0000 }
            },
            {
                "index" : 2,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.9523, "maximum" : 0.9795 }
            },
            {
                "index" : 3,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.9295, "maximum" : 0.9568 }
            },
            {
                "index" : 4,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.9068, "maximum" : 0.9341 }
            },
            {
                "index" : 5,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.8841, "maximum" : 0.9114 }
            },
            {
                "index" : 6,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.8614, "maximum" : 0.8886 }
            },
            {
                "index" : 7,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.8386, "maximum" : 0.8659 }
            },
            {
                "index" : 8,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.8159, "maximum" : 0.8432 }
            },
            {
                "index" : 9,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.7932, "maximum" : 0.8205 }
            },
            {
                "index" : 10,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.7705, "maximum" : 0.7977 }
            },
            {
                "index" : 11,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.7477, "maximum" : 0.7750 }
            },
            {
                "index" : 12,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.7250, "maximum" : 0.7523 }
            },
            {
                "index" : 13,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.7023, "maximum" : 0.7295 }
            },
            {
                "index" : 14,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.6795, "maximum" : 0.7068 }
            },
            {
                "index" : 15,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.6568, "maximum" : 0.6841 }
            },
            {
                "index" : 16,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.6341, "maximum" : 0.6614 }
            },
            {
                "index" : 17,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.6114, "maximum" : 0.6386 }
            },
            {
                "index" : 18,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.5886, "maximum" : 0.6159 }
            },
            {
                "index" : 19,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.5659, "maximum" : 0.5932 }
            },
            {
                "index" : 20,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.5432, "maximum" : 0.5705 }
            },
            {
                "index" : 21,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.5205, "maximum" : 0.5477 }
            },
            {
                "index" : 22,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.4977, "maximum" : 0.5250 }
            },
            {
                "index" : 23,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.4750, "maximum" : 0.5023 }
            },
            {
                "index" : 24,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.4523, "maximum" : 0.4795 }
            },
            {
                "index" : 25,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.4295, "maximum" : 0.4568 }
            },
            {
                "index" : 26,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.4068, "maximum" : 0.4341 }
            },
            {
                "index" : 27,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.3841, "maximum" : 0.4114 }
            },
            {
                "index" : 28,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.3614, "maximum" : 0.3886 }
            },
            {
                "index" : 29,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.3386, "maximum" : 0.3659 }
            },
            {
                "index" : 30,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.3159, "maximum" : 0.3432 }
            },
            {
                "index" : 31,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.2932, "maximum" : 0.3205 }
            },
            {
                "index" : 32,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.2705, "maximum" : 0.2977 }
            },
            {
                "index" : 33,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.2477, "maximum" : 0.2750 }
            },
            {
                "index" : 34,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.2250, "maximum" : 0.2523 }
            },
            {
                "index" : 35,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.2023, "maximum" : 0.2295 }
            },
            {
                "index" : 36,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.1795, "maximum" : 0.2068 }
            },
            {
                "index" : 37,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.1568, "maximum" : 0.1841 }
            },
            {
                "index" : 38,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.1341, "maximum" : 0.1614 }
            },
            {
                "index" : 39,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.1114, "maximum" : 0.1386 }
            },
            {
                "index" : 40,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0886, "maximum" : 0.1159 }
            },
            {
                "index" : 41,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0659, "maximum" : 0.0932 }
            },
            {
                "index" : 42,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0432, "maximum" : 0.0705 }
            },
            {
                "index" : 43,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0205, "maximum" : 0.0477 }
            },
            {
                "index" : 44,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0250 }
            },
            {
                "index" : 45,
                "hscan" : { "minimum" : 0.9855, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
            },
            {
                "index" : 46,
                "hscan" : { "minimum" : 0.9724, "maximum" : 0.9882 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
            },
            {
                "index" : 47,
                "hscan" : { "minimum" : 0.9592, "maximum" : 0.9750 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
            },
            {
                "index" : 48,
                "hscan" : { "minimum" : 0.9461, "maximum" : 0.9618 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
            },
            {
                "index" : 49,
                "hscan" : { "minimum" : 0.9329, "maximum" : 0.9487 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
            },
            {
                "index" : 50,
                "hscan" : { "minimum" : 0.9197, "maximum" : 0.9355 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
            },
            {
                "index" : 51,
                "hscan" : { "minimum" : 0.9066, "maximum" : 0.9224 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
            },
            {
                "index" : 52,
                "hscan" : { "minimum" : 0.8934, "maximum" : 0.9092 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
            },
            {
                "index" : 53,
                "hscan" : { "minimum" : 0.8803, "maximum" : 0.8961 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
            },
            {
                "index" : 54,
                "hscan" : { "minimum" : 0.8671, "maximum" : 0.8829 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
            },
            {
                "index" : 55,
                "hscan" : { "minimum" : 0.8539, "maximum" : 0.8697 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
            },
            {
                "index" : 56,
                "hscan" : { "minimum" : 0.8408, "maximum" : 0.8566 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
            },
            {
                "index" : 57,
                "hscan" : { "minimum" : 0.8276, "maximum" : 0.8434 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
            },
            {
                "index" : 58,
                "hscan" : { "minimum" : 0.8145, "maximum" : 0.8303 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
            },
            {
                "index" : 59,
                "hscan" : { "minimum" : 0.8013, "maximum" : 0.8171 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
            },
            {
                "index" : 60,
                "hscan" : { "minimum" : 0.7882, "maximum" : 0.8039 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
            },
            {
                "index" : 61,
                "hscan" : { "minimum" : 0.7750, "maximum" : 0.7908 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
            },
            {
                "index" : 62,
                "hscan" : { "minimum" : 0.7618, "maximum" : 0.7776 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
            },
            {
                "index" : 63,
                "hscan" : { "minimum" : 0.7487, "maximum" : 0.7645 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
            },
            {
                "index" : 64,
                "hscan" : { "minimum" : 0.7355, "maximum" : 0.7513 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
            },
            {
                "index" : 65,
                "hscan" : { "minimum" : 0.7224, "maximum" : 0.7382 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
            },
            {
                "index" : 66,
                "hscan" : { "minimum" : 0.7092, "maximum" : 0.7250 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0500 }
            },
            {
                "index" : 67,
                "hscan" : { "minimum" : 0.6961, "maximum" : 0.7118 },
     
  16. Mitch7391

    Mitch7391 New Member

    Messages:
    21
    Hardware:
    RPi3
    Sorry TPmodding, I should thought ahead, I hope I have attached that correctly.
     
  17. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,038
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    this is the whole config?
     
  18. Paulchen-Panther

    Paulchen-Panther Active Member Developer

    Messages:
    157
    Please check your config here for validation.
     
  19. Mitch7391

    Mitch7391 New Member

    Messages:
    21
    Hardware:
    RPi3
    Apparently it is my whole config? Unless I am accessing it wrong.
     
  20. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    1,038
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino, +nodeMCU/ESP8266
    it stops in the middle of your led settings?

    {
    "index" : 67,
    "hscan" : { "minimum" : 0.6961, "maximum" : 0.7118 },

    do you have only 68 leds?