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.
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.
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.
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
Runs comskip
Converts the comskip output to chapter metadata that ffmpeg understands
Use ffmpeg to convert the .ts file to .mp4 and adds the chapter metadata
Check to make sure the conversion was successful
Move new .mp4 to the same location as the .ts file
Delete the .ts file
Refresh the library
This then lets me skip to chapter markers within Plex when playing.