Skip to content

Instantly share code, notes, and snippets.

@tomeko
Last active October 26, 2024 23:40
Show Gist options
  • Save tomeko/70f2da1caf484000b416784c5aaad713 to your computer and use it in GitHub Desktop.
Save tomeko/70f2da1caf484000b416784c5aaad713 to your computer and use it in GitHub Desktop.
Comskip + Jellyfin setup guide (Ubuntu 22.04)

Setting up Comskip with Jellyfin (non docker install)

This just got way easier as comskip seems to be in apt packages now. The only thing you need to do is slightly modify the script in jellyfin-dvr-comskip because it assumes a docker install

1. Install comskip

sudo apt install comskip

2. Get and update jellyfin-dvr-comskip

git clone https://github.com/Protektor-Desura/jellyfin-dvr-comskip.git
  • Open/edit <extracted_path>/config/comskip/jellyfin-drv-comskip.sh
  • In the following line:
$__command --ffmpeg=$__ffmpeg --comskip=/usr/local/bin/comskip --lockfile=/tmp/comchap.lock --comskip-ini=/config/comskip/comskip.ini "${__file}"
  • change the --comskip= to your installed location (probably /usr/bin/comskip, check with whereis comskip)
  • change the --comskip-ini= to the full path of comskip.ini you extracted earlier
  • jellyfin-drv-comskip.sh should be executable, but just in case chmod +x jellyfin-drv-comskip.sh

3. Configure Jellyfin

  • Open your Jellyfin client (web, Android, etc.)
  • Dashboard > Live TV > DVR, then find the Post-processing application: field
  • Enter the path to the jellyfin-drv-comskip script (make sure it's the full absolute path)
<extracted_path>/config/comskip/jellyfin-drv-comskip.sh
  • The Post-processor command line arguments should be "{path}" by default. If not, put it there
  • Save settings

Note: If you have this set up in your home folder and have issues, make sure your home folder has public read/exec permissions (e.g. chmod /home/myuser 775)

@williamthrilliam
Copy link

It seems that comcut also has to be installed; the script is exacting subtitles but isn't cutting commercials. Is there a package for this or does it need to be installed from source?

@rohitsud
Copy link

It seems that comcut also has to be installed; the script is exacting subtitles but isn't cutting commercials. Is there a package for this or does it need to be installed from source?

comcut is in the jellyfin-dvr-comskip repo

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