MacOS Plex DVR Commercial Removal Guide for Dummies

livetv-dvr

#1

I've added this Discussion thread in an attempt to filter through all the comments and suggestions of other threads and have a simple step by step guide on how to setup the post processing of commercial removal for Plex DVR.

If someone has a working setup on MacOS and is willing to share a step by step setup for dummies that would be fantastic. Once it has been confirmed working by multiple users we can request to lock the discussion so it can be used as a how-to-guide.


#2

would like to see this as well.


#3

Not being a OSX user...
But the process for Commercial Removal using PlexComskip.py would be

Install ffmpeg and argtable: brew install ffmpeg argtable
Install Comskip from https://github.com/erikkaashoek/Comskip
Clone the PlexComskip repo: https://github.com/ekim1337/PlexComskip.git
Copy PlexComskip.conf.example to PlexComskip.conf and edit as necessary (defaults should be pretty good)
and then follow the instructions to add PlexComskip.py to the POSTPROCESSING feature


#4

@hthighway said:
Not being a OSX user...
But the process for Commercial Removal using PlexComskip.py would be

Install ffmpeg and argtable: brew install ffmpeg argtable
Install Comskip from https://github.com/erikkaashoek/Comskip
Clone the PlexComskip repo: https://github.com/ekim1337/PlexComskip.git
Copy PlexComskip.conf.example to PlexComskip.conf and edit as necessary (defaults should be pretty good)
and then follow the instructions to add PlexComskip.py to the POSTPROCESSING feature

Apparently I'm still a dummy. I have no idea what this means. Are there very step by step instructions?


#5

@natemp21 said:

@hthighway said:
Not being a OSX user...
But the process for Commercial Removal using PlexComskip.py would be

Install ffmpeg and argtable: brew install ffmpeg argtable
Install Comskip from https://github.com/erikkaashoek/Comskip
Clone the PlexComskip repo: https://github.com/ekim1337/PlexComskip.git
Copy PlexComskip.conf.example to PlexComskip.conf and edit as necessary (defaults should be pretty good)
and then follow the instructions to add PlexComskip.py to the POSTPROCESSING feature

Apparently I'm still a dummy. I have no idea what this means. Are there very step by step instructions?

@natemp21 this is what I hoping to achieve. Once I have installed and proven working a few times ill do up detailed instructions. Hopefully the 3rd beta introduces some changes with post processing for the better.


#6

I've seen posted elsewhere that beta 3 is supposed to start incorporating some post processing setup in the GUI. So hopefully it will.


#7

@ohiomedic said:
I've seen posted elsewhere that beta 3 is supposed to start incorporating some post processing setup in the GUI. So hopefully it will.

Have you been able to find the post processing in the GUI?


#8

Look in DVR settings, you may need to scroll down.


#9

@elan said:
Look in DVR settings, you may need to scroll down.

Just found it. Clearly I wasn't looking hard enough :P


#10

How would I add a command to copy the file to a network drive after its removed the commercials? One of the problems I'm having now is that I has a 2TB drive connected USB3 to my router. I connect wirelessly to it and most of my recordings are having issues (I'm assuming the drive can't keep up), and I'm going to start recording local, postprocess and then move it to the external storage.

edit: thinking about this more, likely easier just to set a cron job to move over at 3am every day or something.


#11

Oh my GOD! I made it work on my Ubuntu Plex server and it's AWESOME!
I'll sell my TiVo on Ebay now.


#12

Now that we can put the full path for a post processing script; what can I use for mac.


#13

Ok trying this on my mac. Seems like its being run but I get a error 13

