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

@Jubeejb I found the source code. I'm guessing this would not be too hard to implement. Channel changes would be done this way:

curl -X POST \
  -H "Authorization: Bearer YOUR_HA_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"media_player.your_android_tv","media_content_id":702,"media_content_type":"channel"}' \
  http://HOME_ASSISTANT_IP:8123/api/services/media_player/play_media

In the above example, the channel would be changed to 702. In the script that 702 would be a variable, with its value passed by M3U.

You'd definitely be missing out on some cool features of ah4c not having ADB enabled, but to me, what you're asking looks do-able.

Your M3U would look like this:

#EXTM3U

#EXTINF:-1 channel-id="265" channel-number="265",A&E
http://{{ .IPADDRESS }}/play/tuner/265

#EXTINF:-1 channel-id="361" channel-number="361",AccuWeather
http://{{ .IPADDRESS }}/play/tuner/361

#EXTINF:-1 channel-id="254" channel-number="254",AMC
http://{{ .IPADDRESS }}/play/tuner/254

#EXTINF:-1 channel-id="282" channel-number="282",Animal Planet
http://{{ .IPADDRESS }}/play/tuner/282

#EXTINF:-1 channel-id="340" channel-number="340",AXS TV
http://{{ .IPADDRESS }}/play/tuner/340

#EXTINF:-1 channel-id="293" channel-number="293",BabyFirst HD
http://{{ .IPADDRESS }}/play/tuner/293

#EXTINF:-1 channel-id="264" channel-number="264",BBC America
http://{{ .IPADDRESS }}/play/tuner/264

#EXTINF:-1 channel-id="329" channel-number="329",BET
http://{{ .IPADDRESS }}/play/tuner/329

#EXTINF:-1 channel-id="353" channel-number="353",Bloomberg TV
http://{{ .IPADDRESS }}/play/tuner/353

#EXTINF:-1 channel-id="298" channel-number="298",Boomerang
http://{{ .IPADDRESS }}/play/tuner/298

#EXTINF:-1 channel-id="237" channel-number="237",Bravo
http://{{ .IPADDRESS }}/play/tuner/237

#EXTINF:-1 channel-id="296" channel-number="296",Cartoon Network East
http://{{ .IPADDRESS }}/play/tuner/296

#EXTINF:-1 channel-id="341" channel-number="341",CleoTV
http://{{ .IPADDRESS }}/play/tuner/341

#EXTINF:-1 channel-id="327" channel-number="327",CMT
http://{{ .IPADDRESS }}/play/tuner/327

#EXTINF:-1 channel-id="355" channel-number="355",CNBC
http://{{ .IPADDRESS }}/play/tuner/355

#EXTINF:-1 channel-id="202" channel-number="202",CNN
http://{{ .IPADDRESS }}/play/tuner/202

#EXTINF:-1 channel-id="419" channel-number="419",CNN En Español
http://{{ .IPADDRESS }}/play/tuner/419

#EXTINF:-1 channel-id="358" channel-number="358",CNNi
http://{{ .IPADDRESS }}/play/tuner/358

#EXTINF:-1 channel-id="249" channel-number="249",Comedy Central
http://{{ .IPADDRESS }}/play/tuner/249

#EXTINF:-1 channel-id="350" channel-number="350",C-SPAN
http://{{ .IPADDRESS }}/play/tuner/350

#EXTINF:-1 channel-id="351" channel-number="351",C-SPAN2
http://{{ .IPADDRESS }}/play/tuner/351

#EXTINF:-1 channel-id="369" channel-number="369",Daystar
http://{{ .IPADDRESS }}/play/tuner/369

#EXTINF:-1 channel-id="278" channel-number="278",Discovery
http://{{ .IPADDRESS }}/play/tuner/278

#EXTINF:-1 channel-id="290" channel-number="290",Disney Channel
http://{{ .IPADDRESS }}/play/tuner/290

#EXTINF:-1 channel-id="289" channel-number="289",Disney Junior
http://{{ .IPADDRESS }}/play/tuner/289

