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

SOLVED Hyperion NG no colors over USB grabber

Discussion in 'Software Support' started by FaserF, 22 February 2020.

  1. FaserF

    FaserF New Member

    Messages:
    15
    Hardware:
    RPi1/Zero, RPi3, +Arduino
    Hi all,
    I am using Hyperion NG V2 Alpha 2 on my Raspberry 1B. I have now successfully configured everything. Sadly I have no colors over the USB grabber, only white. But when I start effects or only some colors it works with the exact color.
    Here is a picture what Hyperion is getting over the USB grabber:
    upload_2020-2-22_11-42-30.png

    I was running the same setup with the old hyperion and it worked with colors before.

    Part of my Hyperion NG config (full one is attached):
    Code:
    {
    "backgroundEffect": {
    "color": [
    255,
    138,
    0
    ],
    "effect": "Warm mood blobs",
    "enable": true,
    "type": "effect"
    },
    "blackborderdetector": {
    "blurRemoveCnt": 1,
    "borderFrameCnt": 50,
    "enable": true,
    "maxInconsistentCnt": 10,
    "mode": "default",
    "threshold": 5,
    "unknownFrameCnt": 600
    },
    "boblightServer": {
    "enable": false,
    "port": 19333,
    "priority": 128
    },
    "color": {
    "channelAdjustment": [
    {
    "backlightColored": false,
    "backlightThreshold": 0,
    "blue": [
    0,
    0,
    255
    ],
    "brightness": 100,
    "brightnessCompensation": 100,
    "cyan": [
    0,
    255,
    255
    ],
    "gammaBlue": 1.5,
    "gammaGreen": 1.5,
    "gammaRed": 1.5,
    "green": [
    0,
    255,
    0
    ],
    "id": "default",
    "leds": "*",
    "magenta": [
    255,
    0,
    255
    ],
    "red": [
    255,
    0,
    0
    ],
    "white": [
    255,
    255,
    255
    ],
    "yellow": [
    255,
    255,
    0
    ]
    }
    ],
    "imageToLedMappingType": "multicolor_mean"
    },
    "device": {
    "colorOrder": "grb",
    "dma": 5,
    "gpio": 18,
    "hardwareLedCount": 1,
    "invert": false,
    "latchTime": 1,
    "leds": 135,
    "pwmchannel": 0,
    "rewriteTime": 5000,
    "rgbw": false,
    "type": "ws281x",
    "whiteAlgorithm": "subtract_minimum"
    },
    "effects": {
    "disable": [
    ""
    ],
    "paths": [
    "$ROOT/custom-effects"
    ]
    },
    "flatbufServer": {
    "enable": true,
    "port": 19400,
    "timeout": 5
    },
    "foregroundEffect": {
    "color": [
    0,
    0,
    255
    ],
    "duration_ms": 3000,
    "effect": "Rainbow swirl",
    "enable": false,
    "type": "effect"
    },
    "forwarder": {
    "enable": false,
    "flat": [
    "127.0.0.1:19401"
    ],
    "json": [
    "127.0.0.1:19446"
    ]
    },
    "framegrabber": {
    "cropBottom": 0,
    "cropLeft": 0,
    "cropRight": 0,
    "cropTop": 0,
    "device": "/dev/fb0",
    "frequency_Hz": 30,
    "height": 45,
    "pixelDecimation": 8,
    "type": "framebuffer",
    "width": 80
    },
    "general": {
    "name": "TV WS281X",
    "showOptHelp": true,
    "watchedVersionBranch": "Stable"
    },
    "grabberV4L2": {
    "blueSignalThreshold": 1,
    "cropBottom": 0,
    "cropLeft": 0,
    "cropRight": 0,
    "cropTop": 0,
    "device": "/dev/video0",
    "greenSignalThreshold": 1,
    "redSignalThreshold": 1,
    "sDHOffsetMax": 0.75,
    "sDHOffsetMin": 0.25,
    "sDVOffsetMax": 0.75,
    "sDVOffsetMin": 0.25,
    "signalDetection": true,
    "sizeDecimation": 4,
    "standard": "PAL"
    },
    "instCapture": {
    "systemEnable": false,
    "systemPriority": 250,
    "v4lEnable": true,
    "v4lPriority": 180
    },
    "jsonServer": {
    "port": 19444
    },
    "ledConfig": {
    "bottom": 0,
    "edgegap": 0,
    "glength": 0,
    "gpos": 0,
    "hdepth": 8,
    "left": 35,
    "overlap": 0,
    "position": 100,
    "reverse": true,
    "right": 35,
    "top": 65,
    "vdepth": 5
    }, [...] 
    Part of my old hyperion config (full one is attached):
    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" : "TV WS281X",
    "type" : "ws281x",
    "leds" : 135,
    "colorOrder" : "grb"
    },
    
    // COLOR CALIBRATION CONFIG
    "color" :
    {
    "channelAdjustment" :
    [
    {
    "id" : "default",
    "leds" : "*",
    "pureRed" :
    {
    "redChannel" : 255,
    "greenChannel" : 0,
    "blueChannel" : 0
    },
    "pureGreen" :
    {
    "redChannel" : 0,
    "greenChannel" : 255,
    "blueChannel" : 0
    },
    "pureBlue" :
    {
    "redChannel" : 0,
    "greenChannel" : 0,
    "blueChannel" : 255
    }
    }
    ],
    "temperature" :
    [
    {
    "id" : "default",
    "leds" : "*",
    "correctionValues" :
    {
    "red" : 255,
    "green" : 255,
    "blue" : 255
    }
    }
    ],
    "transform" :
    [
    {
    "id" : "default",
    "leds" : "*",
    "hsl" :
    {
    "saturationGain" : 1.0000,
    "luminanceGain" : 1.0000,
    "luminanceMinimum" : 0.0000
    },
    "red" :
    {
    "threshold" : 0.0000,
    "gamma" : 2.5000
    },
    "green" :
    {
    "threshold" : 0.0000,
    "gamma" : 2.5000
    },
    "blue" :
    {
    "threshold" : 0.0000,
    "gamma" : 2.5000
    }
    }
    ],
    // SMOOTHING CONFIG
    "smoothing" :
    {
    "type" : "linear",
    "time_ms" : 200,
    "updateFrequency" : 25.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" : 0,
    "cropRight" : 0,
    "cropTop" : 0,
    "cropBottom" : 0,
    "redSignalThreshold" : 0.1,
    "greenSignalThreshold" : 0.1,
    "blueSignalThreshold" : 0.1
    },
    
    // BLACKBORDER CONFIG
    "blackborderdetector" :
    {
    "enable" : true,
    "threshold" : 0.14,
    "unknownFrameCnt" : 600,
    "borderFrameCnt" : 50,
    "maxInconsistentCnt" : 10,
    "blurRemoveCnt" : 1,
    "mode" : "default"
    },
    
    // BOOTEFFECT CONFIG
    "bootsequence" :
    {
    "color" : [0,0,0],
    "effect" : "Rainbow swirl fast",
    "duration_ms" : 3500,
    "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
    
     

    Attached Files:

  2. GnaGetier

    GnaGetier Member

    Messages:
    38
    Hardware:
    RPi3, +Arduino
    Hi,

    what hardware and input material are you using?

    What result is proived by the following commands?
    Code:
    $ v4l2-ctl -d /dev/video0 --list-formats-ext
    and
    Code:
    $ v4l2-ctl --list-ctrls
    Regards
     
  3. Noret

    Noret New Member

    Messages:
    13
    Hardware:
    RPi3
    Check if you have the Right Codec in the Web Interface (PAL etc.)
     
    • Like Like x 1
  4. FaserF

    FaserF New Member

    Messages:
    15
    Hardware:
    RPi1/Zero, RPi3, +Arduino
    By the way, I have now upgraded my raspi 1B with a 3B with a fresh new installation and the result is the same.

    @GnaGetier here is the output:

    Code:
    [email protected]:~# v4l2-ctl -d /dev/video0 --list-formats-ext
    ioctl: VIDIOC_ENUM_FMT
            Type: Video Capture
            [0]: 'YUYV' (YUYV 4:2:2)
    [email protected]:~# v4l2-ctl --list-ctrls
    User Controls
                         brightness 0x00980900 (int)    : min=0 max=1023 step=1 default=448 value=448 flags=slider
                           contrast 0x00980901 (int)    : min=0 max=1023 step=1 default=464 value=464 flags=slider
                         saturation 0x00980902 (int)    : min=0 max=1023 step=1 default=512 value=512 flags=slider
                                hue 0x00980903 (int)    : min=-3583 max=3583 step=1 default=0 value=0 flags=slider
                          sharpness 0x0098091b (int)    : min=0 max=255 step=1 default=96 value=96 flags=slider
    
    
    @Noret PAL settings are definitly correct :( I am already using the old hyperion and there it works great with colors. On hyperion NG i tried to apply my settings similar.
     
  5. GnaGetier

    GnaGetier Member

    Messages:
    38
    Hardware:
    RPi3, +Arduino
    So no saturation settings problem.

    Did you migrate from hyperion to NG on the same pi installation? I'm not an expert but to my understanding the live video should not be affected by hyperion if the image and pixel format is correct. So hyperion.ng should receive the same image feed on the same installation.

    Am I right, anyone?

    Unfortunately I don't know anything else you could look for.

    Regards
     
  6. Paulchen-Panther

    Paulchen-Panther Active Member Developer

    Messages:
    537
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino
    'lsusb' output please!
    Thanks.
     
  7. burnmaster007

    burnmaster007 New Member

    Messages:
    3
    Hardware:
    RPi2, RPi3
    Hello, I have exactly the same problem.

    Naamloos.png

    Here is my output

    Code:
    /home/pi/hyperion$ v4l2-ctl -d /dev/video0 --list-formats-ext
    ioctl: VIDIOC_ENUM_FMT
        Type: Video Capture
    
        [0]: 'YUYV' (YUYV 4:2:2)
    /home/pi/hyperion$ v4l2-ctl --list-ctrls
    
    User Controls
    
                         brightness 0x00980900 (int)    : min=0 max=1023 step=1 default=448 value=448 flags=slider
                           contrast 0x00980901 (int)    : min=0 max=1023 step=1 default=464 value=464 flags=slider
                         saturation 0x00980902 (int)    : min=0 max=1023 step=1 default=512 value=512 flags=slider
                                hue 0x00980903 (int)    : min=-3583 max=3583 step=1 default=0 value=0 flags=slider
                          sharpness 0x0098091b (int)    : min=0 max=255 step=1 default=96 value=96 flags=slider
    /home/pi/hyperion$ lsusb
    Bus 001 Device 004: ID 1b71:3002 Fushicai USBTV007 Video Grabber [EasyCAP]
    Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
    Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    
    Regards
     
  8. Paulchen-Panther

    Paulchen-Panther Active Member Developer

    Messages:
    537
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino
    I'll have a look at it
     
  9. burnmaster007

    burnmaster007 New Member

    Messages:
    3
    Hardware:
    RPi2, RPi3
    Hello Paulchen, i did a upgrade to Hyperion 2.0.0-alpha.3 on a new Rpi 4.
    But i still have the same problems.
    Do you maybe have any idea?
    Regards
     
  10. FaserF

    FaserF New Member

    Messages:
    15
    Hardware:
    RPi1/Zero, RPi3, +Arduino
    Sorry for the late reply, here is my output:

    Code:
    Bus 001 Device 004: ID 1b71:3002 Fushicai USBTV007 Video Grabber [EasyCAP]
    Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
    Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
     
  11. burnmaster007

    burnmaster007 New Member

    Messages:
    3
    Hardware:
    RPi2, RPi3
    I found out that when i put the "hdmi to AV scaler" and the "USB cature video standaard" settings to NTSC everything is working fine.

    Naamloos.png
     
    • Like Like x 1
  12. FaserF

    FaserF New Member

    Messages:
    15
    Hardware:
    RPi1/Zero, RPi3, +Arduino
    Thanks for the information, seems to fixed my issue also.
    The only issue that is left for me, is that after setting up Hyperion as a service in debian I get an error in my browser after starting the raspberry pi: 404 - Requested file: index.html

    After restarting then the service over the terminal it works fine.
     
    Last edited: 12 March 2020