Skip to content
schumi2004 edited this page Oct 31, 2015 · 10 revisions

Intro

Comskip is a commercial detector. It is a console application that reads a mpeg or h.264 file and analyses the content based on a large amount of configurable parameters. After analysis it generates a file in various possible formats containing the location of the commercials inside the video file. The formats include input files for interactive video editors (VideoRedo, Cuttermaran,Mpeg2Schnitt...) command line video cutters (mpgtx, cuttermaran, mencoder) and video players (zoomplayer, mplayer, ...). Comskip can read MPEG PS, TS, DVR-MS and WTV files upto HD resolution (max 2000x1200) at various framerates (PAL and NTSC). Comskip can NOT read copy protected recordings.

Synology package installation

After installation you can launch it from command line like this:

comskip /volume1/@appstore/comskip/bin/comskip.ini "path to your video file"

At this point the default configuration will be used located at /volume1/@appstore/comskip/bin/comskip.ini After Comskip has finished you should test if it detects the commercial brakes correctly and when needed make adjustments to the config (comskip.ini) A more optimized comskip.ini can be found here http://pastebin.com/ExhsYNsq

More information about configuring Comskip can be found here: http://www.kaashoek.com/files/tuning.htm

Post-processing using TVHeadend

Comskip is a excellent tool to use in combination with TVHeadend for post-processing a recording. To do this you need to create a shell script that looks something like this. You should change the following to fit your needs!

  • COMSKIPPATH="/volume1/@appstore/comskip/bin/comskip"
  • COMSKIPINI="/volume1/@appstore/comskip/var/comskip.ini"
  • COMSKIPLOGS="/volumeUSB1/usbshare/logs/comskip"
  • TVHEADENDPP="/volumeUSB1/usbshare/logs/tvheadend"

tvheadend-pp.sh http://pastebin.com/bd2BWceh

Use /path/to/script.sh %f in your post-processing recording settings in TVHeadend to make it active.

Sources:

Clone this wiki locally