I cant seem to get Ad Detection to run on recording from other sources, recordings from Plex Live TV work no problem! library and recorders are both set correct.
Thoughts?
I cant seem to get Ad Detection to run on recording from other sources, recordings from Plex Live TV work no problem! library and recorders are both set correct.
Thoughts?
If you haven’t done so already, you’ll need to manually trigger a media analysis on the media items. When I do it, I generally start it at the show-level: Show name -> More button -> Analyze
. I’m pretty sure this can be done at the season or episode levels as well, but I’ve not tested that. In my case, this starts the Plex Commercial Skipper silently in the background; no activity is shown in Plex web, the only way I know it’s running is to check my Mac’s activity monitor.
I have tried this Analyze at all different levels I am not getting any where with this.
Server - Ubuntu 20.04
Storage - Synology NAS
Any ideas?
Since my earlier comment I’ve actually begun doing something similar to you. I’ve been testing NextPVR, using it to record a couple of shows. I created a separate TV Shows library for it, and have Plex monitor the folder where NextPVR stores its recordings.
My Plex DVR settings are configured to detect commercials and mark for skip; the library above’s “Ad detection” setting is configured to “For all items.” My main library settings for the server are configured such that no automatic scanning is performed.
My workflow for the the NextPVR library is to manually scan it and, when new media is ingested, I manually perform a media analysis at the show level; this causes the ad detection process to begin. However, I have since tested and can confirm that manually analyzing a season or episode also causes triggers ad detection.
I use this particular server solely as a (test) DVR. It is running Ubuntu 20.10 (desktop). The hardware is modest to say the least; it’s an Intel Compute Stick with an Atom x5-Z8300 and 2 GiB RAM. I only mention this to suggest that your issues are likely not due to resource constraints.
All that to say, I’m not sure what else to suggest for your case. Given the configuration above, mine “just works.” It may be necessary for you to gather debug (not verbose) logs to see what is going on. If you haven’t already, you may want to perform a Plex Dance on one of the shows and then try an analysis to see if that jump-starts it.
Hey thanks for the response, I just did a debug here is the results. I dont event see anything in the logs just detecting intros.
Mar 10, 2021 14:37:35.266 [0x7fc7277fe700] Debug — Request: [192.168.1.164:56092 (Subnet)] OPTIONS /library/metadata/14121/analyze (9 live) TLS GZIP Signed-in
Mar 10, 2021 14:37:35.266 [0x7fc7e2326700] Debug — Completed: [192.168.1.164:56092] 200 OPTIONS /library/metadata/14121/analyze (9 live) TLS GZIP 0ms 653 bytes (pipelined: 1)
Mar 10, 2021 14:37:35.276 [0x7fc7e2326700] Debug — Auth: authenticated user 1 as spenca8742
Mar 10, 2021 14:37:35.276 [0x7fc7277fe700] Debug — Request: [192.168.1.164:56093 (Subnet)] PUT /library/metadata/14121/analyze (10 live) TLS GZIP Signed-in Token (spenca8742)
Mar 10, 2021 14:37:35.280 [0x7fc7277fe700] Debug — Analyze: Invoking ad detection for Library 4 whose scan option is set to [All files]
Mar 10, 2021 14:37:35.280 [0x7fc7277fe700] Debug — [JobRunner] Job running: FFMPEG_EXTERNAL_LIBS=’/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Codecs/367b3d4-3673-linux-x86_64/’ X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxxC’ ‘/usr/lib/plexmediaserver/Plex Media Scanner’ ‘–analyze’ ‘–server-action’ ‘intro,addetect’ ‘–item’ ‘14121’ ‘–log-file-suffix’ ’ Analysis’
Mar 10, 2021 14:37:35.280 [0x7fc7277fe700] Debug — [JobRunner] Jobs: Starting child process with pid 949868
Mar 10, 2021 14:37:35.721 [0x7fc7477fe700] Debug — Request: [127.0.0.1:57118 (Loopback)] GET /:/metadata/notify/changeItemState?librarySectionID=4&metadataItemID=14121&metadataType=4&state=-1&parentID=-1&rootID=-1&mediaState=analyzing (11 live) GZIP Signed-in Token (spenca8742)
Mar 10, 2021 14:37:35.721 [0x7fc7e2326700] Debug — Completed: [127.0.0.1:57118] 200 GET /:/metadata/notify/changeItemState?librarySectionID=4&metadataItemID=14121&metadataType=4&state=-1&parentID=-1&rootID=-1&mediaState=analyzing (11 live) GZIP 0ms 166 bytes
Mar 10, 2021 14:37:35.723 [0x7fc7477fe700] Debug — Request: [127.0.0.1:57122 (Loopback)] GET /:/metadata/notify/changeItemState?librarySectionID=4&metadataItemID=14121&metadataType=4&state=-1&parentID=-1&rootID=-1&mediaState=thumbnailing (11 live) GZIP Signed-in Token (spenca8742)
Mar 10, 2021 14:37:35.724 [0x7fc7e2b27700] Debug — Completed: [127.0.0.1:57122] 200 GET /:/metadata/notify/changeItemState?librarySectionID=4&metadataItemID=14121&metadataType=4&state=-1&parentID=-1&rootID=-1&mediaState=thumbnailing (11 live) GZIP 1ms 166 bytes
Mar 10, 2021 14:37:35.725 [0x7fc7477fe700] Debug — Request: [127.0.0.1:57126 (Loopback)] GET /:/metadata/notify/changeItemState?librarySectionID=4&metadataItemID=14121&metadataType=4&state=-1&parentID=-1&rootID=-1&mediaState=idle (11 live) GZIP Signed-in Token (spenca8742)
Mar 10, 2021 14:37:35.725 [0x7fc7e2b27700] Debug — Completed: [127.0.0.1:57126] 200 GET /:/metadata/notify/changeItemState?librarySectionID=4&metadataItemID=14121&metadataType=4&state=-1&parentID=-1&rootID=-1&mediaState=idle (11 live) GZIP 0ms 166 bytes
Mar 10, 2021 14:37:35.727 [0x7fc7477fe700] Debug — Request: [127.0.0.1:57130 (Loopback)] GET /library/changestamp (11 live) GZIP Signed-in Token (spenca8742)
Mar 10, 2021 14:37:35.727 [0x7fc7e2326700] Debug — Completed: [127.0.0.1:57130] 200 GET /library/changestamp (11 live) GZIP 0ms 470 bytes
Mar 10, 2021 14:37:35.731 [0x7fc7477fe700] Debug — Request: [127.0.0.1:57134 (Loopback)] GET /:/metadata/flushMetadataCounterCache (11 live) GZIP Signed-in Token (spenca8742)
Mar 10, 2021 14:37:35.731 [0x7fc7e2b27700] Debug — Completed: [127.0.0.1:57134] 200 GET /:/metadata/flushMetadataCounterCache (11 live) GZIP 0ms 166 bytes
Mar 10, 2021 14:37:35.732 [0x7fc7477fe700] Debug — Request: [127.0.0.1:57138 (Loopback)] PUT /library/metadata/14121/addetect (11 live) GZIP Signed-in Token (spenca8742)
Mar 10, 2021 14:37:35.733 [0x7fc7e2b27700] Debug — Completed: [127.0.0.1:57138] 200 PUT /library/metadata/14121/addetect (11 live) GZIP 1ms 166 bytes
Mar 10, 2021 14:37:35.735 [0x7fc7477fe700] Debug — Request: [127.0.0.1:57142 (Loopback)] PUT /library/metadata/14121/intro?force=0 (11 live) GZIP Signed-in Token (spenca8742)
Mar 10, 2021 14:37:35.736 [0x7fc7477fe700] Debug — Scheduling an intro detection job for 14119
Mar 10, 2021 14:37:35.736 [0x7fc7e2326700] Debug — Completed: [127.0.0.1:57142] 200 PUT /library/metadata/14121/intro?force=0 (11 live) GZIP 1ms 166 bytes
Mar 10, 2021 14:37:35.739 [0x7fc7d37fe700] Debug — IntroDetector: Running intro detection for [14119] [Charmed] [3]
Mar 10, 2021 14:37:35.739 [0x7fc7d37fe700] Debug — Activity: registered new activity b6297619-2425-46cd-ab25-0c0d1c15cadc - Detecting intros
Mar 10, 2021 14:37:35.742 [0x7fc7ea007700] Debug — Jobs: ‘/usr/lib/plexmediaserver/Plex Media Scanner’ exit code for process 949868 is 0 (success)
Mar 10, 2021 14:37:35.742 [0x7fc7e2b27700] Debug — Completed: [192.168.1.164:56093] 200 PUT /library/metadata/14121/analyze (10 live) TLS GZIP 465ms 274 bytes (pipelined: 1)
Mar 10, 2021 14:37:35.749 [0x7fc7d37fe700] Debug — Activity: updated activity b6297619-2425-46cd-ab25-0c0d1c15cadc - completed 20.2% - Detecting intros
Mar 10, 2021 14:37:35.762 [0x7fc7d37fe700] Debug — Activity: updated activity b6297619-2425-46cd-ab25-0c0d1c15cadc - completed 41.5% - Detecting intros
Mar 10, 2021 14:37:35.777 [0x7fc7d37fe700] Debug — Activity: updated activity b6297619-2425-46cd-ab25-0c0d1c15cadc - completed 62.8% - Detecting intros
Mar 10, 2021 14:37:35.785 [0x7fc7d37fe700] Debug — Activity: updated activity b6297619-2425-46cd-ab25-0c0d1c15cadc - completed 84.0% - Detecting intros
Mar 10, 2021 14:37:35.785 [0x7fc7d37fe700] Debug — Activity: updated activity b6297619-2425-46cd-ab25-0c0d1c15cadc - completed 85.0% - Detecting intros
Mar 10, 2021 14:37:35.807 [0x7fc7d37fe700] Debug — Activity: updated activity b6297619-2425-46cd-ab25-0c0d1c15cadc - completed 86.7% - Detecting intros
Mar 10, 2021 14:37:35.835 [0x7fc7d37fe700] Debug — Activity: updated activity b6297619-2425-46cd-ab25-0c0d1c15cadc - completed 88.3% - Detecting intros
Mar 10, 2021 14:37:35.849 [0x7fc7d37fe700] Debug — Activity: updated activity b6297619-2425-46cd-ab25-0c0d1c15cadc - completed 90.0% - Detecting intros
Mar 10, 2021 14:37:35.880 [0x7fc7e2b27700] Debug — Auth: authenticated user 1 as spenca8742
Mar 10, 2021 14:37:35.880 [0x7fc7277fe700] Debug — Request: [192.168.1.164:56093 (Subnet)] GET /library/metadata/14119/children?excludeAllLeaves=1 (10 live) TLS Page 0-3 GZIP Signed-in Token (spenca8742)
Mar 10, 2021 14:37:35.883 [0x7fc7277fe700] Debug — Setting container serialization range to [0, 3] (total=-1)
Mar 10, 2021 14:37:35.888 [0x7fc7277fe700] Debug — Setting container serialization range to [0, 3] (total=4)
Mar 10, 2021 14:37:35.889 [0x7fc7d37fe700] Debug — Activity: updated activity b6297619-2425-46cd-ab25-0c0d1c15cadc - completed 91.7% - Detecting intros
Mar 10, 2021 14:37:35.890 [0x7fc7e2326700] Debug — Completed: [192.168.1.164:56093] 200 GET /library/metadata/14119/children?excludeAllLeaves=1 (10 live) TLS GZIP Page 0-3 9ms 2443 bytes (pipelined: 2)
Mar 10, 2021 14:37:35.911 [0x7fc7d37fe700] Debug — Activity: updated activity b6297619-2425-46cd-ab25-0c0d1c15cadc - completed 93.3% - Detecting intros
Mar 10, 2021 14:37:35.930 [0x7fc7d37fe700] Debug — Activity: updated activity b6297619-2425-46cd-ab25-0c0d1c15cadc - completed 95.0% - Detecting intros
Mar 10, 2021 14:37:35.930 [0x7fc7d37fe700] Debug — Activity: updated activity b6297619-2425-46cd-ab25-0c0d1c15cadc - completed 95.0% - Detecting intros
Mar 10, 2021 14:37:35.935 [0x7fc7d37fe700] Debug — Updating part with ID=42416 [/media/mediastorage/ChannelsDVR/TV/Charmed/Charmed S03E01 An Inconvenient Truth 2021-01-24-2100.mpg]
Mar 10, 2021 14:37:35.941 [0x7fc7d37fe700] Debug — Doing expensive tags write for ‘The Honeymoon’s Over’ because something changed.
Mar 10, 2021 14:37:35.946 [0x7fc7d37fe700] Debug — Updating part with ID=42417 [/media/mediastorage/ChannelsDVR/TV/Charmed/Charmed S03E02 Someones Going to Die 2021-01-31-2100.mpg]
Mar 10, 2021 14:37:35.951 [0x7fc7d37fe700] Debug — Doing expensive tags write for ‘Magic Hour’ because something changed.
Mar 10, 2021 14:37:35.959 [0x7fc7d37fe700] Debug — Updating part with ID=42418 [/media/mediastorage/ChannelsDVR/TV/Charmed/Charmed S03E03 Triage 2021-02-14-2100.mpg]
Mar 10, 2021 14:37:35.968 [0x7fc7d37fe700] Debug — Doing expensive tags write for ‘Once Upon a Time’ because something changed.
Mar 10, 2021 14:37:35.976 [0x7fc7d37fe700] Debug — Updating part with ID=43015 [/media/mediastorage/ChannelsDVR/TV/Charmed/Charmed S03E04 You Cant Touch This 2021-02-21-2100.mpg]
Mar 10, 2021 14:37:35.984 [0x7fc7d37fe700] Debug — Doing expensive tags write for ‘All Halliwell’s Eve’ because something changed.
Mar 10, 2021 14:37:35.987 [0x7fc7d37fe700] Debug — Activity: Ended activity b6297619-2425-46cd-ab25-0c0d1c15cadc.
Mar 10, 2021 14:37:43.082 [0x7fc7e2326700] Debug — Completed: [192.168.1.164:55709] 200 GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (10 live) TLS GZIP 20001ms 5 bytes (pipelined: 61)
Mar 10, 2021 14:37:43.085 [0x7fc7e2326700] Debug — Auth: authenticated user 1 as spenca8742
Mar 10, 2021 14:37:43.085 [0x7fc7277fe700] Debug — Request: [192.168.1.164:55709 (Subnet)] GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (10 live) TLS GZIP Signed-in Token (spenca8742)
Mar 10, 2021 14:37:43.085 [0x7fc7277fe700] Debug — Content-Length is -1 (of total: -1).
Mar 10, 2021 14:37:46.060 [0x7fc7e2b27700] Debug — Completed: [192.168.1.164:55739] 200 GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (10 live) TLS GZIP 20000ms 5 bytes (pipelined: 71)
Mar 10, 2021 14:37:46.062 [0x7fc7e2b27700] Debug — Auth: authenticated user 1 as spenca8742
Mar 10, 2021 14:37:46.063 [0x7fc7277fe700] Debug — Request: [192.168.1.164:55739 (Subnet)] GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (10 live) TLS GZIP Signed-in Token (spenca8742)
Mar 10, 2021 14:37:46.063 [0x7fc7277fe700] Debug — Content-Length is -1 (of total: -1).
So tried again to run analyze I got some logs that say it is running now. However it still doesnt show / give the option to skip. Also in the XML information for the show it doesnt appear either.
Mar 17, 2021 11:48:28.203 [0x7fc7e1a35700] Debug — [AdDetectorManager] Scheduling MediaPart 43336 for ad detection
Mar 17, 2021 11:48:28.203 [0x7fc7c8ff9700] Debug — Scheduling an intro detection job for 14997
Mar 17, 2021 11:48:28.203 [0x7fc7e2b27700] Debug — Completed: [127.0.0.1:33060] 200 PUT /library/metadata/15108/intro?force=0 (19 live) GZIP 1ms 166 bytes
Mar 17, 2021 11:48:28.204 [0x7fc7e1a35700] Debug — [AdDetectorManager/AdDetector/JobRunner] Job running: FFMPEG_EXTERNAL_LIBS=’/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Codecs/367b3d4-3673-linux-x86_64/’ ‘/usr/lib/plexmediaserver/Plex Commercial Skipper’ ‘–ini=/usr/lib/plexmediaserver/Resources/comskip.ini’ ‘–output=/media/mediastorage/ChannelsDVR/TV/The Flash’ ‘-t’ ‘–quiet’ ‘/media/mediastorage/ChannelsDVR/TV/The Flash/The Flash S07E03 Mother 2021-03-16-2000.mpg’
Mar 17, 2021 11:48:28.204 [0x7fc7e1a35700] Debug — [AdDetectorManager/AdDetector/JobRunner] Jobs: Starting child process with pid 1372549
Mar 17, 2021 11:48:28.205 [0x7fc7e2326700] Debug — Completed: [127.0.0.1:33052] 200 GET /:/metadata/flushMetadataCounterCache (18 live) GZIP 6ms 166 bytes
Mar 17, 2021 11:48:28.206 [0x7fc7467fc700] Debug — IntroDetector: Running intro detection for [14997] [The Flash (2014)] [7]
Mar 17, 2021 11:48:28.206 [0x7fc7467fc700] Debug — Activity: registered new activity 4e5932c2-bce4-4bb5-8f0d-91b32c89a539 - Detecting intros
Mar 17, 2021 11:48:28.208 [0x7fc7ea007700] Debug — Jobs: ‘/usr/lib/plexmediaserver/Plex Media Scanner’ exit code for process 1372537 is 0 (success)
Mar 17, 2021 11:48:28.209 [0x7fc7e2b27700] Debug — Completed: [192.168.1.164:54403] 200 PUT /library/metadata/15108/analyze (17 live) TLS GZIP 462ms 274 bytes (pipelined: 19)
Mar 17, 2021 11:48:28.217 [0x7fc7467fc700] Debug — IntroDetector: Skipping intro detection for item 14997. Already up to date
Mar 17, 2021 11:48:28.217 [0x7fc7467fc700] Debug — Activity: Ended activity 4e5932c2-bce4-4bb5-8f0d-91b32c89a539.
Do the logs show the commercial skipping job completing successfully? If you attach them here I can have a look. At the very least it’s attempting to perform the detection now, however it could be failing.
Something to look into is to ensure that the user you’re running Plex Media Server as has write permission to the media location. Plex writes the ad detection information (EDL) to a temporary file beside the media and then assimilates it when it is complete. If it can’t write to that location, there will be nothing to assimilate (and I’d expect the commercial skipper to fail).
If we can get the channels EDL to export would plex be able to ingest it?
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.