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

SOLVED Hyperion + Kodi intermittent black screen flashes - too much for a RPi to handle?

Discussion in 'Software Support' started by icefire, 24 December 2016.

  1. icefire

    icefire New Member

    Messages:
    12
    Hardware:
    RPi3, +Arduino
    So I have been trying to make the following setup work:

    - RPi 3 + Arduino Uno
    - 189 WS2812B LED
    - 5V 20A PSU
    - no external grabber, I want it working just with Kodi
    - the RPi is powered through the GPIO pins from the LED PSU. One external HDD is connected to the Pi.

    With hyperion stopped movie playback is completely normal. When I start hyperion the ambilight works fine but the screen flashes black every second or so - as if the RPi was struggling to play the movie. The screen turns completely black and the ambilight does not get interrupted. Sometimes there are longer periods without flashing but I cannot find out what causes them.

    I tried disabling the black border detection but it didn't help.
    It is actually pretty much impossible to turn it off as commenting out the whole black border section of the config file does nothing and the top LEDs remain on despite the top and bottom black border.

    Further analysis showed that the screen starts flashing only with larger videos (ex. BluRay Playback). If I play a movie with a lower resolution or if I stream youtube videos everything is fine. Could it be that Kodi+BluRay and Hyperion are simply too much for a RPi 3 to handle?

    Any ideas?

    Here is my configuration file (with black border detection):

    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.1 (11.06.2016)
    
    {
        // DEVICE CONFIGURATION
        "device" :
        {
            "name"       : "MyHyperionConfig",
            "type"       : "adalight",
            "output"     : "/dev/ttyUSB0",
            "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" : 30.0000,
                "updateDelay"     : 0
            }
        },
    
        // NO V4L2 GRABBER CONFIG
        // FRAME GRABBER CONFIG
        "framegrabber" :
        {
            "width" : 65,
            "height" : 38,
            "frequency_Hz" : 10.0,
            "priority" : 890
        },
    
        // BLACKBORDER CONFIG
        "blackborderdetector" :
        {
            "enable" : true,
            "threshold" : 0.05,
            "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
        },
    
        // 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 BOBLIGHT SERVER CONFIG
        // NO JSON/PROTO FORWARD CONFIG
    
        // LED CONFIGURATION
        "leds" :
        [
            {
                "index" : 0,
                "hscan" : { "minimum" : 0.6308, "maximum" : 0.6462 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 1,
                "hscan" : { "minimum" : 0.6462, "maximum" : 0.6615 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 2,
                "hscan" : { "minimum" : 0.6615, "maximum" : 0.6769 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 3,
                "hscan" : { "minimum" : 0.6769, "maximum" : 0.6923 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 4,
                "hscan" : { "minimum" : 0.6923, "maximum" : 0.7077 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 5,
                "hscan" : { "minimum" : 0.7077, "maximum" : 0.7231 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 6,
                "hscan" : { "minimum" : 0.7231, "maximum" : 0.7385 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 7,
                "hscan" : { "minimum" : 0.7385, "maximum" : 0.7538 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 8,
                "hscan" : { "minimum" : 0.7538, "maximum" : 0.7692 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 9,
                "hscan" : { "minimum" : 0.7692, "maximum" : 0.7846 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 10,
                "hscan" : { "minimum" : 0.7846, "maximum" : 0.8000 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 11,
                "hscan" : { "minimum" : 0.8000, "maximum" : 0.8154 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 12,
                "hscan" : { "minimum" : 0.8154, "maximum" : 0.8308 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 13,
                "hscan" : { "minimum" : 0.8308, "maximum" : 0.8462 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 14,
                "hscan" : { "minimum" : 0.8462, "maximum" : 0.8615 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 15,
                "hscan" : { "minimum" : 0.8615, "maximum" : 0.8769 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 16,
                "hscan" : { "minimum" : 0.8769, "maximum" : 0.8923 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 17,
                "hscan" : { "minimum" : 0.8923, "maximum" : 0.9077 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 18,
                "hscan" : { "minimum" : 0.9077, "maximum" : 0.9231 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 19,
                "hscan" : { "minimum" : 0.9231, "maximum" : 0.9385 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 20,
                "hscan" : { "minimum" : 0.9385, "maximum" : 0.9538 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 21,
                "hscan" : { "minimum" : 0.9538, "maximum" : 0.9692 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 22,
                "hscan" : { "minimum" : 0.9692, "maximum" : 0.9846 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 23,
                "hscan" : { "minimum" : 0.9846, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 24,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.9737, "maximum" : 1.0000 }
            },
            {
                "index" : 25,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.9474, "maximum" : 0.9737 }
            },
            {
                "index" : 26,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.9211, "maximum" : 0.9474 }
            },
            {
                "index" : 27,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.8947, "maximum" : 0.9211 }
            },
            {
                "index" : 28,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.8684, "maximum" : 0.8947 }
            },
            {
                "index" : 29,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.8421, "maximum" : 0.8684 }
            },
            {
                "index" : 30,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.8158, "maximum" : 0.8421 }
            },
            {
                "index" : 31,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.7895, "maximum" : 0.8158 }
            },
            {
                "index" : 32,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.7632, "maximum" : 0.7895 }
            },
            {
                "index" : 33,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.7368, "maximum" : 0.7632 }
            },
            {
                "index" : 34,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.7105, "maximum" : 0.7368 }
            },
            {
                "index" : 35,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.6842, "maximum" : 0.7105 }
            },
            {
                "index" : 36,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.6579, "maximum" : 0.6842 }
            },
            {
                "index" : 37,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.6316, "maximum" : 0.6579 }
            },
            {
                "index" : 38,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.6053, "maximum" : 0.6316 }
            },
            {
                "index" : 39,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.5789, "maximum" : 0.6053 }
            },
            {
                "index" : 40,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.5526, "maximum" : 0.5789 }
            },
            {
                "index" : 41,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.5263, "maximum" : 0.5526 }
            },
            {
                "index" : 42,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.5000, "maximum" : 0.5263 }
            },
            {
                "index" : 43,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.4737, "maximum" : 0.5000 }
            },
            {
                "index" : 44,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.4474, "maximum" : 0.4737 }
            },
            {
                "index" : 45,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.4211, "maximum" : 0.4474 }
            },
            {
                "index" : 46,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.3947, "maximum" : 0.4211 }
            },
            {
                "index" : 47,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.3684, "maximum" : 0.3947 }
            },
            {
                "index" : 48,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.3421, "maximum" : 0.3684 }
            },
            {
                "index" : 49,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.3158, "maximum" : 0.3421 }
            },
            {
                "index" : 50,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.2895, "maximum" : 0.3158 }
            },
            {
                "index" : 51,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.2632, "maximum" : 0.2895 }
            },
            {
                "index" : 52,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.2368, "maximum" : 0.2632 }
            },
            {
                "index" : 53,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.2105, "maximum" : 0.2368 }
            },
            {
                "index" : 54,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.1842, "maximum" : 0.2105 }
            },
            {
                "index" : 55,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.1579, "maximum" : 0.1842 }
            },
            {
                "index" : 56,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.1316, "maximum" : 0.1579 }
            },
            {
                "index" : 57,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.1053, "maximum" : 0.1316 }
            },
            {
                "index" : 58,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0789, "maximum" : 0.1053 }
            },
            {
                "index" : 59,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0526, "maximum" : 0.0789 }
            },
            {
                "index" : 60,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0263, "maximum" : 0.0526 }
            },
            {
                "index" : 61,
                "hscan" : { "minimum" : 0.9500, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0263 }
            },
            {
                "index" : 62,
                "hscan" : { "minimum" : 0.9846, "maximum" : 1.0000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 63,
                "hscan" : { "minimum" : 0.9692, "maximum" : 0.9846 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 64,
                "hscan" : { "minimum" : 0.9538, "maximum" : 0.9692 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 65,
                "hscan" : { "minimum" : 0.9385, "maximum" : 0.9538 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 66,
                "hscan" : { "minimum" : 0.9231, "maximum" : 0.9385 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 67,
                "hscan" : { "minimum" : 0.9077, "maximum" : 0.9231 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 68,
                "hscan" : { "minimum" : 0.8923, "maximum" : 0.9077 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 69,
                "hscan" : { "minimum" : 0.8769, "maximum" : 0.8923 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 70,
                "hscan" : { "minimum" : 0.8615, "maximum" : 0.8769 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 71,
                "hscan" : { "minimum" : 0.8462, "maximum" : 0.8615 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 72,
                "hscan" : { "minimum" : 0.8308, "maximum" : 0.8462 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 73,
                "hscan" : { "minimum" : 0.8154, "maximum" : 0.8308 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 74,
                "hscan" : { "minimum" : 0.8000, "maximum" : 0.8154 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 75,
                "hscan" : { "minimum" : 0.7846, "maximum" : 0.8000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 76,
                "hscan" : { "minimum" : 0.7692, "maximum" : 0.7846 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 77,
                "hscan" : { "minimum" : 0.7538, "maximum" : 0.7692 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 78,
                "hscan" : { "minimum" : 0.7385, "maximum" : 0.7538 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 79,
                "hscan" : { "minimum" : 0.7231, "maximum" : 0.7385 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 80,
                "hscan" : { "minimum" : 0.7077, "maximum" : 0.7231 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 81,
                "hscan" : { "minimum" : 0.6923, "maximum" : 0.7077 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 82,
                "hscan" : { "minimum" : 0.6769, "maximum" : 0.6923 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 83,
                "hscan" : { "minimum" : 0.6615, "maximum" : 0.6769 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 84,
                "hscan" : { "minimum" : 0.6462, "maximum" : 0.6615 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 85,
                "hscan" : { "minimum" : 0.6308, "maximum" : 0.6462 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 86,
                "hscan" : { "minimum" : 0.6154, "maximum" : 0.6308 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 87,
                "hscan" : { "minimum" : 0.6000, "maximum" : 0.6154 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 88,
                "hscan" : { "minimum" : 0.5846, "maximum" : 0.6000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 89,
                "hscan" : { "minimum" : 0.5692, "maximum" : 0.5846 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 90,
                "hscan" : { "minimum" : 0.5538, "maximum" : 0.5692 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 91,
                "hscan" : { "minimum" : 0.5385, "maximum" : 0.5538 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 92,
                "hscan" : { "minimum" : 0.5231, "maximum" : 0.5385 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 93,
                "hscan" : { "minimum" : 0.5077, "maximum" : 0.5231 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 94,
                "hscan" : { "minimum" : 0.4923, "maximum" : 0.5077 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 95,
                "hscan" : { "minimum" : 0.4769, "maximum" : 0.4923 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 96,
                "hscan" : { "minimum" : 0.4615, "maximum" : 0.4769 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 97,
                "hscan" : { "minimum" : 0.4462, "maximum" : 0.4615 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 98,
                "hscan" : { "minimum" : 0.4308, "maximum" : 0.4462 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 99,
                "hscan" : { "minimum" : 0.4154, "maximum" : 0.4308 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 100,
                "hscan" : { "minimum" : 0.4000, "maximum" : 0.4154 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 101,
                "hscan" : { "minimum" : 0.3846, "maximum" : 0.4000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 102,
                "hscan" : { "minimum" : 0.3692, "maximum" : 0.3846 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 103,
                "hscan" : { "minimum" : 0.3538, "maximum" : 0.3692 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 104,
                "hscan" : { "minimum" : 0.3385, "maximum" : 0.3538 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 105,
                "hscan" : { "minimum" : 0.3231, "maximum" : 0.3385 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 106,
                "hscan" : { "minimum" : 0.3077, "maximum" : 0.3231 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 107,
                "hscan" : { "minimum" : 0.2923, "maximum" : 0.3077 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 108,
                "hscan" : { "minimum" : 0.2769, "maximum" : 0.2923 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 109,
                "hscan" : { "minimum" : 0.2615, "maximum" : 0.2769 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 110,
                "hscan" : { "minimum" : 0.2462, "maximum" : 0.2615 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 111,
                "hscan" : { "minimum" : 0.2308, "maximum" : 0.2462 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 112,
                "hscan" : { "minimum" : 0.2154, "maximum" : 0.2308 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 113,
                "hscan" : { "minimum" : 0.2000, "maximum" : 0.2154 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 114,
                "hscan" : { "minimum" : 0.1846, "maximum" : 0.2000 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 115,
                "hscan" : { "minimum" : 0.1692, "maximum" : 0.1846 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 116,
                "hscan" : { "minimum" : 0.1538, "maximum" : 0.1692 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 117,
                "hscan" : { "minimum" : 0.1385, "maximum" : 0.1538 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 118,
                "hscan" : { "minimum" : 0.1231, "maximum" : 0.1385 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 119,
                "hscan" : { "minimum" : 0.1077, "maximum" : 0.1231 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 120,
                "hscan" : { "minimum" : 0.0923, "maximum" : 0.1077 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 121,
                "hscan" : { "minimum" : 0.0769, "maximum" : 0.0923 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 122,
                "hscan" : { "minimum" : 0.0615, "maximum" : 0.0769 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 123,
                "hscan" : { "minimum" : 0.0462, "maximum" : 0.0615 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 124,
                "hscan" : { "minimum" : 0.0308, "maximum" : 0.0462 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 125,
                "hscan" : { "minimum" : 0.0154, "maximum" : 0.0308 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 126,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0154 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
            },
            {
                "index" : 127,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.0000, "maximum" : 0.0263 }
            },
            {
                "index" : 128,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.0263, "maximum" : 0.0526 }
            },
            {
                "index" : 129,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.0526, "maximum" : 0.0789 }
            },
            {
                "index" : 130,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.0789, "maximum" : 0.1053 }
            },
            {
                "index" : 131,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.1053, "maximum" : 0.1316 }
            },
            {
                "index" : 132,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.1316, "maximum" : 0.1579 }
            },
            {
                "index" : 133,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.1579, "maximum" : 0.1842 }
            },
            {
                "index" : 134,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.1842, "maximum" : 0.2105 }
            },
            {
                "index" : 135,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.2105, "maximum" : 0.2368 }
            },
            {
                "index" : 136,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.2368, "maximum" : 0.2632 }
            },
            {
                "index" : 137,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.2632, "maximum" : 0.2895 }
            },
            {
                "index" : 138,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.2895, "maximum" : 0.3158 }
            },
            {
                "index" : 139,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.3158, "maximum" : 0.3421 }
            },
            {
                "index" : 140,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.3421, "maximum" : 0.3684 }
            },
            {
                "index" : 141,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.3684, "maximum" : 0.3947 }
            },
            {
                "index" : 142,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.3947, "maximum" : 0.4211 }
            },
            {
                "index" : 143,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.4211, "maximum" : 0.4474 }
            },
            {
                "index" : 144,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.4474, "maximum" : 0.4737 }
            },
            {
                "index" : 145,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.4737, "maximum" : 0.5000 }
            },
            {
                "index" : 146,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.5000, "maximum" : 0.5263 }
            },
            {
                "index" : 147,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.5263, "maximum" : 0.5526 }
            },
            {
                "index" : 148,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.5526, "maximum" : 0.5789 }
            },
            {
                "index" : 149,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.5789, "maximum" : 0.6053 }
            },
            {
                "index" : 150,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.6053, "maximum" : 0.6316 }
            },
            {
                "index" : 151,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.6316, "maximum" : 0.6579 }
            },
            {
                "index" : 152,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.6579, "maximum" : 0.6842 }
            },
            {
                "index" : 153,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.6842, "maximum" : 0.7105 }
            },
            {
                "index" : 154,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.7105, "maximum" : 0.7368 }
            },
            {
                "index" : 155,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.7368, "maximum" : 0.7632 }
            },
            {
                "index" : 156,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.7632, "maximum" : 0.7895 }
            },
            {
                "index" : 157,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.7895, "maximum" : 0.8158 }
            },
            {
                "index" : 158,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.8158, "maximum" : 0.8421 }
            },
            {
                "index" : 159,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.8421, "maximum" : 0.8684 }
            },
            {
                "index" : 160,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.8684, "maximum" : 0.8947 }
            },
            {
                "index" : 161,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.8947, "maximum" : 0.9211 }
            },
            {
                "index" : 162,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.9211, "maximum" : 0.9474 }
            },
            {
                "index" : 163,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.9474, "maximum" : 0.9737 }
            },
            {
                "index" : 164,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0500 },
                "vscan" : { "minimum" : 0.9737, "maximum" : 1.0000 }
            },
            {
                "index" : 165,
                "hscan" : { "minimum" : 0.0000, "maximum" : 0.0154 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 166,
                "hscan" : { "minimum" : 0.0154, "maximum" : 0.0308 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 167,
                "hscan" : { "minimum" : 0.0308, "maximum" : 0.0462 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 168,
                "hscan" : { "minimum" : 0.0462, "maximum" : 0.0615 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 169,
                "hscan" : { "minimum" : 0.0615, "maximum" : 0.0769 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 170,
                "hscan" : { "minimum" : 0.0769, "maximum" : 0.0923 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 171,
                "hscan" : { "minimum" : 0.0923, "maximum" : 0.1077 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 172,
                "hscan" : { "minimum" : 0.1077, "maximum" : 0.1231 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 173,
                "hscan" : { "minimum" : 0.1231, "maximum" : 0.1385 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 174,
                "hscan" : { "minimum" : 0.1385, "maximum" : 0.1538 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 175,
                "hscan" : { "minimum" : 0.1538, "maximum" : 0.1692 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 176,
                "hscan" : { "minimum" : 0.1692, "maximum" : 0.1846 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 177,
                "hscan" : { "minimum" : 0.1846, "maximum" : 0.2000 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 178,
                "hscan" : { "minimum" : 0.2000, "maximum" : 0.2154 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 179,
                "hscan" : { "minimum" : 0.2154, "maximum" : 0.2308 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 180,
                "hscan" : { "minimum" : 0.2308, "maximum" : 0.2462 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 181,
                "hscan" : { "minimum" : 0.2462, "maximum" : 0.2615 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 182,
                "hscan" : { "minimum" : 0.2615, "maximum" : 0.2769 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 183,
                "hscan" : { "minimum" : 0.2769, "maximum" : 0.2923 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 184,
                "hscan" : { "minimum" : 0.2923, "maximum" : 0.3077 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 185,
                "hscan" : { "minimum" : 0.3077, "maximum" : 0.3231 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 186,
                "hscan" : { "minimum" : 0.3231, "maximum" : 0.3385 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 187,
                "hscan" : { "minimum" : 0.3385, "maximum" : 0.3538 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            },
            {
                "index" : 188,
                "hscan" : { "minimum" : 0.3538, "maximum" : 0.3692 },
                "vscan" : { "minimum" : 0.9200, "maximum" : 1.0000 }
            }
        ],
    
        "endOfJson" : "endOfJson"
    }
    
     
  2. penfold42

    penfold42 Moderator Developer

    Messages:
    612
    Hardware:
    RPi1/Zero, RPi2, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Does dropping the franegrabber resolution help ?

    I wonder if there's IO contention
     
  3. icefire

    icefire New Member

    Messages:
    12
    Hardware:
    RPi3, +Arduino
    No, it didn't, but I must confess that I do not understand the parameters. I tried the following configurations:

    Option 1: horizontal and vertical LED count. Result: A lot of screen flashing
    Code:
    "framegrabber" :
        {
            "width" : 65,
            "height" : 38,
            "frequency_Hz" : 10.0,
            "priority" : 890
    Option 2: Default setting 64x64. Result: Intermittent flashing.
    Code:
    "framegrabber" :
        {
            "width" : 64,
            "height" : 64,
            "frequency_Hz" : 10.0,
            "priority" : 890
    Option 3: Reducing the resolution in half. Result: It works only for the bottom right corner
    Code:
    "framegrabber" :
        {
            "width" : 32,
            "height" : 32,
            "frequency_Hz" : 10.0,
            "priority" : 890

    What is height and width? Pixels? LEDs? Percent? I couldn't find much info on the wiki page.

    No matter what media I am playing, the hyperiond process takes no more than 2,5% CPU usage. Kodi needs about 45% for a 720p video (ex. shot with the a phone camera) and 70% for a BluRay. So I guess the bottleneck is not CPU power.. What could it be?
     
  4. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    724
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino
    why do you not use the ws2812spi?
     
  5. icefire

    icefire New Member

    Messages:
    12
    Hardware:
    RPi3, +Arduino
    How would this help?

    After some further investigation now I am sure that the black screen flashing only occurs when playing large 1080p video files or BluRay videos.

    Do you think it would help to add a hdmi splitter and frame grabber and use the raspberry for hyperion only? In this case I would play the videos either on a second raspberry or old laptop or bluray player...
     
  6. redPanther

    redPanther Moderator Developer

    Messages:
    211
    Hardware:
    RPi1/Zero, RPi2, 32/64bit, +Arduino
    I think usb io traffic is to much. Connecting hdd + arduino on rpi's poor usb could be a bit hard. Connect leds directly to rpi gpio and throw out the arduino.

    As suggested use ws281xspi driver
     
  7. redPanther

    redPanther Moderator Developer

    Messages:
    211
    Hardware:
    RPi1/Zero, RPi2, 32/64bit, +Arduino
    Regarding width/height. This is the pixel resolution the screen is scaled down. Then color analysis is done on the tiny picture. The values should not be lower then you have leds. E.g. when you have 96 leds horizontal and 55 vertical, w/h shouldn't be smaller then 96x55. Another thing is that the ratio should fit to your original resolution to get best results
     
  8. icefire

    icefire New Member

    Messages:
    12
    Hardware:
    RPi3, +Arduino
    Thank you, redPanther!

    So I should do something like this?
     
  9. TPmodding

    TPmodding Administrator Staff Member Administrator

    Messages:
    724
    Hardware:
    RPi1/Zero, RPi2, RPi3, +Arduino
    yes, please try that
     
  10. icefire

    icefire New Member

    Messages:
    12
    Hardware:
    RPi3, +Arduino
    Ok, so I tried the above solution: https://hyperion-project.org/wiki/3-Wire-PWM

    The new setup without arduino and with no level shifter worked but there was no improvement regarding the black screen flashes. However, I tried doubling the frame grabber resolution:

    Code:
    "framegrabber" :
        {
            "width" : 130, //instead of 65
            "height" : 76, //instead of 38
            "frequency_Hz" : 10.0,
            "priority" : 890
        },
    
    And it seems to work. I have not experienced any screen flashes ever since I did this. I am not marking the thread as solved just yet because this is a first impression, I have to analyze some more.

    In the meantime it would like to ask why doubling the screen resolution results in no flashes.. maybe it is easier for the Pi to define the LED colors from a bigger frame?
     
  11. icefire

    icefire New Member

    Messages:
    12
    Hardware:
    RPi3, +Arduino
    Ok, it seems fine now.

    So, to summarize (if anyone reading this thread has a similar issue): The solution was to double the framegrabber resolution.
     
    • Like Like x 1
  12. redPanther

    redPanther Moderator Developer

    Messages:
    211
    Hardware:
    RPi1/Zero, RPi2, 32/64bit, +Arduino
    Whats the minimu working framesize?
     
  13. FilthX

    FilthX New Member

    Messages:
    12
    Hardware:
    RPi3
    Hey guys found this thread after investigating this very issue on Raspberry Pi 3 running libreelec 8.0.2. I have doubled the framegrabber's resolution but the problem persists. Any ideas?

    Thanks in advance.
     
  14. cloud2

    cloud2 New Member

    Messages:
    4
    Hardware:
    RPi3
    sorry @FilthX , cannot provide a solution here. I had the same issue and I can confirm that doubling the framegrabber resolution solved the issue for me, too. I am running librelec (newest stable release) with over 400 leds on a Raspberry Pi 3.
     
  15. FilthX

    FilthX New Member

    Messages:
    12
    Hardware:
    RPi3
    Thanks for your reply @cloud2 . Mine has not more than 100 and I can't make it work for 1080p videos. I have tried playing from my usb hdd and I had no problems. When I try and stream something that is 1080p problems start. Since this is a thread marked as solved, should I open a new one?

    Thanks in advance guys