Chrome Capture for Channels

    args: [
      '--no-sandbox',
      '--disable-setuid-sandbox',
      '--window-size=1920,1080', // Set viewport resolution
      '--disable-notifications', // Mimic real user behavior
      '--disable-extensions', // Avoid using extensions that might be detected
      '--disable-dev-shm-usage',
      '--disable-background-timer-throttling',
      '--disable-client-side-phishing-detection',
      '--disable-default-apps',
      '--disable-hang-monitor',
      '--disable-popup-blocking',
      '--disable-session-crashed-bubble',
      '--disable-sync',
      '--hide-scrollbars',
      '--disable-notifications',
      '--no-first-run',
      '--disable-infobars',
      '--hide-crash-restore-bubble',
      '--disable-blink-features=AutomationControlled',
      '--enable-accelerated-video-decode',
      '--enable-accelerated-video-encode',
      '--enable-features=UseSurfaceLayerForVideoCapture',
      '--enable-gpu-rasterization',
      '--enable-oop-rasterization',
      '--disable-software-rasterizer',
      '--disable-gpu-vsync',
      '--enable-audio-output', // Ensure audio output is enabled
      '--disable-web-security',
    ],
    ignoreDefaultArgs: [
      '--enable-automation',
      '--disable-extensions',
      '--disable-default-apps',
      '--disable-component-update',
      '--disable-component-extensions-with-background-pages',
      '--enable-blink-features=IdleDetection',

These are my args.

There are still mods I need to make to get more stuff working like Peacock/Netflix/Prime and a few others I want to ad, but perhaps a docker would work better, not sure.

I want to say --enable-gpu and --use-gl gave some issues so I disabled them.

Using those doesn't help a ton:

image

Here's the ones I added:

'--use-gl=angle',
'--use-angle=gl-egl',
'--enable-features=VaapiVideoDecode',
'--ignore-gpu-blocklist',

I rebooted. Only way I could get it to work is CMD prompt and run script again..I get the popup box the separate screen. It runs well. The channels screen is just a tad behind but is mostly smooth after it all loads. Don't I need to download HEVC to be able to do hardware accel and change my fpms?

Do I need to set up the node anytime I want to record? What about if you want to set up a recording while you're away?

what about
'--enable-gpu',
'--use-gl=angle',
'--use-angle=gl-egl',
'--enable-features=VaapiVideoDecode',
'--ignore-gpu-blocklist',
'--enable-webgl',
'--enable-webgl2',

So if I add these, there is a chance my 4 thread can handle this puppy? hmm I will give it a go.

You shouldnt have to, just type node main.js

And I get no sound when I manually hit record on the saved file. I need to give up for awhile and sort out some of this

You wont get sounded in the headed mode on windows, it will be on channels dvr on android/mac

even on recorded shows?

Is it muted on nbc.com? it needs to show as having sound enabled.

No, I just clicked on nbc.com and it had sound....

thanks for the help today Doug...this has given me a headache and I'm going to ponder this and reattack tomorrow. I did check my chrome app and I do have hardware acceleration going.

I tried those settings, it actually works worse. (4 threads cpu) - with a 1070 gpu

Something about the code just needs rewriting, to be fair using obs on a suboptimal cpu will also result in stuttering as you have to disable hw accel.

Ahh that's interesting, wonder why

It seems to not like gpu rendering

So did any of you guys running NBC have problems with video freezing up while audio continues? I posted this before in the thread but since a lot of people are mentioning NBC now I'm wondering if others have seen it. Seems like NBC on Chrome capture has been about a 50% work/not work for me, which means it's unreliable. And by that I mean any of the NBC channels not just NBC itself.

Playback is perfectly smooth at 30fps, I wish I could get it to work all the time.

I wonder if it's some arg I have in Main.js that's causing this, here's what I have in there. I added disable vSync and video acceleration to the defaults.

        args: [
          '--disable-notifications',
          '--no-first-run',
          '--disable-infobars',
          '--hide-crash-restore-bubble',
          '--disable-blink-features=AutomationControlled',
          '--hide-scrollbars',
		  '--disable-gpu-vsync',
		  '--enable-accelerated-video-decode',
		  '--enable-accelerated-video-encode',
        ],
        ignoreDefaultArgs: [
          '--enable-automation',
          '--disable-extensions',
          '--disable-default-apps',
          '--disable-component-update',
          '--disable-component-extensions-with-background-pages',
          '--enable-blink-features=IdleDetection',
        ],```
1 Like

Checkout my ncc062 js

What's your thread count? I had issues on 4 thread i5 7600k

My i7 6700 handles NBC channels great

It's a ryzen 7 5800H with eight cores and 16 threads, horsepower is not a problem. I'll check out your .js and might just switch back to the default that came with capture and see if that takes care of it, because I probably don't need the acceleration anyway.

thats weird, you shouldn't have any issues with that core count.

Try this

args: [
  '--no-sandbox',
  '--disable-setuid-sandbox',
  '--window-size=1920,1080', // Set viewport resolution
  '--disable-notifications', // Mimic real user behavior
  '--disable-extensions', // Avoid using extensions that might be detected
  '--disable-dev-shm-usage',
  '--disable-background-timer-throttling',
  '--disable-client-side-phishing-detection',
  '--disable-default-apps',
  '--disable-hang-monitor',
  '--disable-popup-blocking',
  '--disable-session-crashed-bubble',
  '--disable-sync',
  '--hide-scrollbars',
  '--disable-notifications',
  '--no-first-run',
  '--disable-infobars',
  '--hide-crash-restore-bubble',
  '--disable-blink-features=AutomationControlled',
  '--enable-accelerated-video-decode',
  '--enable-accelerated-video-encode',
  '--enable-features=UseSurfaceLayerForVideoCapture',
  '--enable-gpu-rasterization',
  '--enable-oop-rasterization',
  '--disable-software-rasterizer',
  '--disable-gpu-vsync',
  '--enable-audio-output', // Ensure audio output is enabled
  '--disable-web-security',
],
ignoreDefaultArgs: [
  '--enable-automation',
  '--disable-extensions',
  '--disable-default-apps',
  '--disable-component-update',
  '--disable-component-extensions-with-background-pages',
  '--enable-blink-features=IdleDetection',

Hi Doug
reread all that you had me do yesterday. Went back in this morning to gather more data. Something I noted that I hadn't caught before......

I pulled up docker so I could watch what the container was doing when I clicked on "watch". As the program started and was loading, the docker container would start, then stop within seconds and not restart....that doesn't seem normal to me. Why wouldn't the container start and stay on during watching or recording and better yet, stay on if you told it to be on just like FRNDLY TV or Pluto TV containers?

Haven't figured out the lack of sound on the recordings yet, but what I'm struggling with is that if I want to watch or record, I need to bring up command and type in Node Main.js, then click on the show, reauthorize in separate panel that pops up, then show starts. Seems like if I must do this every time, there is no utility in this.

Any thoughts you might have to share would be appreciated.

Ran a quick 10 record test....video is smooth (I did some adjustments to frame rate) and also have sound now with the recording. At least I've gotten this far!