PlexComskip.py with .ts input file

Folks - apologies in advance if this in another thread - couldn’t find it easily…

I have nutted out post processing with Plexcompskip.py from the great contributions in a number of posts - Thanks! Appreciate the community of assistance.

I have 2 x HDHomeruns (1x Connect and 1x Dual), turns out my CPU whilst transcoding on the fly and running comskip (via Plexcompskip) simply isn’t coping. I drop packets/system calls after two simlultaneous recordings - third simply doesn’t record - it’s corrupted. Kinda negates having two HDHomeRuns…

I **think ** I’d like to:
NOT Transcode on the fly (i.e. record in .ts Transport Stream), remove advertisements whilst in .ts file format, then OPTIMSE the SERIES via Plex when I have idle processor available.

MP4 is probably the most versatile format for me as I have a Roku and ATV4 on a couple of tele’s.

I’ve manually run comskip -t $1 in a script and it detects the commercials okay, so I know it can input the file format okay.

I need that python magic to overwrite the original recording with the post processing output file. However my python skills are simply rubbish - need help.

Happy to share whatever files I need to in order to get this going.

Thanks in advance,

Forgot to mention:
Running Headless Ubuntu 16.04
Version 1.6.1.3722

Okay, Changed my HDHR’s to remux only - not transcode (so in effect leaving the codec as .ts I believe, and changing the extension to .mkv in the process).
Post processes okay - I then set Plex to optimise what I ask it when there’s CPU available.

Seem’s to work a treat so far - going to test 3 recordings at once to see how it copes…

Cheers folks.

Can you share a link to your postprocessing script?

terribly sorry just saw this - did you still want a copy of it?