DirecTV Osprey/Gemini Boxes

I actually completely rewrote the bmitune for the channel number tuning script.

The reason why I did that was because I knew you were saying you were having issues with tunes not working, so I figured I'd take a crack at it. I also noticed that occasionally I would tune a channel and it wouldn't match up right, so I figured there had to be a better way, and Claude found a better way after a lot of fighting it!

If Channels starts before ah4c does, you won't get any channels loaded into your M3U. You definitely need to put Channels on delayed start, so ah4c starts up and then channels starts a bit later.

but I really like the fast boot & record for TVE and HDHR, I really want to say it was less than a minute of recording loss on reboot for me before.. :slight_smile:
cdvr trying to access ah4c too soon lead to the containers not even starting, so my plan was to include an ah4c source refresh curl or whatever after successful container launch.

Maybe look into setting up a Linux server with Docker Compose.
Or I use Unraid. Unraid is actually super easy to configure compared to just bare Linux, in my opinion.

see list of shit to do :wink:


that old dell at the bottom was my emby machine that got the rest of the mess started. (you can't even see my minipc buried back there) the dell has been outfitted with ssd's and 20tb for 8 months, waiting for proxmox

I want to properly label my ospreys now. Right now they're all just painter's tape and permanent marker.

At some point, I have to get a Brother P-Touch to get them properly, nicely labeled.

1 Like

somehow a year after I left my first full time job (upgrading office buildings from cat3 to cat5) I found one of their p-touch's in a tote. :man_shrugging: that was 25yrs ago and it still works, and the label tape is still expensive but worth it.

little tip, the middle label numbering the boxes is actually 2 peices of magnet tape. the piece stuck to the osprey has a hole drilled in it for IR, so I can quckly pull off the labeled magnet and control any box with an old directv remote.

1 Like

I heard you could control Ospreys with a regular old white DirecTV remote. Honestly, the P-Touches aren't that expensive on Amazon, like maybe $50.00 or so, and they do last forever, so it's kind of a worthwhile investment. The tape is kind of expensive. It's the whole shaving handles and blades scheme, printer ink scheme, the same thing.

Finally, a setup messier than mine!! :rofl::joy:

Super strange. I wrote a script to test like immediate cold tunes over deep link, and it started acting up again today.

But the five minute teardowns still are clear, so I don't know. They must be two separate issues, or one must be like an AB test server side sort of thing. The readiness gate I added to the Osprey deep links script will handle that. Also, ADBTuner is pretty much immune because it already waits a few seconds before sending a deep link anyway, but I'm sure that can be extended with just a simple sleep command in the configuration. I also wrote kind of a new readiness gate that's a little bit faster if anyone wants to try it, if you're running into this issue.

$adbTarget shell 'end=$(($(date +%s)+10)); n=0; while [ $(date +%s) -lt $end ]; do dumpsys media_session 2>/dev/null | grep -q "PlaybackState {state=3" && exit 0; n=$((n+1)); [ $((n % 10)) -eq 0 ] && dumpsys audio 2>/dev/null | grep -qE "pack: com.att.tv.openvideo.*gain: GAIN " && exit 0; done; exit 1'
  if [[ $? -ne 0 ]]; then
    touch "$streamerNoPort/adbCommunicationFail"
    echo "Readiness gate timed out for $streamerIP -- failing tune so ah4c can try the next tuner"
    exit 2
  fi

You know what just clicked? My DMA is the one hosting the World Cup. I'm in the New York metro, so if something is broken, I guess it kind of makes sense. I'm literally 20 minutes from the stadium. It just seems too coincidental that I'd be having issues related to digital ad insertion right around the World Cup, and I'm 20 minutes away from the World Cup, literally.

Update: I did some more debugging and figured out my tunes were all pinned to their West Coast Yospace (AWS) servers for most of the day, whereas yesterday it was East Coast. So it seems like, from what I can infer, something in Ashburn was fixed in US-East-1, and now they seem to have rolled out a patch to Oregon, US-West-2. I mean, this is what I'm getting from running tcpdump like a madman and tuning over and over. This also explains why it's only affecting me and no one else, because it seems to just be isolated to my market, and maybe some other markets that who knows about. But in our small community here, I must be the only market affected. :frowning:

I also noticed around 3:00 PM Eastern, noon Pacific, things started to get back to normal. It stopped tearing down. Everything stopped wedging again after clearing out some stuff on my boxes like I had to last time, and it started behaving normally. Then I noticed around 5:00, 6:00 PM Eastern, I started getting East Coast servers again. So super weird, but kind of makes sense that they would fix the primary AWS region and then fix the secondary AWS region a day later before the big World Cup final.

So I don't know what's going on because everything's been stable for months, but suddenly just my Osprey fleet is not working reliably. But the one plugged into my TV is working just fine.

I can reproduce issues when tuning cold via deeplink on that one, but I can't reproduce any weird ad-related issues or teardown-related issues that seem to plague the boxes in my fleet connected to my encoders.

So for the time being, I'm going to just use an Osprey box plugged into my TV because I happen to really like them, and the picture quality and sound quality is actually better than what was coming out of the LinkPi's (by a lot).

I'm going to revive my Nvidia Shield for streaming apps.~

Maybe I'll come back to Channels in the future. Maybe this issue will get resolved by DirecTV and it won't be a problem. But for now, I have to step away just for my own well-being. Too many terminals open running tcpdump watching logs etc. This, of course, isn't the fault of Channels or the developers or anything like that. This is the content providers making it increasingly difficult to get our content into this platform. That's really a shame, but such is life.

I really loved contributing to all of the different projects around here, and hopefully I will be able to do more of that in the future, hopefully a firmware or something will sort this out. :slightly_smiling_face:

NEVER GIVE UP: I tried something weird. I made a second profile on my DirecTV account, and thus far, everything has cleared up so far. Still early, I don't want to jinx it, but just super weird stuff. I don't know if anyone else here has a second profile on their account just for another family member or something, and maybe I'm the outlier that only has one profile. But I don't know. I made a second profile and my issues just seemingly vanished so far. I still have to test more because I'm just kind of in disbelief after so many weeks of troubleshooting this.

this tracks based on my earlier deep dive on profiles. I didn't realize you were using 1 household wide. I believe the home screen which seems always loaded on the ospreys, is updating when another device using that profile watches something. I'm not sure that was your entire issue, but maybe some of it.
I have a profile setup for myself, my dad, my primary tuner (records same channel all day), and another profile for the other tuners. wish they let us have more profiles, but I'll take the 20 tuners instead. :wink:

2 Likes

You know, I'm going to set up one profile for one of my five tuners and another profile for my other five tuners, and hopefully that resolves everything. I'll just make bank one, bank two, and see if that clears everything up, because it started not wedging on a deep link once I made a second profile and just left it there. But I am still having that, like, weird five-minute refresh.

instinct is telling me you just caught the eye of a high level admin with all the testing of so many tuners, and i'm sure the world cup didn't help. hopefully the dust will settle soon

1 Like

Granted, that five-minute refresh happened on the default profile, so maybe it's a little overloaded, or that's the one that caught the attention of some admin.

Also in the middle of this, I made a brand new DirecTV account. Like so I went on the phone with support, and they helped me r e f u n d the old one and make a new one. So it's a fresh account with a fresh entitlement and everything.

I've got no skin in the game, but I like following your attempts at this. Don't give up! What else would you do with your time?

I’ve had (2) profiles on my Directv Stream account from Day 1. Just make sure the settings are set to use last profile on launch. My Osprey's are set to use my profile on launch.
Another option to test is to drop your Osprey count and see if that helps. Then increase your tuner count until you see an issue.
Have you thought about reverting back to the standard ah4c scripts? I know that you've made some script modifications to improve your system; maybe one of those is affecting your overall experience. I know I have broken more things trying to fix an issue.
I hope you get it figured out. The community is a lot better when we have that “edge pusher”.

So it actually isn't the ah4c scripts because it happens with ADBTuner also. I might give the boxes one more reset because they did just get an update in the middle of the night last night.

So far the update hasn't helped the situation at all though.

I may also reduce the count and see what happens. But the fact that it wasn't happening to the one connected to my TV is just super weird.

This is a little too salient in terms of timeline to be coincidence. This is the most recent firmware released by LinkPi. I just downgraded to the previous April firmware and so far so good, but I'm still testing and my fingers are very much crossed behind my back. @Shaggylive you've been very helpful throughout all of this. Are you on the older firmware with your encoders?

Edit: I just ran two concurrent streams, one on a downgraded encoder, ENC5-V2, and one on the current firmware. And the current firmware one tore down, and the one on the previous firmware has persisted three tunes.

So, are you thinking the encoder firmware is part of the issue. Way above my pay grade.
I'm on the initial firmware from when I received my Link Pi unless it did it without telling me. Maybe that's why I never see your issues. I'm not big on updating unless I have an issue. Didn't you have an issue in the last year with flashing?

App version: 4.0.0 build 20250228_2620

SDK version: 4.0.0 build 20250228_29861

Sys version: 4.0.0 build 20250228

Oh, I almost always upgrade my LinkPi encoders when an update comes out, and I guess that's a mistake because you're running a build from 2025 and I was running just the latest from this past June, and that's when I started hitting issues. The timeline lines up perfectly and the issue of like HDCP and ad related teardowns kind of connect with a bad HDMI link. Since I'm a bit of a mad lad, I have Claude diffing the firmwares and, like decompiling it because I don't really care, and I just want to see what it can find.