AndroidHDMI for Channels (ah4c): A virtual channel tuner using HDMI Encoder(s) + streaming stick(s)

while I do understand and normally have no problem with starting at 0, nowhere do we define a tuner 0.

NUMBER_TUNERS=4
TUNER1_IP=10.0.0.133:5555
ENCODER1_URL=http://10.0.0.122/live/stream1
TUNER2_IP=10.0.0.131:5555
ENCODER2_URL=http://10.0.0.122/live/stream0
TUNER3_IP=10.0.0.130:5555
ENCODER3_URL=http://10.0.0.121/live/stream0
TUNER4_IP=10.0.0.132:5555
ENCODER4_URL=http://10.0.0.121/live/stream1

I see what you're saying? you want it to say tuner 1, 2, 3, 4, 5

You mean something super cool like using hostnames instead of IP addresses?:

That would actually be kinda cool, although I kinda like having both.
I numbered mine by IP address in order on their own VLAN.

FYI, I am researching broadcast standards right now for the best defaults possible. I also found a bug that was causing words to drop randomly and may be causing some speed issues.

Why did you start with TUNER1_IP and ENCODER1_URL instead of TUNER0_IP and ENCODER0_URL?

lol. unfortunately in my poor man mess of a setup i'm currently running host names prove unreliable and end up always going thru tailscale, but not every device is in tailscale.

I assume the zero comes from the back end of ah4c, but as the user it's kinda weird that we set it up with 123, but status is for 012. I'd go for a TUNER0_IP= but maybe it'd be easier to display them as defined in env.

That looks like it's in the environment variables in the original post on this thread.

that's how olivetin does it. :man_shrugging:
so we can start with zero in ENV?

That's why there's a DOMAIN= env var that accepts multiple search domains (space separated). I put my LAN's domain first and then my Tailnet second.

I actually have an idea.

How does labels sound? Just label your tuners whatever you want them to be. Just like another project does. They can be stored in a little JSON file. wouldn't take up any space, just sit in a bind mount.

Let me think about that please.

1 Like

Yeah, no worries. you're probably better off implementing that than me.

You're quite right. Did the 0 creep in to support someone with 10 tuners? :slight_smile:

lol, I accept multiple too, but I only have the one, and my crappy router doesn't do the best.

so, wait a minute!
What's wrong with IP addresses? lol

It's not a big deal, but I thought with all the work going on, and the new interface, maybe they could match better is all.

so if I understand correctly we can use TUNER0_IP= ?

must have, but the the old tuner status page has been showing as 0 since I started with ah4c, and that was long before the support for 10. (dunno why 10 :person_shrugging: ) lol

I'm not sure, it doesn't look like I've ever done it. @mackid1993?

I have my YAML starting at tuner one. If you want, while I'm in here, I can update the UI.

So that we'd start with Tuner 1? If so, I'm down with that. I never noticed the status page thing, since I never used it.

It makes more sense. Index origin zero is for programmers. lol