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

whatever came with 08.28.

no wigging out. just something told the box to tune to 361 apparently right before trying to tune to 356.

I'm guessing this (blindly) as I also have insertion off

USER_SCRIPT=
NULL_FRAME_INSERTION=false
PLAYBACK_DETECTION=false
PLAYBACK_STATIC_TIMEOUT=
PLAYBACK_DELAY=
PREROLL_FILE=
ENCODER_CODEC=h265
HEARTBEAT_INTERVAL=0
NVIDIA_VISIBLE_DEVICES=
NVIDIA_DRIVER_CAPABILITIES=
HOST_DIR=/data

also for what it's worth I found a mistake in my m3u (but it's been there 2 weeks and no other issues)
was
tvc-guide-tags="MSNow, News",MSNOW60
now
tvc-guide-tags="MSNow News",MSNOW60

edit2 according to Channels Support - Add Custom Channels with M3U Playlists tvc-guide-tags: guide item tags. comma delimited. example: "HDTV, Live"

so I had it right, but ah4c was misreading somehow

Do you let your boxes sleep?

when tuning is done they sleep

Do you have closed captioning completely disabled?
I believe the regression I found only invokes itself when closed captioning has been enabled.

1 Like

no, I'm using and really liking the CC now that I have my n100 running at an appropriate wattage :wink: thanks again! game changer, and this winter I will be marking all my recordings prior to sept to not recorded so they can be replaced with embeded cc :+1:

Then I don't know why I'm hitting this race condition and you aren't. That's super weird.
Regardless, it was happening consistently, so it is definitely an edge case.

I think it is that it's a literal race condition and somewhat hardware dependent. I'm running on a faster chip, so I think that could be why I'm having the issue, and it's also closed caption related.

So, this was a me problem. I did something dumb and broke the HDMI handshaking on my boxes. I had to revert something that I did.

This is actually a situation where Raycast came in clutch. It has a really, really long history with the clipboard manager, and I was able to figure out what commands I ran by just kind of digging through my clipboard manager and reversing them essentially.

Now everything is working as it should! Basically spent two days chasing nothing. my own tail!

I did, however, find a bug with the playback delay feature where it kind of drains too quickly and everything goes into high speed mode as soon as the show starts playing. I have a PR open to fix that. so, hopefully, that gets merged soon and that feature will work properly for most people.

2 Likes

been there! :upside_down_face:

I went back in my stack logs and could find no reason for my box getting on 261 :man_shrugging: it's toggling between both usb captures on 2 C71KW-200's every half hour 16hrs a day so I do kinda expect a hiccup now and again, just be nice if i could see the ospreys' logs

I just got my linkpi and tested a lot of deep links I don't have access to directv login only my logged in acct on Android fromy ex most channels I found on this server load deep links. I also have uverse apk I have modded to run on Ethernet and work on other android devices ..it also has deep link functionality . There is so many setup options I am totally lost. Can anyone help me if I pay for some support? I can venmo

Come on, we've told you already. No one's taking Venmo from you...

To be honest, I would consider switching to deep links.

They tune a little bit quicker, and I find that especially with overflow channels, you can access them, whereas with channel numbers, it's impossible to tune an overflow. Another advantage is, I've never had a failed deep link tune, but I've had failed channel number tunes pretty repeatedly because if it tunes too soon after waking the box, it'll tune into nothing.

I actually, revised my readiness gate for the deep link script and also the wake script for that, and I might publish it, but I want to test it a little bit longer to ensure it doesn't lock up on anything.

I figured out the problems i was having with ah4c all of a sudden. I ended up downgrading my ENC5-V2 units to this older firmware, and suddenly they're working like beautifully. rootfs_20251130

Just an fyi, if anyone's having any weirdness, maybe try flashing down to this old firmware using the flash method. How to flash the device? - LINKPI HD VIDEO ENCODE - youyeetoo Geek shop

Some posts back, I laid out how to implement an approach to supporting multiple providers in a single ah4c container:

This has been formalized now through the WebUI. If you want your ah4c instance to be able to tune using multiple different apps, requiring multiple sets of scripts and a combined M3U -- it can all be done very easily by first creating an "all.m3u", and then setting STREAMER_APP=scripts/all/all.

Using the new Create all.m3u menu item, you can select the M3Us you want to combine, using which set of scripts:

Your CDVR Custom Channels Source will just need to reference this all.m3u (or whatever you chose to call it), and the correct set of scripts will be used for tuning.

1 Like

I may have to update the DirecTV Osprey scripts at some point. I'm going to wait a little bit to confirm that it doesn't regress, but it appears that the need for a heartbeat is no longer required, and they fixed that timeout that was occurring.

I noticed all of a sudden it just stopped happening with the heartbeat disabled. So, have some test scripts on my box right now that are working quite well. I even simplified prebmitune.sh to use less adb calls it's a small refactor. I also removed the readiness gate I had because it just wasn't needed anymore.

I found that the readiness gate is probably very good for the channel number tuning because it prevents tuning a channel into the void too quickly but for the deep linking, it's definitely not needed. I'm down to like 4 seconds again.

I'm probably going to sit on them for a couple of weeks and just be certain, and then open a PR to get them up there.

I'm also thinking it makes sense to rename heartbeat interval just back to keep watching way it's consistent with the rest of the scripts, and we can drop that environment variable from the Docker Compose and there's really no point to it when it effectively just becomes a really great invisible key code for preventing a timeout when watching TV for a really long time!

I started seeing posts on Reddit. I then started raising hell on Twitter with them. I ended up getting in touch with their office of the president and really made it clear that this wasn't anything specific to my setup, but many people were seeing this problem, just regular users on Reddit. so I didn't have to mention anything about our little community here. it was more of like, this is a major issue you guys have invented and need to fix. Clearly, some engineer figured it out and decided to watch TV for the first time, I guess :joy:.

1 Like

I'm vibe coding a uverse backup for DirecTV and a m3u8 that does baton handoff so that if both DirecTV and uverse are watching a channel it will use prismcast to tune

If you look, AH4C has something already that does this combined M3U.

It also explicitly does not support M3U8, that is for HLS streams. You are definitely in the wrong place. if you're looking for M3U8.

1 Like

I figured out the hls deeplinks for most channels. I will post them later with my uverse modded apk with deeplinks.

I am also incorporating with prismcast+ a-i-o. I have the newsmix and sportsmix working as well and I am making some channels have a fallback and black screen baton so streams don't end, if something goes down or is unresponsive it will go to the other source.

1 Like

Please consider not posting them here. This is the wrong thread. This has nothing to do with prism cast. You're in the AH4C thread. You're posting in the wrong place again, please.

I imagine sharing a modded U-verse APK goes against forum rules in terms of piracy and such.

Maybe make your own thread to post this stuff in if you want to post it rather than hijacking this one.

1 Like

Just put that dude in the ignore list. Hes a lost cause. He always spam the forums with nonsense.

Im surprised the mods haven't sent him on his way yet

1 Like

I'm actually more interested in reading what he has to say. It livens the mood a little bit when I see random nonsense. :grin: