I get this for each channel on the three channels.
[START] ah4c is ready
[GIN-debug] Listening and serving HTTP on :7654
[GIN-debug] Request: 127.0.0.1 POST /configsave, latency: 158.507µs, status: 301
[GIN-debug] Request: 127.0.0.1 GET /config, latency: 1.040241ms, status: 200
Attempting network tune for device 192.168.1.130:5555 yttv~~YaqNgmedD7U
[ERR] Failed to fetch source: Get "": unsupported protocol scheme ""
Attempting network tune for device 192.168.1.131:5555 yttv~~YaqNgmedD7U
[ERR] Failed to fetch source: Get "": unsupported protocol scheme ""
[ERR] Failed to tune device(s) not available
[GIN-debug] Request: 192.168.1.188 GET /play/tuner/yttv~~YaqNgmedD7U, latency: 108.19µs, status: 500
Attempting network tune for device 192.168.1.130:5555 yttv~~YaqNgmedD7U
[ERR] Failed to fetch source: Get "": unsupported protocol scheme ""
Attempting network tune for device 192.168.1.131:5555 yttv~~YaqNgmedD7U
[ERR] Failed to fetch source: Get "": unsupported protocol scheme ""
[ERR] Failed to tune device(s) not available
[GIN-debug] Request: 192.168.1.188 GET /play/tuner/yttv~~YaqNgmedD7U, latency: 176.372µs, status: 500
[GIN-debug] Request: 192.168.1.188 GET /play/tuner/max~~a903ca8a-6d5e-559b-a027-f82997397694%2F452e5d78-1cca-59a9-8508-21b25d813874, latency: 430ns, status: 404
[GIN-debug] Request: 192.168.1.188 GET /play/tuner/max~~a903ca8a-6d5e-559b-a027-f82997397694%2F452e5d78-1cca-59a9-8508-21b25d813874, latency: 992ns, status: 404
Narrowed the issue down to the command for tuning.
{ sleep $(cat 192.168.1.130/tune_sleep); bash -c "magewell2ts -i 1 -s 100 -q 12 -c h264_qsv -m "; }
ah4c does not like this. It spits out this when I try to load it with that command in place:
christophe@christophe:~/ah4c$ ./androidhdmi-for-channels
[START] ah4c is starting
[ENV] Loading env
[ENV] IPADDRESS
[ENV] ALERT_SMTP_SERVER
[ENV] ALERT_AUTH_SERVER
[ENV] ALERT_EMAIL_FROM
[ENV] ALERT_EMAIL_PASS
[ENV] ALERT_EMAIL_TO
[ENV] ALERT_WEBHOOK_URL
[ENV] ALLOW_DEBUG_VIDEO_PREVIEW
panic: Could not find an environment variable named NUMBER_TUNERS
goroutine 1 [running]:
main.loadenv()
/home/christophe/ah4c/main.go:967 +0xd0f
main.main()
/home/christophe/ah4c/main.go:1008 +0x2b
I have resorted to simply this for debugging:
magewell2ts -i 1 -s 100 -q 12 -c h264_qsv -m
So far dtv and yttv works but hbo is still not picked up. I still get a "status : 404" when it tries to read the m3u:
[GIN-debug] Request: 192.168.1.188 GET /play/tuner/max~~a903ca8a-6d5e-559b-a027-f82997397694%2F452e5d78-1cca-59a9-8508-21b25d813874, latency: 594ns, status: 404
[GIN-debug] Request: 192.168.1.188 GET /play/tuner/max~~a903ca8a-6d5e-559b-a027-f82997397694%2F452e5d78-1cca-59a9-8508-21b25d813874, latency: 982ns, status: 404