Skip to content

Instantly share code, notes, and snippets.

@hthighway
Last active August 3, 2020 13:13
Show Gist options
  • Star 16 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hthighway/4d3567a5b4b505c3d23b93e5a7838f3e to your computer and use it in GitHub Desktop.
Save hthighway/4d3567a5b4b505c3d23b93e5a7838f3e to your computer and use it in GitHub Desktop.
Comskip for Linux

Comskip Setup for Linux

This will install comskip, mkvpropedit, ffmpeg, and PlexComskip.py

  • Install Comskip following the Instrutions shown here: https://github.com/erikkaashoek/Comskip

    Pro Tip use `./configure --enable-dontator` and then make a donation to http://www.kaashoek.com/comskip/
    
  • Install mkvtoolnix, which include mkvpropedit here: https://mkvtoolnix.download/downloads.html#ubuntu this is for setting the audio language to English from Unknown

  • Clone the PlexComskip repo: https://github.com/ekim1337/PlexComskip.git

  • Copy PlexComskip.conf.example to PlexComskip.conf and edit as necessary (defaults should be pretty good)

  • create a dvr.sh (or whatever you want to call it) file to include

      #!/bin/sh
    
      /usr/bin/mkvpropedit "$1" --edit track:a1 --set language=eng --edit track:v1 --set language=eng
      
      sleep 10
      
      /usr/bin/python /path/to/PlexComskip.py "$1"
    
@pokes135
Copy link

I had the same issue. I was able to run by cli successfully as well, except my ffmpeg (Ubuntu 16.04) install had a different ffmpeg binary path:
PlexComskip.conf default path:
/usr/local/bin/ffmpeg
PlexComskip.conf my Ubuntu path:
/usr/bin/ffmpeg

Thanks hthighway and would you know why the script won't run in Plex? Cheers!

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