ich habe dem System noch einen HDMI-Switch hinzugefügt, dass ich mehrere HDMI Geräte verwenden kann.
Nun zum Problem, mein Ambilight funktioniert. Aber leider nur mit Kodi.
Es ist alles richtig verkabelt die Config-Datei ist geändert und der Grabber ist im Skript drin.
hyperion.config.grabber.json:
Code: Alles auswählen
// 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" : "MyPi",
"type" : "apa102",
"output" : "/dev/spidev0.0",
"rate" : 250000,
"colorOrder" : "bgr"
},
// 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
}
},
// NO V4L2 GRABBER CONFIG
// 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" : 3000,
"priority" : 700
},
/// The configuration for the frame-grabber, contains the following items:
/// * width : The width of the grabbed frames [pixels]
/// * height : The height of the grabbed frames [pixels]
/// * frequency_Hz : The frequency of the frame grab [Hz]
"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
},
// 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.0000, "maximum" : 0.0139 },
"vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
},
[color=#FF0040](Habe die LEDs entfernt der Übersicht wegen.)[/color]
{
"index" : 225,
"hscan" : { "minimum" : 0.0139, "maximum" : 0.0278 },
"vscan" : { "minimum" : 0.0000, "maximum" : 0.0800 }
}
],
"endOfJson" : "endOfJson"
}
Die hyperion.log spuckt folgendes aus:
Code: Alles auswählen
Hyperion Ambilight Deamon (476)
Version : V1.03.3 (brindosch-2fbbcff/2f01dfa-1495880388
Build Time: Jun 3 2017 02:06:37
INFO: Selected configuration file: /storage/.config/PowerPi.hyperion.config.grabber.json
HYPERION INFO: ColorTransform 'default' => [0; 225]
LEDDEVICE INFO: configuration:
{
"colorOrder" : "bgr",
"name" : "MyPi",
"output" : "/dev/spidev0.0",
"rate" : 250000,
"type" : "apa102"
}
INFO: Creating linear smoothing
HYPERION (CS) INFO: Created linear-smoothing(interval_ms=40;settlingTime_ms=200;updateDelay=0
EFFECTENGINE INFO: 27 effects loaded from directory /storage/hyperion/effects
EFFECTENGINE INFO: Initializing Python interpreter
INFO: Hyperion started and initialised
INFO: Boot sequence 'Rainbow swirl fast' EFFECTENGINE INFO: run effect Rainbow swirl fast on channel 0
BLACKBORDER INFO: threshold set to 0.14 (36)
BLACKBORDER INFO: mode:default
started
INFO: Json server created and started on port 19444
INFO: Proto server created and started on port 19445
V4L2GRABBER INFO: width=720 height=480
V4L2GRABBER INFO: pixel format=YUYV
BLACKBORDER INFO: threshold set to 0.14 (36)
BLACKBORDER INFO: mode:default
V4L2GRABBER INFO: signal threshold set to: {25,25,25}
V4L2GRABBER INFO: started
INFO: V4L2 grabber created and started
BORDER SWITCH REQUIRED!!
CURRENT BORDER TYPE: unknown=0 hor.size=0 vert.size=0
EFFECTENGINE INFO: effect finished
V4L2GRABBER INFO: stopped
V4L2GRABBER INFO: started
Ich weiß nicht mehr weiter. Habe schon einige Sachen versucht aus einem anderen Beitrag allerdings leuchtet bei mir keine einzige LED. Habe den Raspberry auch schon einmal ausgetauscht (habe 2) und denn Grabber in einen anderen USB-Port angeschlossen.
Kann mir irgendjemand helfen möchte das System heute zum laufen bekommen