#EXTINF:-1 channel-id="292" channel-number="292",Disney XD
http://{{ .IPADDRESS }}/play/tuner/292

#EXTINF:-1 channel-id="236" channel-number="236",E!
http://{{ .IPADDRESS }}/play/tuner/236

#EXTINF:-1 channel-id="267" channel-number="267",EarthxTV
http://{{ .IPADDRESS }}/play/tuner/267

#EXTINF:-1 channel-id="206" channel-number="206",ESPN
http://{{ .IPADDRESS }}/play/tuner/206

#EXTINF:-1 channel-id="209" channel-number="209",ESPN2
http://{{ .IPADDRESS }}/play/tuner/209

#EXTINF:-1 channel-id="314" channel-number="314",Family Movie Classics (FMC)
http://{{ .IPADDRESS }}/play/tuner/314

#EXTINF:-1 channel-id="231" channel-number="231",Food Network
http://{{ .IPADDRESS }}/play/tuner/231

#EXTINF:-1 channel-id="359" channel-number="359",FOX Business Network
http://{{ .IPADDRESS }}/play/tuner/359

#EXTINF:-1 channel-id="360" channel-number="360",FOX News Channel
http://{{ .IPADDRESS }}/play/tuner/360

#EXTINF:-1 channel-id="219" channel-number="219",FOX Sports 1
http://{{ .IPADDRESS }}/play/tuner/219

#EXTINF:-1 channel-id="363" channel-number="363",FOX Weather
http://{{ .IPADDRESS }}/play/tuner/363

#EXTINF:-1 channel-id="311" channel-number="311",Freeform
http://{{ .IPADDRESS }}/play/tuner/311

#EXTINF:-1 channel-id="248" channel-number="248",FX
http://{{ .IPADDRESS }}/play/tuner/248

#EXTINF:-1 channel-id="259" channel-number="259",FXX
http://{{ .IPADDRESS }}/play/tuner/259

#EXTINF:-1 channel-id="404" channel-number="404",Galavisión
http://{{ .IPADDRESS }}/play/tuner/404

#EXTINF:-1 channel-id="312" channel-number="312",Hallmark Channel
http://{{ .IPADDRESS }}/play/tuner/312

#EXTINF:-1 channel-id="565" channel-number="565",Hallmark Movies & Mysteries
http://{{ .IPADDRESS }}/play/tuner/565

#EXTINF:-1 channel-id="229" channel-number="229",HGTV
http://{{ .IPADDRESS }}/play/tuner/229

#EXTINF:-1 channel-id="204" channel-number="204",HLN
http://{{ .IPADDRESS }}/play/tuner/204

#EXTINF:-1 channel-id="240" channel-number="240",HSN
http://{{ .IPADDRESS }}/play/tuner/240

#EXTINF:-1 channel-id="333" channel-number="333",IFC
http://{{ .IPADDRESS }}/play/tuner/333

#EXTINF:-1 channel-id="285" channel-number="285",Investigation Discovery
http://{{ .IPADDRESS }}/play/tuner/285

#EXTINF:-1 channel-id="305" channel-number="305",ION
http://{{ .IPADDRESS }}/play/tuner/305

#EXTINF:-1 channel-id="252" channel-number="252",Lifetime
http://{{ .IPADDRESS }}/play/tuner/252

#EXTINF:-1 channel-id="281" channel-number="281",MotorTrend
http://{{ .IPADDRESS }}/play/tuner/281

#EXTINF:-1 channel-id="356" channel-number="356",MSNBC
http://{{ .IPADDRESS }}/play/tuner/356

#EXTINF:-1 channel-id="331" channel-number="331",MTV
http://{{ .IPADDRESS }}/play/tuner/331

#EXTINF:-1 channel-id="332" channel-number="332",MTV2
http://{{ .IPADDRESS }}/play/tuner/332

#EXTINF:-1 channel-id="276" channel-number="276",National Geographic Channel
http://{{ .IPADDRESS }}/play/tuner/276

#EXTINF:-1 channel-id="349" channel-number="349",Newsmax
http://{{ .IPADDRESS }}/play/tuner/349

