Dear @hissingshark @sam_nazarko thanks for awesome work. Now i am able to run hyperion NG on VERO without glitch. I have jist Arduino Nano, Vero 4K and LED WS2801.
Just a few things to do for others who are interested. If you have external grabber you will need to make your own build from @hissingshark sources. At least i hope so. Am i right @hissingshark?
If you are using amlogic grabber follow these instructions OSMC and Hyperion - #537 by hissingshark
After all you need to change double_write_mode parameter of amvdec for H265(HEVC) and VP9(Youtube etc) decoder to value 3. I hope that everyone with VERO otherwise will have problems to make hyperion works with HEVC and VP9. Exact problem i don´t know. Bellow is just for info what parameters for doublewirte mode means.
/* DOUBLE_WRITE_MODE is enabled only when NV21 8 bit output is needed */
/* hevc->double_write_mode:
0, no double write;
1, 1:1 ratio;
2, (1/4):(1/4) ratio;
3, (1/4):(1/4) ratio, with both compressed frame included
0x10, double write only
*/
I am using a little modified script from @portisch CoreElec dev, but you can do that your way.
I have in hyperion.service following
...
ExecStartPre=/bin/sh -c "exec sh /usr/share/hyperion/bin/platform.sh start"
ExecStart=/usr/bin/hyperiond
ExecStopPost=/bin/sh -c "exec sh /usr/share/hyperion/bin/platform.sh stop"
...
and script file platform.sh
#!/bin/sh
if [ -d /sys/module/amvdec_h265 ] && [ -d /sys/module/amvdec_vp9 ];then
case "$1" in
"start")
sudo chmod 0666 /sys/module/amvdec_h265/parameters/double_write_mode
sudo chmod 0666 /sys/module/amvdec_vp9/parameters/double_write_mode
echo 3 > /sys/module/amvdec_h265/parameters/double_write_mode
echo 3 > /sys/module/amvdec_vp9/parameters/double_write_mode
;;
"stop")
sudo chmod 0666 /sys/module/amvdec_h265/parameters/double_write_mode
sudo chmod 0666 /sys/module/amvdec_vp9/parameters/double_write_mode
echo 0 > /sys/module/amvdec_h265/parameters/double_write_mode
echo 0 > /sys/module/amvdec_vp9/parameters/double_write_mode
;;
esac
fi
This will automatically rewrite permissions and values for double write paramaters for start and back to default values if you stop hyperion. Don´t forget to made platform.sh executable (chmod +x platform.sh) and chmod it to 0666.
Best regards
Tomas