DVR Comskip as chapters instead of removal

Is there anyway to setup plex to do commercial skip as chapters instead of complete removal?

I currently use comskip on WMC (which uses the chapter method) and I find it is not uncommon for the skip to be off by a couple of seconds and in some cases (especially near the beginning/end of the recording) to be way off. I’d like to be able to keep the full recording in tact in case the commercial detection is incorrect.

1 Like

Would be nice to have an either/or option.

What some other systems do is store the detected commercials in a external file (could be stored as metadata even I suppose), then the clients can choose to skip the commercials or not. If on, the server would skip the commercials based on the stored data, on playback to that client.

This is a fantastic idea!> @bqq100 said:

Is there anyway to setup plex to do commercial skip as chapters instead of complete removal?

I currently use comskip on WMC (which uses the chapter method) and I find it is not uncommon for the skip to be off by a couple of seconds and in some cases (especially near the beginning/end of the recording) to be way off. I’d like to be able to keep the full recording in tact in case the commercial detection is incorrect.

This would be awesome!

Well I think I have this mostly working, but it involves a lot of processing. I have a PostProcessing script that generates a work file once the recording is finished.

I then have a scheduled job that checks for any work files between 1AM and 8AM (I’ll probably change this) and kicks off a third script. This lets me limit the hours that my server will be bogged down by the heavy CPU usage and limits it to processing 1 file at a time.

This third script does the following

  1. Runs comskip
  2. Converts the comskip output to chapter metadata that ffmpeg understands
  3. Use ffmpeg to convert the .ts file to .mp4 and adds the chapter metadata
  4. Check to make sure the conversion was successful
  5. Move new .mp4 to the same location as the .ts file
  6. Delete the .ts file
  7. Refresh the library

This then lets me skip to chapter markers within Plex when playing.