2016-10-01 17:30:03,202 [13bc4f] PlexComskip got invoked from /Applications/PlexComskip/PlexComskip.py
2016-10-01 17:30:03,675 [13bc4f] Using session ID: 13bc4f83-71fc-41e7-9807-eade2caafe86
2016-10-01 17:30:03,676 [13bc4f] Using temp dir: /var/folders/m5/vk0pm36s1g55wckts5sj_wn40000gn/T/13bc4f83-71fc-41e7-9807-eade2caafe86
2016-10-01 17:30:03,676 [13bc4f] Using input file: /Volumes/Media/Recordings/.grab/09289c3a2db3f9eaa6c9e3ddc4898dc35c65372a/Family Feud (1976) - 2016-10-01 00_00_00 - Episode 10-01.ts
2016-10-01 17:30:03,676 [13bc4f] [comskip] Command: ['/Applications/Comskip', '--output', '/var/folders/m5/vk0pm36s1g55wckts5sj_wn40000gn/T/13bc4f83-71fc-41e7-9807-eade2caafe86', '--ini', '/Applications/PlexComskip/comskip.ini', '/Volumes/Media/Recordings/.grab/09289c3a2db3f9eaa6c9e3ddc4898dc35c65372a/Family Feud (1976) - 2016-10-01 00_00_00 - Episode 10-01.ts']
2016-10-01 17:30:03,736 [13bc4f] Something went wrong during comskip analysis: [Errno 13] Permission denied
2016-10-01 17:30:03,737 [13bc4f] Leaving temp files in: /var/folders/m5/vk0pm36s1g55wckts5sj_wn40000gn/T/13bc4f83-71fc-41e7-9807-eade2caafe86
2016-10-01 17:30:03,737 [13bc4f] Done processing!
2016-10-01 17:30:19,523 [ad83b6] PlexComskip got invoked from /Applications/PlexComskip/PlexComskip.py
2016-10-01 17:30:19,533 [ad83b6] Using session ID: ad83b694-86a5-4fd9-8ec6-c1c0cf588f39
2016-10-01 17:30:19,533 [ad83b6] Using temp dir: /var/folders/m5/vk0pm36s1g55wckts5sj_wn40000gn/T/ad83b694-86a5-4fd9-8ec6-c1c0cf588f39
2016-10-01 17:30:19,533 [ad83b6] Using input file: /Volumes/Media/Recordings/.grab/651dd4ea80a5b52f034dbefddbb08dbac948b50a/Family Feud (1976) - 2016-10-01 00_00_00 - Episode 10-01.ts
2016-10-01 17:30:19,533 [ad83b6] [comskip] Command: ['/Applications/Comskip', '--output', '/var/folders/m5/vk0pm36s1g55wckts5sj_wn40000gn/T/ad83b694-86a5-4fd9-8ec6-c1c0cf588f39', '--ini', '/Applications/PlexComskip/comskip.ini', '/Volumes/Media/Recordings/.grab/651dd4ea80a5b52f034dbefddbb08dbac948b50a/Family Feud (1976) - 2016-10-01 00_00_00 - Episode 10-01.ts']
2016-10-01 17:30:19,538 [ad83b6] Something went wrong during comskip analysis: [Errno 13] Permission denied
2016-10-01 17:30:19,538 [ad83b6] Leaving temp files in: /var/folders/m5/vk0pm36s1g55wckts5sj_wn40000gn/T/ad83b694-86a5-4fd9-8ec6-c1c0cf588f39
2016-10-01 17:30:19,538 [ad83b6] Done processing!

Can anyone offer some clue as to what is wrong?


#14

Hmm, the /Applications/Comskip looks a bit suspicious, what did you put for comskip-path? It should point to the comskip binary, e.g. /usr/local/bin/comskip.


#15

I named the folder "Comskip" and placed in my applications folder. remember this is on a mac. So its pointing to the folder, should it be pointing to a file within the folder?

`[Helper Apps]

Path to the comskip binary.

comskip-path: /Applications/Comskip

Path to the comskip INI file. Defaults to the same directory as the PlexComskip script.

comskip-ini-path: ~/comskip.ini

Path to the ffmpeg binary.

ffmpeg-path: /Applications/ffmpeg

[Logging]

Log file location.

logfile-path: ~/Library/Logs/PlexComskip.log

Split the log output to the console? Useful for debugging.

console-logging: True

[File Manipulation]

Specify a temp directory for interstitial files. This should be local, fast, and have enough free space for ~2x your largest video. Defaults to system temp location.

temp-root: ~/Downloads/temp

Should we copy the original file to the temp directory? Useful if disk access to the original is slower than your temp location. Defaults to False.

copy-original: False

Always save the intermediate files? Useful for debugging. Defaults to False.

save-always: False

Save intermediate files when something goes wrong? Also useful for debugging and less space intensive. Defaults to True.

save-forensics: True`


#16

I'm getting the same error 13 as well. I'm on Sierra if it makes a difference?

