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

RPi + OpenELEC Strange video corruption from screen grabber

Discussion in 'Hardware Support' started by Timboflex, 4 May 2018.

  1. Timboflex

    Timboflex New Member

    Messages:
    3
    Hardware:
    RPi3, +Arduino
    First off sorry if this is in the wrong place. I thought about posting it in Software Support, but I think the problem is likely a hardware issue.

    I've recently finished setting up Hyperion with a Raspberry Pi 3 and Arduino Uno. Unfortunately while everything works mostly ok, I noticed a lot of strange colors (mostly green) when playing games or watching videos through the ambilight system. I decided to get a couple screengrabs to see what was being sent to the LEDs, and I discovered a lot of really weird video corruption as displayed in the attached screenshots.

    Has anyone had this experience or have suggestions? I couldn't seem to find any similar problems from searching the forums.

    Everything works normally aside from this, and in fact many games/movies it's barely noticeable, but in some it's pretty extreme.

    Hardware configuration:
    • 5v 10A power supply powers LED strip, Raspberry Pi 3 (I/O pins), Arduino Uno (header pins), HDMI2AV Converter, and HDMI Splitter with power distribution board
    • Signal in from PS4 to REI HDMI Splitter
    • HDMI signal to TV and to converter (NTSC mode)
    • Converter RCA to screengrabber
    • Screengrabber plugged into RPi on it's own USB module
    • USB of RPi to Arduino
    • Data pin of Arduino to LED strip

    I've included some screenshots of the screengrabs as well as a couple pictures of the setup. If more is needed I can provide then as well (forgive the mess of the enclosure. That's not the final configuration. It's just a mess from troubleshooting).

    Also, here is my config file just in case (Left out the LED section so it's not too long):

    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"       : "adalight",
            "output"     : "/dev/ttyACM0",
            "rate"     : 500000,
            "delayAfterConnect"     : 0,
            "colorOrder" : "rgb"
        },
    
        // 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"         : 100,
                "updateFrequency" : 20.0000,
                "updateDelay"     : 0
            }
        },
    
        // V4L2 GRABBER CONFIG
       
        /// * device : V4L2 Device to use [default="/dev/video0"]
    
        /// * input : V4L2 input to use [default=0]
    
        /// * standard : Video standard (no-change/PAL/NTSC) [default="no-change"]
    
        /// * width : V4L2 width to set [default=-1]
    
        /// * height : V4L2 height to set [default=-1]
    
        /// * frameDecimation : Frame decimation factor [default=2]
    
        /// * sizeDecimation : Size decimation factor [default=8]
    
        /// * priority : Hyperion priority channel [default=800]
    
        /// * mode : 3D mode to use 2D/3DSBS/3DTAB (note: no autodetection) [default="2D"]
    
        /// * cropLeft : Cropping from the left [default=0]
    
        /// * cropRight : Cropping from the right [default=0]
    
        /// * cropTop : Cropping from the top [default=0]
    
        /// * cropBottom : Cropping from the bottom [default=0]
    
        /// * redSignalThreshold : Signal threshold for the red channel between 0.0 and 1.0 [default=0.0]
    
        /// * greenSignalThreshold : Signal threshold for the green channel between 0.0 and 1.0 [default=0.0]
    
        /// * blueSignalThreshold : Signal threshold for the blue channel between 0.0 and 1.0 [default=0.0]
    
    
        "grabber-v4l2" :
        {
            "device" : "/dev/video0",
            "input" : 0,
            "standard" : "NTSC",
            "width" : -1,
            "height" : -1,
            "frameDecimation" : 1,
            "sizeDecimation" : 1,
            "priority" : 890,
            "mode" : "2D",
            "cropLeft" : 5,
            "cropRight" : 10,
            "cropTop" : 5,
            "cropBottom" : 5,
            "redSignalThreshold" : 0.0,
            "greenSignalThreshold" : 0.0,
            "blueSignalThreshold" : 0.0
        },
    
        // FRAME GRABBER CONFIG
        "framegrabber" :
        {
            "width" : 63,
            "height" : 35,
            "frequency_Hz" : 10.0,
            "priority" : 1100
        },
    
        // BLACKBORDER CONFIG
        "blackborderdetector" :
        {
            "enable" : true,
            "threshold" : 0.0,
            "unknownFrameCnt" : 600,
            "borderFrameCnt" : 50,
            "maxInconsistentCnt" : 10,
            "blurRemoveCnt" : 1,
            "mode" : "default"
        },
    
        // KODI CHECK CONFIG
        "xbmcVideoChecker" :
        {
            "xbmcAddress" : "127.0.0.1",
            "xbmcTcpPort" : 9090,
            "grabVideo" : true,
            "grabPictures" : true,
            "grabAudio" : true,
            "grabMenu" : false,
            "grabPause" : true,
            "grabScreensaver" : true,
            "enable3DDetection" : true
        },
    
        // JSON SERVER CONFIG
        "jsonServer" :
        {
            "port" : 19444
        },
    
        // PROTO SERVER CONFIG
        "protoServer" :
        {
            "port" : 19445
        },
    
        // EFFECT PATH
        "effects" :
        {
            "paths" :
            [
                "/storage/hyperion/effects",
                "/usr/share/hyperion/effects"
            ]
        },
    
        // NO BOOTEFFECT CONFIG
        // NO BOBLIGHT SERVER CONFIG
        // NO JSON/PROTO FORWARD CONFIG
     

    Attached Files:

  2. Timboflex

    Timboflex New Member

    Messages:
    3
    Hardware:
    RPi3, +Arduino
    I also don't seem to be able to get a picture when I connect the RCA directly into my TV, whereas previously this was possible. Maybe it's the converter? Seems difficult to test the video grabber separately.
     
  3. Timboflex

    Timboflex New Member

    Messages:
    3
    Hardware:
    RPi3, +Arduino
    Ok, I just tried it using a new videograbber, and the issue is still there, so the only other piece I can think would be causing it is the HDMI2AV converter...I'll have to try with a new one soon.