#EXTINF:-1 channel-id="299" channel-number="299",Nickelodeon
http://{{ .IPADDRESS }}/play/tuner/299

#EXTINF:-1 channel-id="274" channel-number="274",Ovation
http://{{ .IPADDRESS }}/play/tuner/274

#EXTINF:-1 channel-id="241" channel-number="241",Paramount Network
http://{{ .IPADDRESS }}/play/tuner/241

#EXTINF:-1 channel-id="288" channel-number="288",PBS Kids
http://{{ .IPADDRESS }}/play/tuner/288

#EXTINF:-1 channel-id="275" channel-number="275",QVC
http://{{ .IPADDRESS }}/play/tuner/275

#EXTINF:-1 channel-id="315" channel-number="315",QVC2
http://{{ .IPADDRESS }}/play/tuner/315

#EXTINF:-1 channel-id="318" channel-number="318",QVC3
http://{{ .IPADDRESS }}/play/tuner/318

#EXTINF:-1 channel-id="238" channel-number="238",Reelz
http://{{ .IPADDRESS }}/play/tuner/238

#EXTINF:-1 channel-id="384" channel-number="384",Revolt
http://{{ .IPADDRESS }}/play/tuner/384

#EXTINF:-1 channel-id="345" channel-number="345",RFD-TV
http://{{ .IPADDRESS }}/play/tuner/345

#EXTINF:-1 channel-id="320" channel-number="320",Scientology Network
http://{{ .IPADDRESS }}/play/tuner/320

#EXTINF:-1 channel-id="226" channel-number="226",Shop LC
http://{{ .IPADDRESS }}/play/tuner/226

#EXTINF:-1 channel-id="239" channel-number="239",SundanceTV
http://{{ .IPADDRESS }}/play/tuner/239

#EXTINF:-1 channel-id="244" channel-number="244",Syfy
http://{{ .IPADDRESS }}/play/tuner/244

#EXTINF:-1 channel-id="247" channel-number="247",TBS
http://{{ .IPADDRESS }}/play/tuner/247

#EXTINF:-1 channel-id="256" channel-number="256",TCM
http://{{ .IPADDRESS }}/play/tuner/256

#EXTINF:-1 channel-id="303" channel-number="303",TeenNick
http://{{ .IPADDRESS }}/play/tuner/303

#EXTINF:-1 channel-id="347" channel-number="347",The First
http://{{ .IPADDRESS }}/play/tuner/347

#EXTINF:-1 channel-id="269" channel-number="269",The HISTORY Channel
http://{{ .IPADDRESS }}/play/tuner/269

#EXTINF:-1 channel-id="342" channel-number="342",TheGrio
http://{{ .IPADDRESS }}/play/tuner/342

#EXTINF:-1 channel-id="280" channel-number="280",TLC
http://{{ .IPADDRESS }}/play/tuner/280

#EXTINF:-1 channel-id="245" channel-number="245",TNT
http://{{ .IPADDRESS }}/play/tuner/245

#EXTINF:-1 channel-id="246" channel-number="246",truTV
http://{{ .IPADDRESS }}/play/tuner/246

#EXTINF:-1 channel-id="304" channel-number="304",TV Land
http://{{ .IPADDRESS }}/play/tuner/304

#EXTINF:-1 channel-id="242" channel-number="242",USA Network
http://{{ .IPADDRESS }}/play/tuner/242

#EXTINF:-1 channel-id="335" channel-number="335",VH1
http://{{ .IPADDRESS }}/play/tuner/335

#EXTINF:-1 channel-id="271" channel-number="271",VICE
http://{{ .IPADDRESS }}/play/tuner/271

#EXTINF:-1 channel-id="260" channel-number="260",WE tv
http://{{ .IPADDRESS }}/play/tuner/260
1 Like

So, in answer to your original question, you'd use this Project One-Click Action to create an M3U that would contain just the channels you subscribe to:

Screenshot 2026-09-24 at 10-16-45 OliveTin - Organizr V2

