BETA: Chrome Capture for Channels

Yes, I set it up on my NAS, but the performance was very so-so, even on a system with an i5 running with 96GB of RAM. I've found using my Mac Mini M1 setup works far more smoothly for launching CC4C channels. The Chrome installation on the NAS is the wonky part... and it meant I couldn't reliably use the "button-click" method in main.js to unmute Peacock live streaming channels (like REELZ). The Mac allows for easier customization until someone can figure out how to bake all that into the install file.

3 Likes

Has anyone tried a hybrid of CC4C and HDMI for Channels?

I'm thinking about the following:

  • Source: Raspberry Pi with HDMI out to the Link Pi, streamed as a custom channel in Channels
  • Tuning: auto-load URLs in Chrome on the Pi (and deal with popups / auto-full screen / etc). Similar to what the tuning in CC4C accomplishes.

If this worked, it feels like the best of both worlds:

  • Flexibility of CC4C: load any URL that might not have a Fire or ATV app, and don't have to worry about apps that don't allow deeplinking

  • Quality of HDMI: high resolution and frame rate without needing a sizable PC

Plenty of people here are smarter than me.... what am I missing?

1 Like

Not sure what happened BUT my CC4C NBC channels are not sizing properly. Ive changed nothing.....But i just remoted in to my dedicated DVR pc and when i load up a CC4C channel any nbc the chrome browser window does not show up BUT the channel plays ok but boxed style?? ive rebooted everthing but no love

You'll have way more issues than that with NBC, namely that at least half of the recordings will freeze up and fail at some point in the vid.

Totally unreliable.

Ive had no major issues with NBC as i dont watch alot or record NBC channels .... BUT it all worked fine till recently then just poof weird chrome issue not showing up etc etc

I heard a rumor that support for AAC audio capture is added around Chrome 128

You can try it by changing main.js:

   mimeType: 'video/webm;codecs=H264,mp4a.40.2',
1 Like

@tmm1
No luck on mine, unfortunately. Windows 11 PC using Chrome 128.0.6613.85, error message below;

node:internal/process/promises:289

  •        triggerUncaughtException(err, true /* fromPromise */);*
    
  •        ^*
    

DOMException: NotSupportedError: Failed to construct 'MediaRecorder': Failed to initialize native MediaRecorder the type provided (video/webm;codecs=H264,mp4a.40.2) is not supported.

Okay, maybe it's in the next version or my information is wrong.

Can try:

   mimeType: "video/webm;codecs=avc1,mp4a.40.2",

EDIT: it works on macOS reportedly

Same error

I have recently compiled a list for those who have Sling Blue+Orange+Sports Extra (I'm sure I'm not the only one who took the 199 deal :D). I'm using Dish numbers because...thats somewhat makes sense :smiley:

#EXTM3U

#EXTINF:-1 channel-id="NBC Local" tvg-chno="6" tvc-guide-stationid="10991",NBC Local (WTVJ)
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/4db1d24ace55499893fc611683c2a88f/watch

#EXTINF:-1 channel-id="LOCNOW" tvg-chno="100" tvc-guide-stationid="1410", LOCALNOW
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/37fd997d86ff4fdd869184648f7780c7/watch

#EXTINF:-1 channel-id="USA (East)" tvg-chno="105" tvc-guide-stationid="58452",USA (East)
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/35b320ac77ce4a2fbaf685e401933dc1/watch

#EXTINF:-1 channel-id="CC" tvg-chno="107" tvc-guide-stationid="62420", Comedy Central
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/7a0ff80be0c14f4da6b6cc510b9be57b/watch

#EXTINF:-1 channel-id="lifetime" tvg-chno="108" tvc-guide-stationid="60150", LIFEHD
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/5f079b9fa8c3430fa692deb662d82d8e/watch

#EXTINF:-1 channel-id="FOOD" tvg-chno="110" tvc-guide-stationid="50747",Food Network
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/4c8d7953714d4fa88a4d541d07fd031b/watch

#EXTINF:-1 channel-id="HGTV" tvg-chno="112" tvc-guide-stationid="49788", HGTV
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/c763c4c3001f4a04970bca35000c0ded/watch

#EXTINF:-1 channel-id="E! (East)" tvg-chno="114" tvc-guide-stationid="61812",E! (East)
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/eb6e6c19dbaa498cbe5acfc45d3f0ea7/watch

