Watches for video files in a folder, detects commercials and removes the commercials from the video files automatically.
Tested with Plex and Emby recordings.
Example run
docker run -d \
--name=auto-comskip \
-v /home/user/tmp-videos:/watch:rw \
-v /home/user/videos:/output:rw \
-v /docker/appdata/auto-comskip:/config:rw \
-v /tmp/comskip:/temp:rw \
-e TZ=America/New_York \
-e PUID=99 \
-e PGID=100 \
-e UMASK=000 \
djaydev/auto-comskipWhere:
/docker/appdata/auto-comskip: This is where the application stores its configuration, log and any files needing persistency./home/user/tmp-videos: This location contains video files that need commercial removal./home/user/videos: The videos that has finished comskip processing will be placed here./tmp/comskip: A temp directory for interstitial files. This should be local, fast, and have enough free space for ~2x your largest video.TZ: Your timezonePUID: ID of the user the application runs as.PGID: ID of the group the application runs as.UMASK: Mask that controls how file permissions are set for newly created files.
The included comskip settings for commercial detection works well for general North America television. If you need commercial detection tuned to work better for your TV service you can find several on the internet including here or write your own with this guide.
To add your custom comskip settings:
-v /docker/appdata/auto-comskip/comskip.ini:/opt/comskip.iniwww.github.com/jlesage/docker-handbrake
www.github.com/ekim1337/PlexComskip
www.github.com/erikkaashoek/Comskip
www.github.com/linuxserver/docker-baseimage-ubuntu
www.github.com/plexinc/pms-docker