Then you'd just need to create a simple set of scripts for the channel changes, featuring the curl command in my previous post. We'll add them as scripts/gemini/dtvgemini

It's a bummer that DTV has locked out ADB access on the Gemini series with recent updates.

Not according to multiple posts on Reddit -- but this appears to apply only to the Gemini.

I thought I was looking at posts about the Gemini Air, and this one primarily, but cross-checking the model number, I see this post is about the Gemini set top box -- so despite a reasonably convincing looking post (particularly "phase 4"), we know this can't be correct:

https://www.reddit.com/r/DirectvStream/comments/1lkslq7/recent_update_to_c71kw400_disables_use_of_apps/

Sorry to raise your alarm bells. This seemed to match up with what @Jubeejb posted in the ADBTuner thread about losing ADB access to his Gemini, but perhaps that's incorrect info as well.

EDIT: It's possible what this Reddit user was reporting only applies to those who no longer have DTV subscriptions.

I know pretty sweet right? The FastChannels ah4c bridge for DTV (and a number of other decent providers) is the new rock star for encoder or Capture Card connected streaming sticks!

What you did would be ideal, to get the DTV channel numbers "correct" right in FastChannels. So, I'll take a look, but most importantly @KineticMan is going to need a bit of time to make sure it doesn't conflict with other work he's done on channel numbers.

2 Likes

Hello the device I’m using is C71KW-400 I bought it on the Walmart site for $58.00. .

I don’t have the source side but the plugin is well documented on how to use and what it can do. Searching Home Assistant AndroidTV remote would most likely get you the documentation.

When I first enabled ADB on the device it worked fine. Than after rebooting the device a few times the device would no longer stream content. To start streaming content I had to disable ADB.

As I said in another post, I found the source code.

I don’t have an about page but I’ll provide whatever info I can get. I’m not at the house right now but I do know that based on the label the device was manufactured in 2019.

Bear with me. I’m old enough to have one foot in the grave and one foot on a banana peel :slight_smile: The last real programming I did was in the 80s and that was primarily Assembler and COBOL.

1 Like

Thanks for this project! I'm waiting on my LinkPi to arrive, hopefully in the next week. While waiting, I decided to set up the Fire TV Sticks and install ah4c to work the kinks out before the final hardware piece arrives. I'm using Xfinity Stream and have read a good bit of this thread, but especially everything with Xfinity in it. My current hangup is finding the proper m3u setup for my channel listing. AI walked me through capturing the channel list from the console, but that is turning out to be showing guide data, not the actual channel numbers.

For example, for channel 1036, it had:

#EXTINF:-1 channel-id="1036" channel-number="1036" tvc-guide-stationid="8167265010082066117" tvg-name="WATLD" tvg-chno="1036",WATLD
http://{{ .IPADDRESS }}/play/tuner/1036

when what I really needed was something like:

#EXTINF:-1 channel-id="1036" channel-number="1036" tvc-guide-stationid="5162125970112283117" tvg-name="WATL-HD" tvg-chno="1036",WATLD
http://{{ .IPADDRESS }}/play/tuner/WATLD-7275065179929881105

I don't think that's entirely correct because the github xfinity.m3u has much shorter tvc station ids like 59368.

I'm so close on this but can't crack the code on how to get the other hundreds of channels other than clicking each channel and copying the URL to get the correct code for the m3u.

Is there a better way to capture the required channel data for an Xfinity lineup?

Also, is there a way to tune through ah4c while the LinkPi isn't attached? Using a dummy entry for the encoder address in ah4c appears to give a successful tune, ie no obvious error in the log, but by the time I walk to my network room the stream has already terminated and put the device back to sleep. This was using curl "http://192.168.99.63:7654/play/tuner/KMSPD-8615637520029897105" -o /dev/null.

I can successfully tune through adb with:

adb -s 192.168.99.35:5555 shell input keyevent KEYCODE_WAKEUP && adb -s 192.168.99.35:5555 shell am force-stop com.xfinity.cloudtvr.tenfoot && adb -s 192.168.99.35:5555 shell am start -a android.intent.action.VIEW -d "https://www.xfinity.com/stream/live/watch/7275065179929881105/WATLD" com.xfinity.cloudtvr.tenfoot