#EXTINF:-1 channel-id="ae" tvg-chno="118" tvc-guide-stationid="51529", AETVHD
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/8ac3a961c5b0d48ebdd6c90b52cfec46/watch

#EXTINF:-1 channel-id="HISTORY" tvg-chno="120" tvc-guide-stationid="57708", HISTORY
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/a0b2c49be7814fa4bf1e381b7f12ce55/watch

#EXTINF:-1 channel-id="VICE" tvg-chno="121" tvc-guide-stationid="65732", VICE
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/7c17236f677446ec967b12002e713939/watch

#EXTINF:-1 channel-id="SyFy (East)" tvg-chno="122" tvc-guide-stationid="58623",SyFy (East)
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/385c71f4210f457eb393041e36ed50b2/watch

#EXTINF:-1 channel-id="BET" tvg-chno="124" tvc-guide-stationid="63236", BET
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/6197aeac25ae4d0f92b06b411fc021a6/watch

#EXTINF:-1 channel-id="Bravo (East)" tvg-chno="129" tvc-guide-stationid="58625",Bravo (East)
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/76fef014faccdafbbca947aca264d9bf/watch

#EXTINF:-1 channel-id="AMC" tvg-chno="131" tvc-guide-stationid="59337",AMC
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/21d18937ced74ecfbba333476d6f4270/watch

#EXTINF:-1 channel-id="IFC" tvg-chno="133" tvc-guide-stationid="59444", IFC
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/0d9871a58b0e452eab0faf29ef28bc99/watch

#EXTINF:-1 channel-id="BBCA" tvg-chno="135" tvc-guide-stationid="64492",BBC America
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/2a915617329d4e87b5a83b68c39b9229/watch

#EXTINF:-1 channel-id="fx" tvg-chno="136" tvc-guide-stationid="58574", FXHD
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/2f5c3abe53004a3db6b236739c12a955/watch

#EXTINF:-1 channel-id="TNT" tvg-chno="138" tvc-guide-stationid="42642", TNT
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/d74f03db90624c769e0c6d4c9745660d/watch

#EXTINF:-1 channel-id="TBS" tvg-chno="139" tvc-guide-stationid="58515", TBS
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/f2763f605b2d4282a16d21f539512f76/watch

#EXTINF:-1 channel-id="espn" tvg-chno="140" tvc-guide-stationid="32645", ESPNHD
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/ca0cad8dbb4a4e68962810d8a6aa8b6a/watch

#EXTINF:-1 channel-id="espnu" tvg-chno="141" tvc-guide-stationid="60696", ESPNUHD
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/b716a5f8c9d34028973c560dda470329/watch

#EXTINF:-1 channel-id="espnews" tvg-chno="142" tvc-guide-stationid="59976", ESPNWHD
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/5664957697054ba0a3937a1af221bd1a/watch

#EXTINF:-1 channel-id="espntwo" tvg-chno="143" tvc-guide-stationid="45507", ESPN2HD
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/2ad976f9aa4b4796a52ae3d64b50db9c/watch

#EXTINF:-1 channel-id="fs2" tvg-chno="149" tvc-guide-stationid="59305", FS2HD
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/2173abf2ce324fe6837c8ab10c4a22cd/watch

#EXTINF:-1 channel-id="fs1" tvg-chno="150" tvc-guide-stationid="82547", FS1HD
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/0c6964d26bcd450cb7d8c8af10b9da20/watch

#EXTINF:-1 channel-id="mlbn" tvg-chno="152" tvc-guide-stationid="62081", MLBHD
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/8dc2e07d8d954628a0a80231d18f8667/watch

#EXTINF:-1 channel-id="mlbsz" tvg-chno="153" tvc-guide-stationid="55659", MLBSZ1
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/22ecb96246a64361a9d5ab879eae6ec9/watch

#EXTINF:-1 channel-id="nfln" tvg-chno="154" tvc-guide-stationid="45399", NFLHD
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/2f5c3abe53004a3db6b236739c12a955/watch

#EXTINF:-1 channel-id="nflrz" tvg-chno="155" tvc-guide-stationid="65025", NFLNRZD
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/7bd920fabfd242018e3e5ea5469b1e88/watch

#EXTINF:-1 channel-id="nbatv" tvg-chno="156" tvc-guide-stationid="45526", NBATV
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/1a1794a8bc26d44dab00c4d0e4d2c523/watch

#EXTINF:-1 channel-id="nhln" tvg-chno="157" tvc-guide-stationid="58690", NHLHD
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/1f4b73a273aa4e588a320bae0b0c763b/watch

