Chrome HDMI for Channels (CH4C): Chrome channel tuner plus HDMI encoder

@dravenst

PR#1 submitted with DirecTV Stream support.

This is going to be an excellent alternative to PrismCast, which only supports a single stream for this provider. In addition, given ch4c's hybrid use of Chrome + HDMI Encoder, this is a far better solution for remote users, as the encoded stream can be tailored more readily to the connection available. The ability to use a low power PC is also a big plus.

DirecTV Stream Support + M3U Playlist Enhancements

DirecTV Stream — New Service

Adds full DirecTV Stream support as a new streaming service source.

  • Channel discovery (services/directv-service.js): Navigates to the DirecTV Stream guide page and extracts the full channel lineup directly from the React/Redux store via page.evaluate(). Captures channel name, call sign, channel number, station ID (for Channels DVR EPG matching via tvc-guide-stationid), and logo. Local network affiliates (ABC, CBS, CW, Fox, NBC, PBS) are cross-referenced so the bare network name maps to the correct affiliate entry.
  • Login (login-manager.js): Implements a robust two-step authentication flow (email → Continue → password → Sign In). Login-state detection uses a polling approach that watches for both URL redirects away from stream.directv.com and the appearance of a login form in the DOM, avoiding false "already logged in" results caused by the SPA's delayed auth redirect.
  • Post-login interstitials: After login (and on every "already logged in" check), two interstitial screens are automatically handled:
    • Profile selector (/user-profiles): Detected by URL, waits for profile tiles to render, then clicks the first profile.
    • Sports scores overlay: Polls for a "Hide Scores" button and clicks it. Only runs when a profile was actually selected in the current session, making the "already logged in" fast path a near-instant no-op when no interstitials are pending.

M3U Playlist Enhancements

  • ?services= filter: /m3u-manager/playlist.m3u?services=directv,sling returns only channels belonging to the specified comma-separated service(s).
  • ?sort= parameter: /m3u-manager/playlist.m3u?sort=number (default, existing behavior) or ?sort=name (alphabetical). Both params are independent and combinable: ?services=directv&sort=name.
  • Bulk enable/disable: Enable All / Disable All buttons added to the M3U Manager UI for DirecTV and Sling, positioned next to the "Show Enabled Only" toggle. Backed by a new PATCH /m3u-manager/channels/:service/bulk-enable endpoint.
  • Per-service last-refresh timestamps: Each service tracks and displays when its channel list was last refreshed, consistent with the existing Sling behaviour.

Bug Fixes

  • Channels DVR URL construction: CHANNELS_URL values with trailing slashes or embedded port numbers no longer produce malformed API URLs. A buildCdvrUrl() helper normalises the base URL before appending the port and path.
2 Likes

@dravenst

DirecTV Stream support continues to work well (combined with the couple of other small PRs I submitted):

I do have narrow vertical scroll bars on both virtual tuners though, and am wondering if there's a way to get rid of those?

I'm launching ch4c with these parameters:

@echo off
ch4c.exe -s "http://media-server8" -e "http://192.168.110.147/live/stream0:24.42:0:0:Encoder" -e "http://192.168.110.147/live/stream1:24.43:1921:0:MACROSILICON"
pause

Thank you @bnhf for your contributions! I went ahead and merged your PR's and created a new release

@bnhf Can you clarify where you're seeing the 'vertical scroll bars'? If you're referencing the browser scroll bars that show briefly when first loading the stream, I found some streaming sites seem to behave differently when scroll bars are hidden - probably due to bot detection? However, the scroll bars should only appear for a couple seconds and disappear once the stream goes to full screen.

@anon38303228 I'm feeling very good about the DirecTV Stream support we've added to this project. It's candidly a much better fit than PrismCast for DTV, as this project uses one instance of Chrome per virtual tuner, so multiple tuners are supported.

In addition, using an encoder to output a consistent output stream is also a plus -- and has been a significant boon for me to use remotely. I've been configuring H.265 output in the 6-8 Mbps range, which is great for remote use without transcoding.

Given that you're reasonably long on encoders, and all-in on DTV, would you be willing to give this a try? For whatever reason, this project has not gotten the attention it deserves, but it's an excellent combination of all the good aspects of cc4c combined with the power of a dedicated encoder.

1 Like

This project is supposed to work on MacOS, but it's untested by me. You'd need at least one HDMI port, and two would be better.

A Windows VM should be fine, but you'd definitely need to pass at least one HDMI port through to your virtualization (again, two would be better). The VM itself would need relatively modest resources, enough to run an instance of Chrome per HDMI port.