I feel like I'm right on the verge of getting this correct. I will keep trying to automatically generate the m3u until the LinkPi arrives. Then I'll probably punt and manually access each channel one by one. I already have most of the m3u data correct; I just need the correct tvc-guide-stationid and /play/tuner action.

It's been a while since I put my remote xfinity setup together, but this is the M3U I use (which is the same as posted on the repo:

#EXTM3U

#EXTINF:-1 channel-id="1002" channel-number="1002" tvc-guide-stationid="21634" tvg-group="" tvg-logo="",KTCA-DT
http://{{ .IPADDRESS }}/play/tuner/tpt2H-8037961156532819105

#EXTINF:-1 channel-id="1004" channel-number="1004" tvc-guide-stationid="21234" tvg-group="" tvg-logo="",WCCO-DT
http://{{ .IPADDRESS }}/play/tuner/WCCOD-5669032547815822105

#EXTINF:-1 channel-id="1005" channel-number="1005" tvc-guide-stationid="21236" tvg-group="" tvg-logo="",KSTP-DT
http://{{ .IPADDRESS }}/play/tuner/KSTPD-8713109229817176105

#EXTINF:-1 channel-id="1009" channel-number="1009" tvc-guide-stationid="24504" tvg-group="" tvg-logo="",KMSP-DT
http://{{ .IPADDRESS }}/play/tuner/KMSPD-8615637520029897105

#EXTINF:-1 channel-id="1011" channel-number="1011" tvc-guide-stationid="20505" tvg-group="" tvg-logo="",KARE-DT
http://{{ .IPADDRESS }}/play/tuner/KARED-7728061817102576105

#EXTINF:-1 channel-id="1017" channel-number="1017" tvc-guide-stationid="21865" tvg-group="" tvg-logo="",KTCI-DT3
http://{{ .IPADDRESS }}/play/tuner/TPTL-8037961156532819105

#EXTINF:-1 channel-id="1023" channel-number="1023" tvc-guide-stationid="34425" tvg-group="" tvg-logo="",WUCW-DT
http://{{ .IPADDRESS }}/play/tuner/TPTL-8037961156532819105

#EXTINF:-1 channel-id="1041" channel-number="1041" tvc-guide-stationid="36071" tvg-group="" tvg-logo="",KPXM-DT
http://{{ .IPADDRESS }}/play/tuner/IONHD-8070479734704376105

#EXTINF:-1 channel-id="1111" channel-number="1111" tvc-guide-stationid="58646" tvg-group="" tvg-logo="",CNN HD
http://{{ .IPADDRESS }}/play/tuner/CNNHD-7551018075264600105

#EXTINF:-1 channel-id="1167" channel-number="1167" tvc-guide-stationid="73502" tvg-group="" tvg-logo="",KSTC-DT2
http://{{ .IPADDRESS }}/play/tuner/MeTV-4757730922757252105

#EXTINF:-1 channel-id="1168" channel-number="1168" tvc-guide-stationid="75977" tvg-group="" tvg-logo="",KSTC-DT4
http://{{ .IPADDRESS }}/play/tuner/KSTC2-8760927753427221105

#EXTINF:-1 channel-id="1174" channel-number="1174" tvc-guide-stationid="92038" tvg-group="" tvg-logo="",WCCO-DT2
http://{{ .IPADDRESS }}/play/tuner/START-8313187410358697105

#EXTINF:-1 channel-id="1182" channel-number="1182" tvc-guide-stationid="52331" tvg-group="" tvg-logo="",WUCW-DT2
http://{{ .IPADDRESS }}/play/tuner/COMET-6532506444970079105

#EXTINF:-1 channel-id="1183" channel-number="1183" tvc-guide-stationid="69640" tvg-group="" tvg-logo="",WUCW-DT3
http://{{ .IPADDRESS }}/play/tuner/CHARG-6872374361091213105

