Chrome Capture for Channels

I agree, a new thread would be best. I'll try the new one tomorrow and post with info.

@KineticMan,

I hate to keep being a pain, but this time the installation didn't even try. See below

At C:\Users\Dave\espn4cc4c\windowsbootstrap.ps1:94 char:68
+ ... (sqlite3 "\$DB" "SELECT COUNT(*) FROM events;" 2>/dev/null || echo 0)
+                                                                ~~
The token '||' is not a valid statement separator in this version.
At C:\Users\Dave\espn4cc4c\windowsbootstrap.ps1:132 char:20
+   Write-Host ("✓ {0} programmes found" -f $count)
+                    ~
Unexpected token '{' in expression or statement.
At C:\Users\Dave\espn4cc4c\windowsbootstrap.ps1:132 char:19
+   Write-Host ("✓ {0} programmes found" -f $count)
+                   ~
Missing closing ')' in expression.
At C:\Users\Dave\espn4cc4c\windowsbootstrap.ps1:129 char:5
+ try {
+     ~
Missing closing '}' in statement block or type definition.
At C:\Users\Dave\espn4cc4c\windowsbootstrap.ps1:149 char:23
+ Write-Host ("✓ DONE")
+                       ~
The Try statement is missing its Catch or Finally block.
At C:\Users\Dave\espn4cc4c\windowsbootstrap.ps1:149 char:23
+ Write-Host ("✓ DONE")
+                       ~
Unexpected token ')' in expression or statement.
    + CategoryInfo          : ParserError: (:) [], ParseException
    + FullyQualifiedErrorId : InvalidEndOfLine

ok this time i made Claude fix the sytnax errors... 3rd time the charm? give it a shot tnx for patience.

Powershell doesn't like || as a separator, error again.

  • ... (sqlite3 "$DB" "SELECT COUNT(*) FROM events;" 2>/dev/null || echo 0)
  •                                                            ~~
    

The token '||' is not a valid statement separator in this version.

Cursed I’ll tell ya. I swear it ran for me before I posted too. I’ll fix later tonight unless u brave enough to try to fix it.

I'll mess around in there and let you know what I find.

Those look like bash errors. You are calling the windowsbootstrap.ps1 file right?

Yup. Running .\windowsbootstrap.ps1 -LanIp (my server ip address).

I changed one @" and "@ to @' and '@, now it starts the container but doesn't create the database. Yeah, bash errors showing up, here they are,

== first run: DB ensure + migrate (inside container) ==
: invalid optiont: -
set: usage: set [-abefhkmnptuvxBCEHPT] [-o option-name] [--] [-] [arg ...]
bash: -c: line 8: syntax error near unexpected token `fi'
bash: -c: line 8: `  fi'
== first run: generate plan + epg/m3u (inline) ==
: invalid option: set: -
set: usage: set [-abefhkmnptuvxBCEHPT] [-o option-name] [--] [-] [arg ...]
COUNT(*): line 11: $'\r': command not found
COUNT(*): -c: line 12: syntax error near unexpected token `('
COUNT(*): -c: line 12: `  cnt=\$(sqlite3 \$DB SELECT'

ok pushed yet another one... tnx for patience.

may i recommend a full nuke of your stack and folder.. then do a fresh pull ... this is the exact syntax i just tested 50000 times in a row.

powershell -NoProfile -ExecutionPolicy Bypass -File .\windowsbootstrap.ps1 -LanIp 192.168.86.80 -Port 8094

1 Like

Yes, that did it!

I see quite a few changes in the ps1 file, so thank you for all of your work!

@KineticMan,

Is there a way to change the default channels from 20010-20049? I'm asking because having the custom channels change the starting channel makes an exported epg show all channels as repeat programming. If I look at the out/epg.xml from the app, it has the correct tags, but the channels start at 20010. Thanks.

yea i know i need to adjust that.. i'll add something in the .env in a soon release. i think @bnhf has his project set to match my 20010 numbers so need to think through that.

dont ask why i used 20010-- i needed some random range when i was testing and never came back to that.

1 Like

And I just thought you already had 20009 channels! :laughing:

Yeah, if @bnhf could get this into Project One-Click for non-ABDTuner users. that would be great!

2 Likes

Can y'all make an install video? I would pay for it. I use the node jsband chrome 138. How are yall doing this

@KineticMan

I've just gotten the @dravenst version of the Chrome HDMI for Channels (ch4c) project up-and-running, which looks very promising for use with ESPN4cc4c. It's a Chrome capture project that uses a hardware encoder (like a LinkPi or URayCoder) to encode a stream, which allows the use of low-end processors for Chrome capture.

There's one wrinkle though, in that it uses a slightly different M3U URL format than its parent cc4c project. The URL needs to start with http:// instead of chrome://. Is there a reasonable way to make this an option for ESPN4cc4c?

to confirm, you want the m3u to look like the proposed one? if so, i'd imagine easy. maybe i could just have the m3u generator make a second m3u in that format for easy compatibilty.

current:

#EXTM3U
#EXTINF:-1 tvg-id="1" tvg-name="ESPN+ EPlus 1" tvg-chno="20010" group-title="ESPN+ VC",ESPN+ EPlus 1
chrome://192.168.86.72:5589/stream?url=http%3A%2F%2F192.168.86.72%3A8094%2Fvc%2F1

proposed:

#EXTM3U
#EXTINF:-1 tvg-id="1" tvg-name="ESPN+ EPlus 1" tvg-chno="20010" group-title="ESPN+ VC",ESPN+ EPlus 1
http://192.168.86.72:5589/stream?url=http%3A%2F%2F192.168.86.72%3A8094%2Fvc%2F1

That's what I'm thinking, and I like the idea of a second M3U.

Before you move forward on this let me do some testing to be sure there's nothing else that will need tweaking.

I'll get back to you on this.

@KineticMan

To make this work properly, I believe you'd need to add a couple of env vars as well:

CH4C_HOST=
CH4C_PORT=

Since cc4c and ch4c are separate projects, and would very likely be run a separate systems if they're both used (like by me) :slight_smile:. Plus they use different default ports.

This M3U worked for me in testing:

#EXTM3U

#EXTINF:-1 tvg-id="1" tvg-name="ESPN+ EPlus 1" tvg-chno="21010" group-title="ESPN+ VC",ESPN+ EPlus 1
http://quieter-4c:2442/stream?url=http://htpc6:8094/vc/1

Amazingly, I don't believe there are many people using ch4c, even though it allows one to use Chrome Capture on the same low end computers many use for CDVR server.

If you're inclined to add it, great -- but I could also include a sample M3U (expanded version of the above) that could be pasted in using "Text" in a CDVR Custom Channels setup. They'd use this text-based M3U with the XML link from ESPN4cc4c.

sure - on it.. i wasnt even aware of the ch4c either. i run my channels off a little n100 pc so performance isnt great.

working on now:

  • fixing the XML stray tags now and improved logic for "live" events.
  • and the big one - the filtering for "re-air" ...

next up ill add your ch4c thing and then figure out the ENV for filtering much easier.

1 Like

Added experimental support for that ch4c M3U in latest. Let me know if that works as you expected.