#EXTINF:-1 channel-id="FUSE" tvg-chno="164" tvc-guide-stationid="59116", FUSE
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/fba55399460f4a7b8d3d436793dc0f90/watch

#EXTINF:-1 channel-id="AXSHD" tvg-chno="167" tvc-guide-stationid="28506", AXSHD
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/fa61fd21b701452c92fd37a70770f460/watch

#EXTINF:-1 channel-id="NICKJR" tvg-chno="169" tvc-guide-stationid="19211", NICKJR
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/4b83fba5aba1401d9bb00f1bf9a357b4/watch

#EXTINF:-1 channel-id="disney" tvg-chno="172" tvc-guide-stationid="59684", DISNHD
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/0e183596617d4425b9026cbf9603984b/watch

#EXTINF:-1 channel-id="CARTOON" tvg-chno="176" tvc-guide-stationid="60048", CARTOON
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/ab508c097c5b41cbb0626dcc3fc9470a/watch

#EXTINF:-1 channel-id="FREEFORM" tvg-chno="180" tvc-guide-stationid="10093", FREEFRM
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/e4096cf09e774670beea3fd7c5887e09/watch

#EXTINF:-1 channel-id="DSCHD" tvg-chno="182" tvc-guide-stationid="56905", Discovery
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/73653704f85b4bde9855ef29a6d3196e/watch

#EXTINF:-1 channel-id="TLC" tvg-chno="183" tvc-guide-stationid="57391", TLC
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/793b8cc7bdca43d9acb91432e1ccd24d/watch

#EXTINF:-1 channel-id="ID" tvg-chno="192" tvc-guide-stationid="65342", ID
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/23d8c4d8b9cc4ed19771ab26f45e9867/watch

#EXTINF:-1 channel-id="TRVL" tvg-chno="196" tvc-guide-stationid="59303", TRAV
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/48fed0bf95ed4756ad5515e5c59bb64b/watch

#EXTINF:-1 channel-id="natgeo" tvg-chno="197" tvc-guide-stationid="49438", NGCHD
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/0245123bd2154a74b101db99f3e96f11/watch

#EXTINF:-1 channel-id="CNN" tvg-chno="200" tvc-guide-stationid="58646", CNN
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/eb6c608319dc4328a9aa5bea1307cbaf/watch

#EXTINF:-1 channel-id="HLN" tvg-chno="202" tvc-guide-stationid="64549", HLN
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/06a8cbeef6ab42f387044dfc07981901/watch

#EXTINF:-1 channel-id="foxnews" tvg-chno="205" tvc-guide-stationid="60179", FNCHD
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/e78cd8c7cca443cba7a70c6008c0291f/watch

#EXTINF:-1 channel-id="MSNBC" tvg-chno="209" tvc-guide-stationid="16300",MSNBC
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/b708785d33964014896ab636042af863/watch

#EXTINF:-1 channel-id="TRUTV" tvg-chno="242" tvc-guide-stationid="64490", truTV
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/68fb55b6e7e84cccaa24f4ef48006dde/watch

#EXTINF:-1 channel-id="motortrend" tvg-chno="246" tvc-guide-stationid="31046", MOTORTREND HD
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/c7799d13850f4d67b7437e24e72d4f8b/watch

#EXTINF:-1 channel-id="comet" tvg-chno="289" tvc-guide-stationid="97051", COMET
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/6ee46b954518414f88b9375c2cab191b/watch

#EXTINF:-1 channel-id="charge" tvg-chno="290" tvc-guide-stationid="102148", CHARGE
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/a0fd1a33fa5840dfb466dc85db4b132d/watch

#EXTINF:-1 channel-id="MGM+" tvg-chno="292" tvc-guide-stationid="68409", MGM+ Drive-in
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/f0111af39c5d4ff1b3ca6c57a27efcb5/watch

#EXTINF:-1 channel-id="get" tvg-chno="373" tvc-guide-stationid="82563", GET
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/ab5068729265472a8d34d5a650c465b0/watch

#EXTINF:-1 channel-id="bein" tvg-chno="392" tvc-guide-stationid="76950", BEIN1HD
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/9125fbd1c6cd4c93b01387201878f063/watch

#EXTINF:-1 channel-id="tennis" tvg-chno="400" tvc-guide-stationid="60316", TENISHD
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/3d94848a5be145d98cd07107a0f33aed/watch