2016-10-01 21:21:28,475 [4862a8] PlexComskip got invoked from /Users/KNR/Comskip/PlexComskip-master/PlexComskip.py
2016-10-01 21:21:28,485 [4862a8] Using version: dc0c50b
2016-10-01 21:21:28,485 [4862a8] Using session ID: 4862a8d3-667c-4800-8147-bdf97b0dd58a
2016-10-01 21:21:28,485 [4862a8] Using temp dir: /var/folders/n8/n3vy936j5zs1wfp_zpgqm3d80000gn/T/4862a8d3-667c-4800-8147-bdf97b0dd58a
2016-10-01 21:21:28,485 [4862a8] Using input file: /Volumes/video/TV/Friends (1994)/Season 3/Friends (1994) - S03E13 - The One Where Monica and Richard Are Just Friends.ts
2016-10-01 21:21:28,485 [4862a8] [comskip] Command: ['/users/KNR/comskip', '--output', '/var/folders/n8/n3vy936j5zs1wfp_zpgqm3d80000gn/T/4862a8d3-667c-4800-8147-bdf97b0dd58a', '--ini', '/Users/KNR/Comskip/PlexComskip-master/comskip.ini', '/Volumes/video/TV/Friends (1994)/Season 3/Friends (1994) - S03E13 - The One Where Monica and Richard Are Just Friends.ts']
2016-10-01 21:21:28,489 [4862a8] Something went wrong during comskip analysis: [Errno 13] Permission denied
2016-10-01 21:21:28,489 [4862a8] Leaving temp files in: /var/folders/n8/n3vy936j5zs1wfp_zpgqm3d80000gn/T/4862a8d3-667c-4800-8147-bdf97b0dd58a
2016-10-01 21:21:28,489 [4862a8] Done processing!
2016-10-01 21:25:26,179 [692605] PlexComskip got invoked from /Users/KNR/Comskip/PlexComskip-master/PlexComskip.py
2016-10-01 21:25:26,188 [692605] Using version: dc0c50b
2016-10-01 21:25:26,189 [692605] Using session ID: 69260536-31e6-48f4-a70d-44384062ddb8
2016-10-01 21:25:26,189 [692605] Using temp dir: /var/folders/n8/n3vy936j5zs1wfp_zpgqm3d80000gn/T/69260536-31e6-48f4-a70d-44384062ddb8
2016-10-01 21:25:26,189 [692605] Using input file: /Volumes/video/TV/Friends (1994)/Season 3/Friends (1994) - S03E13 - The One Where Monica and Richard Are Just Friends.ts
2016-10-01 21:25:26,189 [692605] [comskip] Command: ['/users/KNR/Comskip', '--output', '/var/folders/n8/n3vy936j5zs1wfp_zpgqm3d80000gn/T/69260536-31e6-48f4-a70d-44384062ddb8', '--ini', '/Users/KNR/Comskip/PlexComskip-master/comskip.ini', '/Volumes/video/TV/Friends (1994)/Season 3/Friends (1994) - S03E13 - The One Where Monica and Richard Are Just Friends.ts']
2016-10-01 21:25:26,193 [692605] Something went wrong during comskip analysis: [Errno 13] Permission denied
2016-10-01 21:25:26,193 [692605] Leaving temp files in: /var/folders/n8/n3vy936j5zs1wfp_zpgqm3d80000gn/T/69260536-31e6-48f4-a70d-44384062ddb8
2016-10-01 21:25:26,193 [692605] Done processing!

#17

I am on El Capitan, on my Plex machine. I have tried moving the temp and dest. folders to the local drive instead of the external, no luck, same error.


#18

I'm getting the same Error 13 on El Capitan as well -- i'm guessing its a file permission error some where - but I'm not sure where.


#19

@Anijake said:
I named the folder "Comskip" and placed in my applications folder. remember this is on a mac. So its pointing to the folder, should it be pointing to a file within the folder?

Even on a Mac, what elan says still applies. You need to specify the comskip binary. In your case, it would be:

comskip-path: /Applications/Comskip/comskip

where the last "comskip" is the binary file itself. I have my setup up and running on my Mac Mini but am trying several scripts to see what I like as the comskip.ini files I've tried have been hit or miss sometimes for me with commercials. Keep in mind that the path for the ffmpeg binary would work the same..


#20

@isaacrdz said:

@Anijake said:
I named the folder "Comskip" and placed in my applications folder. remember this is on a mac. So its pointing to the folder, should it be pointing to a file within the folder?

Even on a Mac, what elan says still applies. You need to specify the comskip binary. In your case, it would be:

comskip-path: /Applications/Comskip/comskip

where the last "comskip" is the binary file itself. I have my setup up and running on my Mac Mini but am trying several scripts to see what I like as the comskip.ini files I've tried have been hit or miss sometimes for me with commercials. Keep in mind that the path for the ffmpeg binary would work the same..

That worked in the terminal for me. Just put it into PMS now. Let's see if I did it right!

Thanks for your help @isaacrdz!