It's pretty easy to set up, so probably doesn't need a weekend, unless you need extra time for the hardware side.

One of the cool, I think underappreciated aspects of this project, is to be able to run a very complete Channels DVR solution -- including ch4c, on a system with modest resources.

However, in my use, this has been a great alternative to PrismCast for those looking for a more predictable and consistent output stream like we get from ah4c or ADBTuner. Set it up and I think you'll see what I'm talking about. :slight_smile:

1 Like

now tell your spouse you're gonna need 5 more encoders ... tell her it's for the community :rofl:

Throw in a dash of "butterfly effect", and the betterment of mankind isn't out of reach...

@anon38303228 I'm currently running on a windows system with 4 outputs (2 hdmi, 2 usb4). I have two Link Pi ENC1-V3 encoders connected (each supports two outputs), and it has been working well. I did test briefly the mac support when I added it, so it should work ok, but let me know if you end up trying it and see any issues.

My thinking is that you'd need to pass a graphics card with at least two physical connections for "displays". The GPU on the card would give you hardware acceleration for Chrome, plus the physical connectors would allow you to make connections to the encoder(s).

What are the specs on the system you're using for this?

Sorry to hear that, as it's been working well for me with DirecTV. I agree that it's unlikely the encoders are the issue. Seems more likely to be something related to the virtualization.

Thanks for giving it a try.

just got done setting this all up with the old basic exvist i never returned. there was a firmware update for it in january. :wink: that was the hardest part.
ch4c was fairly strait forward and just a quick test with winchannels say's it works great! so I've moved it to #2 priority below tve and msnow will give it a work out tomorrow. I'll report back.

The Setup:
CyberGeek Nano A1
N100 16gb Win11pro
1tb-nvme 1tb-ssd, 3 usb hdds
ChannelsDVR installed native
WSL/DockerDesktop/Portainer/ah4c w/ 4 ospreys on 2 LinkPi Enc1v3 w/usb
DirecTv Stream
HDHR Flex & Duo

  • CH4C 1 encoder - Exvist HDMI16E2025

they all sound great. hopefully the display and audio thing doesn't get to bulky. I only setup the 1 encoder but the display# flip still messed with me, so I can imagine multi-encoders getting real confusing fast. :left_right_arrow: :arrow_upper_right: :arrow_left: :leftwards_arrow_with_hook: :arrow_up: :arrow_lower_left:

found this in the remoteripple faq

When observing a remote device with several monitors, is there a zoom function or an option to pick a monitor to view?
Unfortunately, there are no such functions now. As a temporary workaround, you may configure extra ports on the host side (TightVNC Server → Configuration → Extra ports) for mapping specified screen areas so you can monitor and control them separately

also just found this in the TightVNC getting started pdf

After you install TightVNC, we also recommend you to download and set up DFMirage mirror 
display driver [EXE]. It allows TightVNC to gain the best performance under Windows. With 
DFMirage, TightVNC Server can detect screen updates and grab pixel data in a very efficient way, 
which decreases CPU consumption.

I just pull up the encoder stream on another device to verify what it's sending.

It's been a little bit since I originally set this up, but I don't remember anything too challenging with identifying which display is which. I use Chrome Remote Desktop when I want access beyond what's built-in to ch4c:

I can connect up looking at both desktops:

Or I can view either one individually:

Resource requirements are not zero however, and I avoid "peeking in" if there's not solid reason for it.

@anon38303228 @Shaggylive @jagrim Have any of you had a chance to experiment with the Instant Recording feature?

It can do everything from recording episodes from Amazon Prime, to ad hoc recordings from pretty much any website...

1 Like

so I messed up the offset thursday night, and somewhere along the way the login got screwed up in sandbox chrome. I cleared the saved credentials and manually cleared the chrome data, then logged in myself.
it recorded several hours last night. however the recordings starting this am had no audio. not sure if it's exvist or ch4c.
ocassionally the audio/vid falls out of sync, but catches back up. I assume this is chrome acting like a browser. I just changed their resolution to 720 as that's all I want from news anyway.

this project is super simple with no docker! the n100 can handle it, but I believe the video (chrome) would be smoother with more power. (I had 1 ch4c and 7/8 simultaneous recordings from other sources most of the evening)

I may move the exvist to an ah4c/osprey and use a linkpi/usb for CH4C so I can verify what is and is not exvist issues.

I've been wondering about that, but have not played. that reminds me, I think my playon is going to renew in a couple days. maybe i'll cancel it for now as I really don't use it much.