Skip to content

fix(dispatcharr): add comskip installation and build dependencies - #16224

Open
eXistC wants to merge 3 commits into
community-scripts:mainfrom
eXistC:fix/dispatcharr-comskip-install
Open

fix(dispatcharr): add comskip installation and build dependencies#16224
eXistC wants to merge 3 commits into
community-scripts:mainfrom
eXistC:fix/dispatcharr-comskip-install

Conversation

@eXistC

@eXistC eXistC commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

✍️ Description

Adds the installation and compilation of Comskip to the Dispatcharr LXC script, enabling automated video commercial detection for DVR recordings.

Context

Dispatcharr already expose the UI and settings for Comskip commercial detection, but the necessary binary and system build dependencies were missing from the default LXC installation. Because of this oversight, the dispatcharr-celery worker could not execute the commercial detection jobs dispatched by the frontend. This PR fixes the incomplete installation.

Changes

  • Added required build dependencies (build-essential, autoconf, libtool, libargtable2-dev, libavformat-dev, libsdl2-dev, and libswscale-dev) to the installation script.
  • Implemented a release tarball, compiling, and installation of Comskip from source, ensuring the comskip binary is globally accessible to the Celery workers.
  • Wrapped the tarball extraction, configuration, and compilation steps in the $STD variable to maintain compliant, non-verbose terminal output.

🔗 Related Issue

Fixes #

✅ Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕 New script – A fully functional and tested script or script set.
  • 🌍 Website update – Changes to script metadata (PocketBase/website data).
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, AppName.md, CONTRIBUTING.md, or other docs.

@eXistC
eXistC requested a review from a team as a code owner August 2, 2026 17:39
@github-actions github-actions Bot added bugfix feature update script A change that updates a script labels Aug 2, 2026
@tremor021

Copy link
Copy Markdown
Member

Don't use git clone. There is a release tarball

@eXistC
eXistC force-pushed the fix/dispatcharr-comskip-install branch from d60b9c5 to 9768e7a Compare August 2, 2026 18:54
@eXistC

eXistC commented Aug 2, 2026

Copy link
Copy Markdown
Contributor Author

Don't use git clone. There is a release tarball

Thanks for the feedback! I just pushed an update per your recommendations

Comment thread ct/dispatcharr.sh Outdated
msg_info "Compiling Comskip"
if [[ ! -d "/opt/Comskip" ]]; then
mkdir -p /opt/Comskip
wget -qO- https://github.com/erikkaashoek/Comskip/archive/refs/heads/master.tar.gz | tar -xz -C /opt/Comskip --strip-components=1

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the tar command this verbose upon running (eg does it need $STD?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, i thought it was fine since i uses the -xz flag makes it silent. but now that you mention it, i realized definitely still needs $STD to handle exceptions properly. Thanks for pointing that out! I'll push a fix.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait, actually, when @tremor021 mentioned using a release tarball earlier, I completely missed that there's actually a built-in helper function fetch_and_deploy_from_url exactly for this. I'll get that swapped over!

Comment thread ct/dispatcharr.sh Outdated

@eXistC eXistC left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pushed a new commit to use the native fetch_and_deploy_from_url helper function!

Comment thread ct/dispatcharr.sh Outdated
msg_info "Compiling Comskip"
if [[ ! -d "/opt/Comskip" ]]; then
mkdir -p /opt/Comskip
wget -qO- https://github.com/erikkaashoek/Comskip/archive/refs/heads/master.tar.gz | tar -xz -C /opt/Comskip --strip-components=1

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, i thought it was fine since i uses the -xz flag makes it silent. but now that you mention it, i realized definitely still needs $STD to handle exceptions properly. Thanks for pointing that out! I'll push a fix.

Comment thread ct/dispatcharr.sh Outdated
msg_info "Compiling Comskip"
if [[ ! -d "/opt/Comskip" ]]; then
mkdir -p /opt/Comskip
wget -qO- https://github.com/erikkaashoek/Comskip/archive/refs/heads/master.tar.gz | tar -xz -C /opt/Comskip --strip-components=1

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait, actually, when @tremor021 mentioned using a release tarball earlier, I completely missed that there's actually a built-in helper function fetch_and_deploy_from_url exactly for this. I'll get that swapped over!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix feature update script A change that updates a script

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants