Introducing PrismCast: Browser-based Live TV Capture for Channels DVR and Plex

Is there a way to assign Spectrum to a channel you only give Sling and Hulu options for? IndiePlex, MoviePlex, and RetroPlex are all available on my Spectrum (at least they worked when I tested them earlier today). There may have been one or two others. I don't want.

Tip - I had been going through manually changing the Hulu/Sling/YouTube to Spectrum, but figured out do a bulk Change all to Spectrum, then Change all to Network and it'll reset the channels that work through their own network back to that, but will still leave the ones that need Spectrum as that. Nice.

Is there a way to assign Spectrum to a channel you only give Sling and Hulu options for?

The is in the documentation in the webUI. I'm going to point you there...for the sake of the community, I would appreciate it if we try to not clutter threads with documented/asked/answered topics.

IndiePlex, MoviePlex, and RetroPlex are all available on my Spectrum (at least they worked when I tested them earlier today). There may have been one or two others. I don't want.

Missed those - sorry about that...they will be built into the next release. In the meantime, explore the above.

@hjd I worked on Philo some today, and came up with this for a functioning "custom site profile":

{
  "name": "philo",
  "profiles": {
    "philo": {
      "extends": "apiMultiVideo",
      "channelSelection": {
        "strategy": "tileClick",
        "matchSelector": "div.tileRowGroupContainer___dAvUa:has(img[alt*=\"{channel}\" i]) li:first-of-type button.guideTileButton___EH1ud h3",
        "playSelector": "[aria-label^=\"Play live with\"]"
      },
      "waitForNetworkIdle": true
    }
  },
  "version": 1,
  "domains": {
    "philo.com": {
      "profile": "philo",
      "provider": "Philo",
      "providerTag": "philo"
    }
  }
}

Since this is the first one of these I've done, I thought I'd run it past you to see if this strategy is correct.

In the case of Philo, the best item to click appeared to be the one just to the right of the channel logo, which in turn has a pop-up where you need to choose to play the channel live.

Does this seem about right?

Feels right - you may or may not need waitForNetworkIdle...try without first. This exists for sites that are dynamically loading and not delivering enough HTML/JS before we can do something meaningful with it. It's a conservative setting and you might want to use it until it's up and running, and then try without it.

The matchSelector...that feels brittle, but I haven't looked closely. I'm glad you're kicking the tires on the provider pack system...I intended it as a way to easily extend support to sites I don't natively support and be able to share them with the community, complete with channels.

If you can tune, you're good to go I would say. :smile:

v1.5.2 should have all those missing Spectrum channels.

1 Like

Great work, congrats and thanks @hjd. Just in case it helps, I have all my Sling channels up and running, but I get this error only when tunning HGTV. If I try a couple of times it ends up working with no issue, but I always have to go through this a cuople of times. Channel Lineup Precaching is enabled; no custom channels added:

 [WARN] [hgtv-2qb6ef] Channel "HGTV" not found in Sling TV guide. Create a user-defined channel with one of the names below as the Channel Selector and https://watch.sling.com/dashboard/grid_guide/grid_guide_a_z as the URL. Available channels (19): declassified, degrassi, dharm sandesh, dinos 24/7, discover pakistan, discovery turbo, discovery turbo tv, disney channel, diya tv, jordan tv, jtv, jubao, judge faith tv, judge nosey, jus hindi, jus now, jus one, jus punjabi canada, wjxe-ld2.

 [ERROR] [hgtv-2qb6ef] Stream setup failed for https://watch.sling.com/dashboard/grid_guide/grid_guide_a_z: Channel selection failed: Could not find channel HGTV in Sling TV guide grid.

Great work, congrats and thanks @hjd.

Your welcome @uspino!

Just in case it helps, I have all my Sling channels up and running, but I get this error only when tunning HGTV. If I try a couple of times it ends up working with no issue, but I always have to go through this a cuople of times. Channel Lineup Precaching is enabled; no custom channels added:

[WARN] [hgtv-2qb6ef] Channel "HGTV" not found in Sling TV guide. Create a user-defined channel with one of the names below as the Channel Selector and https://watch.sling.com/dashboard/grid_guide/grid_guide_a_z as the URL. Available channels (19): declassified, degrassi, dharm sandesh, dinos 24/7, discover pakistan, discovery turbo, discovery turbo tv, disney channel, diya tv, jordan tv, jtv, jubao, judge faith tv, judge nosey, jus hindi, jus now, jus one, jus punjabi canada, wjxe-ld2.

