Chrome Capture for Channels

@KineticMan,

I had to reinstall the ESPN4CC container, so I deleted the old container and the folder in Windows. But when I tried to reinstall it, I got two errors which stopped the docker compose. The first error was that the windowsbootstrap.ps1 file was looking for the .env file in the Windows system folder; I was able to correct that by manually entering the correct path in the ps1 file. But the second error, shown below, I can't seem to get around. Thanks for any help you can give.

PS C:\Users\Dave\espn4cc4c> .\windowsbootstrap.ps1 -LanIp 192.168.88.240
[ OK ] Ensured ./data ./logs ./out
[ OK ] .env written (LF, no BOM)
[INFO] Starting container...
Dockerfile:39


37 |

38 | # Place entrypoint where ENTRYPOINT expects it

39 | >>> COPY docker-entrypoint.sh /docker-entrypoint.sh

40 | RUN chmod +x /docker-entrypoint.sh

41 |


failed to solve: failed to compute cache key: failed to calculate checksum of ref f6117470-1d0e-44a1-9745-ed2956016e3b::ogd1hbp97eih5lh5wt7azehiu: "/docker-entrypoint.sh": not found

View build details: docker-desktop://dashboard/build/default/default/iqi0knbaeq5c3vwhymqb5ozpd

[ERR ] docker compose up failed

Whoopsies. I attempted some housekeeping on the repo yesterday and probably moved that. I’ll fix and push an update later.

1 Like

try a fresh pull. my bad!

1 Like

@KineticMan,

Unfortunately, still no go. But a different error message this time, see below.

Invoke-WebRequest : # not found
At C:\Users\Dave\espn4cc4c\windowsbootstrap.ps1:133 char:1
+ Invoke-WebRequest ("http://" + $LanIp + ":" + $Port + "/playlist.m3u" ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
   eption
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
Get-Content : Cannot find path 'C:\Users\Dave\espn4cc4c\playlist.m3u' because it does not exist.
At C:\Users\Dave\espn4cc4c\windowsbootstrap.ps1:134 char:8
+ $m3u = Get-Content $m3uPath -Raw
+        ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\Dave\espn4cc4c\playlist.m3u:String) [Get-Content], ItemNotFoun
   dException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

You cannot call a method on a null-valued expression.
At C:\Users\Dave\espn4cc4c\windowsbootstrap.ps1:135 char:1
+ $preview = $m3u.Substring(0, [Math]::Min(600, $m3u.Length))
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

pull again....

remind me to never do housekeeping on the repo again. i decided not to ship the /out folder and bootstrap was crashing b/c it couldnt find anything in there. i fixed script, pushed, and did a fresh test on windows and it worked.

side note everyone - i dont want to keep clogging up this thread with this ESPN4CC4C stuff. should we move to our thread?

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?