Hey guys,
hope someone can help me with this.
My problem:
When i activate the forwarding on my first hyperion instance to send data to my second instance, the performance of the first instance goes down. This results in laggy and stuttering LEDs reaction to the grabbed content but only on the first instance (the fowarding one). Reaction/timing of the second one is absolutely fine.
My setup:
- Hyperion config 1 and 2 running on 1 RPi3 with OSMC installed, RPi3 connected to network via cable
- config 1 and 2 sending LED data to 2 Wemos D1 mini (ESP8266) over wireless network (TV-ESP and Wheel-ESP)
- TV-ESP controlling 88 LEDs (config 1), Wheel-ESP controlling 60 LEDs (config 2)
config 1 (TV):
// 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.4 (02.02.2020)
{
// DEVICE CONFIGURATION
"device" :
{
"name" : "TV",
"type" : "udp",
"output" : "HyperionTV:19448",
"rate" : 1000000,
"maxpacket" : 1450,
"protocol" : 0,
"colorOrder" : "rgb"
},
// COLOR CALIBRATION CONFIG
"color" :
{
"channelAdjustment" :
[
{
"id" : "default",
"leds" : "*",
"pureRed" :
{
"redChannel" : 254,
"greenChannel" : 0,
"blueChannel" : 0
},
"pureGreen" :
{
"redChannel" : 0,
"greenChannel" : 254,
"blueChannel" : 0
},
"pureBlue" :
{
"redChannel" : 0,
"greenChannel" : 0,
"blueChannel" : 254
}
}
],
"temperature" :
[
{
"id" : "default",
"leds" : "*",
"correctionValues" :
{
"red" : 255,
"green" : 255,
"blue" : 255
}
}
],
"transform" :
[
{
"id" : "default",
"leds" : "*",
"hsl" :
{
"saturationGain" : 1.0000,
"luminanceGain" : 1.0000,
"luminanceMinimum" : 0.0200
},
"red" :
{
"threshold" : 0.2000,
"gamma" : 2.2000
},
"green" :
{
"threshold" : 0.2000,
"gamma" : 2.2000
},
"blue" :
{
"threshold" : 0.2000,
"gamma" : 2.2000
}
}
],
// SMOOTHING CONFIG
"smoothing" :
{
"type" : "linear",
"time_ms" : 200,
"updateFrequency" : 50.0000,
"updateDelay" : 0
}
},
// V4L2 GRABBER CONFIG
"grabber-v4l2" :
{
"device" : "/dev/video0",
"input" : 0,
"standard" : "PAL",
"width" : 0,
"height" : 0,
"frameDecimation" : 0,
"sizeDecimation" : 0,
"priority" : 900,
"mode" : "2D",
"cropLeft" : 18,
"cropRight" : 19,
"cropTop" : 8,
"cropBottom" : 10,
"redSignalThreshold" : 0.0,
"greenSignalThreshold" : 0.0,
"blueSignalThreshold" : 0.0
},
// BLACKBORDER CONFIG
"blackborderdetector" :
{
"enable" : true,
"threshold" : 0.12,
"unknownFrameCnt" : 600,
"borderFrameCnt" : 50,
"maxInconsistentCnt" : 10,
"blurRemoveCnt" : 1,
"mode" : "osd"
},
// BOOTEFFECT CONFIG
"bootsequence" :
{
"color" : [0,0,0],
"effect" : "Knight rider",
"duration_ms" : 3000,
"priority" : 700
},
// JSON SERVER CONFIG
"jsonServer" :
{
"port" : 19444
},
// PROTO SERVER CONFIG
"protoServer" :
{
"port" : 19445
},
// JSON/PROTO FORWARD CONFIG
"forwarder" :
{
"json" : ["localhost:19446"],
"proto" : ["localhost:19447"]
},
// EFFECT PATH
"effects" :
{
"paths" :
[
"/storage/hyperion/effects",
"/usr/share/hyperion/effects"
]
},
// NO FRAME GRABBER CONFIG
// NO KODI CHECK CONFIG
// NO BOBLIGHT SERVER CONFIG
....
"endOfJson" : "endOfJson"
}
Alles anzeigen
config 2 (Wheel):
// 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" : "udp",
"output" : "HyperionRad:19448",
"rate" : 1000000,
"maxpacket" : 1450,
"protocol" : 0,
"colorOrder" : "rgb"
},
// COLOR CALIBRATION CONFIG
"color" :
{
"channelAdjustment" :
[
{
"id" : "default",
"leds" : "*",
"pureRed" :
{
"redChannel" : 254,
"greenChannel" : 0,
"blueChannel" : 0
},
"pureGreen" :
{
"redChannel" : 0,
"greenChannel" : 254,
"blueChannel" : 0
},
"pureBlue" :
{
"redChannel" : 0,
"greenChannel" : 0,
"blueChannel" : 254
}
}
],
"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.2000,
"gamma" : 2.2000
},
"green" :
{
"threshold" : 0.2000,
"gamma" : 2.2000
},
"blue" :
{
"threshold" : 0.2000,
"gamma" : 2.2000
}
}
],
// SMOOTHING CONFIG
"smoothing" :
{
"type" : "linear",
"time_ms" : 150,
"updateFrequency" : 50.0000,
"updateDelay" : 0
}
},
// NO V4L2 GRABBER CONFIG
// BLACKBORDER CONFIG
"blackborderdetector" :
{
"enable" : true,
"threshold" : 0.09,
"unknownFrameCnt" : 600,
"borderFrameCnt" : 50,
"maxInconsistentCnt" : 10,
"blurRemoveCnt" : 1,
"mode" : "osd"
},
// BOOTEFFECT CONFIG
"bootsequence" :
{
"color" : [0,0,0],
"effect" : "Knight rider",
"duration_ms" : 3000,
"priority" : 700
},
// JSON SERVER CONFIG
"jsonServer" :
{
"port" : 19446
},
// PROTO SERVER CONFIG
"protoServer" :
{
"port" : 19447
},
// 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
...
}
],
"endOfJson" : "endOfJson"
}
Alles anzeigen
What i tried and checked (for the last 4 days -.- ) :
- testing my wireless connections/bandwith -> works fine
- installing the second instance to another RPi3 (Raspbian) and forwarding the data to this one -> makes the problem worse
- checking CPU load of OSMC RPi3 with both instances running-> seems fine, around 50%
- lowering smoothing time and frequency on both instances -> makes no difference
- changing the TV-ESP to an Arduino UNO -> makes no difference
- changing the forwarding: instance 2 forwarding data to instance 1 -> moves the stuttering from instance 1 to instance 2
- stopping the process of the second instance while i have a look on the stuttering LEDs of first instance -> the stuttering of the first instance goes away
---------> so i am 99% sure the problem is the forwarding option, (or i did a wrong config)
I have no idea what else to try. Help would be much appreciated!
Thanks in advance!!