#EXTINF:-1 channel-id="golf" tvg-chno="401" tvc-guide-stationid="61854", GOLFHD
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/e7c98734f996492187bb868ce5655a0e/watch

#EXTINF:-1 channel-id="acc" tvg-chno="402" tvc-guide-stationid="111871", ACC
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/d3d1428e9fea47eab11a4f35f0bda64e/watch

#EXTINF:-1 channel-id="secn" tvg-chno="404" tvc-guide-stationid="89714", SECH
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/412b4b124e7f425e9a4e2bbaddcbe168/watch

#EXTINF:-1 channel-id="btn" tvg-chno="405" tvc-guide-stationid="58321", BIG10HD
chrome://localhost:5589/stream?url=https://watch.sling.com/1/channel/0984387944df47b58a687d60babc2c43/watch


I'm running the docker stack on a NUC12 with quick sync passthrough enabled. Still working on trying to get a better quality and the full screen issue is a pain. YTTV

If I set chrome to full screen via VNC it looks great but as soon as I stop watching and then starting again it defaults back to non full screen. Any way to set it to kiosk on startup?

For quality its looking good but not as good as the chrome directly. I have my size and quality set to 1080x720 and video=9500000 and its looking good but I think it could be better.
The container sees the dri but I don't see any usage when looking at intel_gpu_top
# ls -l /dev/dri
total 0
drwxr-xr-x 2 root root 80 Jul 25 21:13 by-path
crw-rw---- 1 root video 226, 0 Jul 25 21:13 card0
crw-rw---- 1 root render 226, 128 Jul 25 21:13 renderD128

This thread is for YTTV via TV everywhere. You will have better help in one of the threads about what you are using, chrome capture or hdmi capture. Try posting over there so as not to confuse people that are looking for YTTV TVE help that won’t have a clue about what you’re talking about.

Edit: this post has now been moved to the correct thread so please disregard.

I'm using the cc4c docker compose that @bnhf posted in this thread so I'm not following why or what I should be posting in another thread. This thread is for Chrome Capture for Channels which is what I'm asking about. Did I miss something?

I moved your post. It was in the Provider - YouTube TV topic. Provider - YouTube TV - #1068

I can report is does not work on my Mac, cc4c installed natively (not docker) and Chrome 128.0.6613.85.

Looking for some help on this please....

I've just set this up on a Windows 10 PC and am having an issue getting the video end to work.

I'm testing with the BBC Weather Page for my Region this is my M3U:

#EXTM3U
#EXTINF:-1 channel-id="BBC Weather",BBC Weather
chrome://192.168.1.15:5589/stream?url=http://www.bbc.co.uk/weather/ex11

When I try to watch it from the Guide in the WEBUI it starts the correct page in Chrome on the PC and the window says remux starting but I never get video showing. It then opens another window in Chrome with the same page and keeps doing that until I hit stop.

In the CC4V window on the PC I get the message "failed to stream EX11 - BBC Weather TragetCloseError Waiting for selector 'video' failed".

This is a photo of the complete CC4C window - anything obvious that I'm doing wrong or have missing? Thanks

Does cc4c work with static webpages? I thought there had to be some sort of video or animation.

1 Like

Doh!!! That's it! I've just tested it again using the weatherscan example and now it's working. Something is still not great as the display is slow and pixelated but at least I have something now.

Thanks

I have been trying to capture M3U streams from my local news stations but the M3U streams seem to change every other day. I found this similar thread.

I was thinking with Chrome Capture, I would be able to capture the news feed as the URL does not change but what I am running into is that the website requires a mouse click to activate the news stream. If I click on the feed, I can what the stream through Channels / Chrome Capture. I was seeing if some of these auto mouse click utilities would be a solution to activate the stream but there does not seem to be a way to configure it based upon browser activity or location on the screan. Is there a utility or script out there that would be able to provide that single click needed to activate the stream?

#EXTINF:-1 channel-id="ABC Local" tvc-guide-stationid="11624",ABC Local (WKRN)
chrome://localhost:5589/stream?url=https://www.wkrn.com/what-to-watch/watch-news-2-live/?brand=abc&callsign=wkrn

https://www.wkrn.com/what-to-watch/watch-news-2-live/

A user here was trying to get DTV/Stream working with CC4C with a macro script but...didn't really have much success.

You might have more luck using Haystack News (via CC4C or even better, using ah4c (or adbtuner if they have a streamlink))