#EXTINF:-1 channel-id="1205" channel-number="1205" tvc-guide-stationid="32645" tvg-group="" tvg-logo="",ESPN HD
http://{{ .IPADDRESS }}/play/tuner/ESPND-7642769970651506105

#EXTINF:-1 channel-id="1206" channel-number="1206" tvc-guide-stationid="45507" tvg-group="" tvg-logo="",ESPN2 HD
http://{{ .IPADDRESS }}/play/tuner/ES2HD-7642769970651506105

#EXTINF:-1 channel-id="1208" channel-number="1208" tvc-guide-stationid="82547" tvg-group="" tvg-logo="",FS1 HD
http://{{ .IPADDRESS }}/play/tuner/FS1HD-5628918118244997105

#EXTINF:-1 channel-id="1209" channel-number="1209" tvc-guide-stationid="59305" tvg-group="" tvg-logo="",FS2 HD
http://{{ .IPADDRESS }}/play/tuner/FS2-8827972050046699105

#EXTINF:-1 channel-id="1223" channel-number="1223" tvc-guide-stationid="61854" tvg-group="" tvg-logo="",Golf Channel HD
http://{{ .IPADDRESS }}/play/tuner/GOLFD-7547469904399748105

#EXTINF:-1 channel-id="1224" channel-number="1224" tvc-guide-stationid="60316" tvg-group="" tvg-logo="",Tennis Channel HD
http://{{ .IPADDRESS }}/play/tuner/TNND-5272992504836762105

#EXTINF:-1 channel-id="1250" channel-number="1250" tvc-guide-stationid="74436" tvg-group="" tvg-logo="",Bally Sports North HD
http://{{ .IPADDRESS }}/play/tuner/BSNRD-5676071061539263105

#EXTINF:-1 channel-id="1313" channel-number="1313" tvc-guide-stationid="58774" tvg-group="" tvg-logo="",Big Ten Network Minnesota HD
http://{{ .IPADDRESS }}/play/tuner/B10HD-7916016111854078105

#EXTINF:-1 channel-id="1403" channel-number="1403" tvc-guide-stationid="58452" tvg-group="" tvg-logo="",USA Network HD
http://{{ .IPADDRESS }}/play/tuner/USAHD-6198908101479551105

#EXTINF:-1 channel-id="1404" channel-number="1404" tvc-guide-stationid="42642" tvg-group="" tvg-logo="",TNT HD
http://{{ .IPADDRESS }}/play/tuner/TNTHD-5966517083150279105

#EXTINF:-1 channel-id="1405" channel-number="1405" tvc-guide-stationid="59337" tvg-group="" tvg-logo="",AMC HD
http://{{ .IPADDRESS }}/play/tuner/AMCHD-8004546766543596105

#EXTINF:-1 channel-id="1418" channel-number="1418" tvc-guide-stationid="64492" tvg-group="" tvg-logo="",BBC America HD
http://{{ .IPADDRESS }}/play/tuner/BBCAM-7159950156799115105

#EXTINF:-1 channel-id="1430" channel-number="1430" tvc-guide-stationid="64490" tvg-group="" tvg-logo="",truTV HD
http://{{ .IPADDRESS }}/play/tuner/TRTVD-5197383487287436105

#EXTINF:-1 channel-id="1434" channel-number="1434" tvc-guide-stationid="58515" tvg-group="" tvg-logo="",TBS HD
http://{{ .IPADDRESS }}/play/tuner/TBSHD-6937726884423880105

#EXTINF:-1 channel-id="1458" channel-number="1458" tvc-guide-stationid="66268" tvg-group="" tvg-logo="",Hallmark Channel HD
http://{{ .IPADDRESS }}/play/tuner/HCHD-7889068523651137105

#EXTINF:-1 channel-id="1459" channel-number="1459" tvc-guide-stationid="46710" tvg-group="" tvg-logo="",Hallmark Mystery HD
http://{{ .IPADDRESS }}/play/tuner/HMYS-7889068523651137105

#EXTINF:-1 channel-id="1802" channel-number="1802" tvc-guide-stationid="19548" tvg-group="" tvg-logo="",HBO HD
http://{{ .IPADDRESS }}/play/tuner/HBOHD-5232923399725817105

