The title says it all, I would like to invoke the Plex Comskip in the post processing script so that I can make a copy of the unmodified file first. Is this possible?
Not to my knowledge.
Why not simply setting comskip to only generating chapter markers, instead of really chopping up the file?
In short because that accomplishes none of my objectives in removing the commercial.
Markers require manual intervention to skip each commercial break.
Markers are not portable across platforms for viewing with anything but Plex.
The commercials are still taking up disk space. As 25% of each TV hour is commercials this means the TV library is 33% larger when commercials are not removed.
What is your actual objective? To simply reduce the file size of recordings by removing commercials? If so, why not let Plex cut the commercials instead of trying to create your own post-processing? If you simply want a copy of the unaltered original ts file then a simple one-line post-processing script could do that:
copy %1 C:\Archive
If you want something more involved you might have to research more of what exactly you want to do.
If you are running a Windows PMS look into mcebuddy it can do a lot of things for you. Or you could research ffmpeg and comskip to create your own post-processing script to do what you desire.
I do want Plex to cut the commercials, my post processing is an attempt at creating a backup copy in case Plex errors in cutting the commercials.
I will try your post processing script, but my attempt at such a script copied after Plex cut commercials out, hence why I was trying to disable the commercial removal and instead call it in post-processing.
I have no desire to pay for mcebuddy after I have already paid for Plex to have the same functionality.
If you find Plex is doing commercial cutting first from what I understand that should not be the case. From what I have seen commercial scanner is invoked after post processing. I run a post processing script as well and can say without a doubt that the commercial scanner is running after my post processing.
I understand about not wanting to pay for mcebuddy. I bought it several years ago before Plex even offered commercial scanning. I personally no longer use it at all any longer myself. My post processing script does the transcoding of the video that I desire and I have Plex marking the commercials.
I will try your script, mine may have produced an unintended result.
I have
copy %1 D:\Archive
As the script, since D is the actual storage drive. Do I need to create a folder Archive or will it create one?
I would create the directory.
Well I tested the code you gave me and it did create a copy but after the Plex commercial cut had happened, so same result as before.
I confirmed this behavior this morning. Commercial removal is done before post-processing scripts but commercial marking is done after any post-processing script. Have asked internally about this question.
Well that confirms the problem which brings me back to square one, which is can the commercial removal be called in the post-processing script?
Just chatted with a Dev about Commercials being removed before post-processing but commercial marking being done after post-processing. They are filling an internal issue so hopefully, a fix will be coming in a future release.
Thank you for following through with them on this and pressing for a solution. I am sure it could be a simple fix and would give a functionality that has been asked for multiple times.
Has there been any progress on this? I have looked through release notes on the Beta PMS releases for the past month or so and I don’t see anything yet, but I want to make sure I am not missing it.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.