Thanks for the report. I haven’t seen this issue before, but seen similar…interesting. It’s telling you that it’s only seeing 19 or so channels. I’ve seen the Sling website be occasionally flaky, but are you telling e it behaves this way every time? Is there a repeatable/consistent pattern you can point me to so I can take a closer look on my end?

Enjoy PrismCast!

Edit: I’ve tracked this down…there’ll be additional resiliency in the next PrismCast release to address this edge case. In your case, either Sling is a bit slower to respond than PrismCast wants you to be, or, your machine is a bit slower to process the website. Either way, it’s just enough to trigger this issue for you. Next release should address this. Thanks!

I run this on a dedicated pc and i have found via chatgpt to ignore the pkill window my system runs the PrisCast service upon boot up and i get a chrome window and the cmd window upon boot BUT all works with no issue so far and when i do the authentication it opens a tab in the running chrome window

I have been running this container for a few weeks. It works great through ChannelsDVR on my tablet, phone, and PC. However, when I access it through my GoogleTV Streamer, the audio starts about 20 seconds before the video and they are never in sync. How can I fix that?

Works great. Only problem is AXS-TV through DTV Stream. It doesn't load at all.

have you rebooted it? I only say that cuz I have one and it's a strong enough box that it never fully closes cdvr, so the only way for cdvr to do a complete refresh is reboot. I have yet to try prismcast again but I'll look out for this when I do.

Yeah on Windows it should be taskkill instead of pkill. Maybe @bnhf can make the change in the code with an OS conditional.

Issue on v1.5.2
Providers filter dropdown on the Channels tab acting wonky on Brave, Firefox and Edge.
Either doesn't dropdown, or if it does I can't scroll.

I actually made the change in the code BUT he did an update and boom back to cmd.exe window message
As I said im not worried as im on a dedicated PC for Channels and Prismcast

Lol, you can't change the code unless you're willing to do it with every release.

Awesome, thanks, let me know if I can help with any further testing.

Yup when i did it i thought i needed to do so for it to work BUT seems just fine with no change and the cmd windows shows the error

I just looked at doing that, but there are actually multiple commands used that don't work in Windows environments. Several have to do with "refreshing" Chrome itself, to keep it healthy. pkill appears to be the only one you're seeing, but others are likely failing behind the scenes.

It can be done of course, but it's not a straight swap one command for another to achieve the same functionality.

I have been running prismcast on my M2 Mac Mini for a couple weeks, with mostly positive results. I really only want to use it to view sports on ESPN channels. I have not had any issues watching games live on those channels over the past few weeks. But yesterday (after I had just upgraded to 1.5.2) I attempted to record a MLB game in the afternoon. Around 2hrs 37min into the recording, when the stream goes to a commercial break, the video is frozen at the end of the commercial. The rest of the game had the actual audio playing from the game but with a static image on the screen of the commercial. Anything I should attempt to try to prevent this from happening again?

It’s going to happen from time to time. This isn’t a PrismCast issue per se…it’s a Chrome, site-specific, and network issue…and a bit of a Channels DVR issue. The issues occur because “something” happens to the video stream…that something can be:

  • Chrome misbehaving.
  • The site you’re using for ESPN flakes out or has an issue.
  • Network/Internet connectivity hiccup.
  • System isn’t able to keep up with what’s going on (e.g. you’re trying to stream a bunch of things or running an LLM simultaneously on your machine or whatever…). That’s going to cause issues as well.

PrismCast tries it’s best to detect and recover from these situations…Chrome becomes “less reliable” shall we say, after a few hours…so PrismCast restarts it on a regular basis to keep it performant.

When sites flake out or network issues occur…PrismCast tries to detect those as well and self-heal, informing Channels DVR along the way. Works 80-90% of the time these days. If PrismCast triggers its recovery logic too aggressively, you’ll have streams always restarting with just modest streaming delays. It’s a balancing act.

One thing you can try: use a different site for ESPN…the different sites (ESPN.com vs D+ vs Hulu etc) all have different characteristics and some may work better for you than others. There’s no rhyme or reason necessarily…it’s very dependent on your own circumstances.

TL;DR: there is no magic bullet. Unlikely to be version-dependent, but open to the possibility that it is…but since the only changes between 1.5.1 and 1.5.2 were adding some more Spectrum channels, seems less likely. :smile: (unless it was a different version you were upgrading from).

Ensuring that streaming is always as reliable as it can be is a major focus area for me…trying to make PrismCast more bulletproof in imperfect conditions is a major reason why I created it. Appreciate the feedback, as always…hope the context helps folks understand a bit more of what’s going on.