#EXTINF:-1 channel-id="1803" channel-number="1803" tvc-guide-stationid="10244" tvg-group="" tvg-logo="",HBO (PACIFIC)
http://{{ .IPADDRESS }}/play/tuner/HBO-W-5232923399725817105

#EXTINF:-1 channel-id="1804" channel-number="1804" tvc-guide-stationid="59368" tvg-group="" tvg-logo="",HBO2 HD
http://{{ .IPADDRESS }}/play/tuner/HBO2H-5232923399725817105

#EXTINF:-1 channel-id="1806" channel-number="1806" tvc-guide-stationid="10243" tvg-group="" tvg-logo="",HBO Signature
http://{{ .IPADDRESS }}/play/tuner/HBOSG-5232923399725817105

#EXTINF:-1 channel-id="1808" channel-number="1808" tvc-guide-stationid="16585" tvg-group="" tvg-logo="",HBO Family
http://{{ .IPADDRESS }}/play/tuner/HBOFE-5232923399725817105

#EXTINF:-1 channel-id="1810" channel-number="1810" tvc-guide-stationid="18429" tvg-group="" tvg-logo="",HBO Comedy
http://{{ .IPADDRESS }}/play/tuner/HBOCM-5232923399725817105

#EXTINF:-1 channel-id="1812" channel-number="1812" tvc-guide-stationid="18431" tvg-group="" tvg-logo="",HBO Zone
http://{{ .IPADDRESS }}/play/tuner/HBOZN-5232923399725817105

#EXTINF:-1 channel-id="1840" channel-number="1840" tvc-guide-stationid="21868" tvg-group="" tvg-logo="",Paramount+ with Showtime HD
http://{{ .IPADDRESS }}/play/tuner/SHOHD-6578292319676893105

#EXTINF:-1 channel-id="1841" channel-number="1841" tvc-guide-stationid="22532" tvg-group="HD" tvg-logo="",SHOWHDP
http://{{ .IPADDRESS }}/play/tuner/SHOHW-6578292319676893105

#EXTINF:-1 channel-id="1842" channel-number="1842" tvc-guide-stationid="11116" tvg-group="" tvg-logo="",SHO2e
http://{{ .IPADDRESS }}/play/tuner/SHO2e-6578292319676893105

#EXTINF:-1 channel-id="1846" channel-number="1846" tvc-guide-stationid="16153" tvg-group="" tvg-logo="",Showtime Showcase
http://{{ .IPADDRESS }}/play/tuner/SHOCe-6578292319676893105

#EXTINF:-1 channel-id="1848" channel-number="1848" tvc-guide-stationid="18086" tvg-group="" tvg-logo="",Showtime Extreme
http://{{ .IPADDRESS }}/play/tuner/SHOXe-6578292319676893105

#EXTINF:-1 channel-id="1852" channel-number="1852" tvc-guide-stationid="25274" tvg-group="" tvg-logo="",Showtime Familyzone
http://{{ .IPADDRESS }}/play/tuner/SHOFe-6578292319676893105

#EXTINF:-1 channel-id="1860" channel-number="1860" tvc-guide-stationid="35329" tvg-group="" tvg-logo="",The Movie Channel HD
http://{{ .IPADDRESS }}/play/tuner/TMCHD-9102031849685959105

#EXTINF:-1 channel-id="1862" channel-number="1862" tvc-guide-stationid="60951" tvg-group="" tvg-logo="",The Movie Channel Extra HD
http://{{ .IPADDRESS }}/play/tuner/TMCXe-9102031849685959105

#EXTINF:-1 channel-id="1871" channel-number="1871" tvc-guide-stationid="65687" tvg-group="" tvg-logo="",MGM+ HD
http://{{ .IPADDRESS }}/play/tuner/MGM+-7697030199876428105

#EXTINF:-1 channel-id="1873" channel-number="1873" tvc-guide-stationid="67929" tvg-group="" tvg-logo="",MGM+ Hits HD
http://{{ .IPADDRESS }}/play/tuner/MGMHT-7697030199876428105

#EXTINF:-1 channel-id="1874" channel-number="1874" tvc-guide-stationid="74073" tvg-group="" tvg-logo="",MGM+ Marquee HD
http://{{ .IPADDRESS }}/play/tuner/MGMMR-7697030199876428105

#EXTINF:-1 channel-id="1875" channel-number="1875" tvc-guide-stationid="103828" tvg-group="" tvg-logo="",MGM+ Drive-In HD
http://{{ .IPADDRESS }}/play/tuner/MGMDR-7697030199876428105

The channel-id and channel-number I used are the standard Xfinity channel numbers. The tvc-guide-stationid values are the Gracenote Station IDs so you get the correct guide data.

The play/tuner/ URL is <callsign>-<deeplink>, which I got by tuning each channel I wanted through Xfinity Stream in browser, and grabbing the deeplink from the redirect when the channel was playing. I believe the callsigns I used were from Zap2it, but I'm not 100% on that.

I've moved to using tildes rather than dashes between tuning values like that in recent years, but the Xfinity scripts probably still use dashes -- so stick with that to start, but maybe we'll update to tildes as we're getting you up-and-running.

EDIT: Actually, if you're in MN, the repo M3U (posted here too) should be a good (and accurate) starting point. I don't know of way to automate the process of getting all the deeplink values you need, but if figure one out, I'll add it to Project One-Click.

1 Like

Thanks, that's all I needed to stop messing with trying to capture it from the browser console. There surely is a way, but I haven't been able to find it in several hours of testing. Knowing one correct tuning ID, I have not been able to capture it in the browser Networking > XHR tab while starting the known channel. I'll go through them one by one using your .m3u as a starting point. My guide has roughly 1400 channels in it, but many of them are SD versions with HD duplicates, TV-GO channels (which may or may not tune), foreign language channels I don't need, etc. Once I get a working m3u, I'm happy to share with the community. My lineup is for GA, but I would imagine many of the national channels would match other users' setups.

That'd be great. I remember when I did it I went through and made favorites of the channels I cared about, and then tuned and grabbed deeplinks from Favorites. You can always go back and grab others later.

If your LinkPi is coming from China (so it's going to be a while), you could buy a Capture Card like this one:

Then you'd setup a CDVR Custom Channel Source to transcode input from the Capture Card. This creates a "virtual encoder". That virtual encoder can then be used in ah4c just like a hardware encoder. There's documentation on the forum about how to do this.

BTW, one thing to know about Xfinity in particular is that tuning via deeplinks in not quick. Channel surfing is definitely out, but obviously this doesn't really make a difference for recordings, and when you're tuning from the guide it's slow-ish, but usable.

The new pre-roll feature in ah4c allows you to insert a static image (like the ah4c splash pages I've posted here before, or you can even add fun, short videos (like Snack Canyon maybe?) to fill some of the time before streaming starts. I'm thinking it's maybe 20 seconds to tune for me, but I'm remote to the LinkPi.

Would m3u from HDHR Prime on Xfinity be of use?

Does it have Gracenote Station IDs in it? If so, then I'd say yes.

I'm actually using an HDHR Prime in my current setup, but Xfinity de-authorized my CableCARD, and I can't get anyone to re-authorize it. I figured I'd switch now anyway since they will likely die soon.

Anyway, is there somewhere in my current Setup I should be able to find/generate the m3u from my HDHR lineup?

EDIT: answered my own question and downloaded the m3u from sources > manage > copy m3u url. The downloaded URL contains some of my channels, but none of the IDs that will be needed to stream as far as I can tell.

#EXTINF:-1 channel-id="1032" tvg-id="1032" tvg-chno="1032" tvg-logo="https://tmsimg.fancybits.co/assets/s70436_ll_h15_ac.png?w=360&h=270" tvc-guide-stationid="63861" tvg-name="WGTADT" group-title="SD",METVN
http://192.168.99.61:8089/devices/1324A55C/channels/1032/stream.mpg?format=ts&codec=copy

That's one example channel. It has some of the same data, but not all.