[Forum Preview] Credits Detection for Plex Media Server

@drzoidberg33 would it be possible to get an updated build here with the audio loudness analysis crash fix from today’s PMS beta? Thanks!

And, so far, credit detection has been flawless for me. Awesome new feature!

2 Likes

Will this detect shows that have a second intro/intro credit sequence? I’m thinking like on the newer Star Trek shows where Plex detects the initial ship logo flyby as the “intro” but does not then detect the actual credit sequence that runs maybe 5-8 minutes into the episode.

No, this feature does not affect intro detection.

Just to confirm, this feature is going to be for Plex Pass users only right?

Hi,

I have installed this on my little ARM7 Synology.

I was just wondering if I should be seeing any elements within the assets xml with details of the credit detection (as like intro detection)?

Thank you.

Yes, once detection has taken place, you’ll see markers in the XML like this

<Marker id="138479" type="credits" startTimeOffset="7821786" endTimeOffset="7857786">
<Attributes id="138479" version="4"/>
</Marker>
<Marker id="138479" type="credits" startTimeOffset="7989786" endTimeOffset="8027786">
<Attributes id="138479" version="4"/>
</Marker>
<Marker id="138479" type="credits" startTimeOffset="8073786" endTimeOffset="8109786">
<Attributes id="138479" version="4"/>
</Marker>
<Marker final="1" id="138479" type="credits" startTimeOffset="8137786" endTimeOffset="8146429">
<Attributes id="138479" version="4"/>
</Marker>

This is a film with multiple credit scenes, so you can see it jumping to each scene, and then the final set of credits (with no more scenes afterwards) is indicated by final="1".

1 Like

Superb, thank you

I’ll try and get a new build out today!

6 Likes

Thank you, thank you!!

This is a great feature - have you considered an option on the player side to auto-skip outros? I think this would be really useful for my use-case.

2 Likes

I don’t think this feature is working for me:

Jan 12, 2023 21:21:08.318 [0x2ab96050] DEBUG - [JobRunner] Jobs: Starting child process with pid 14806
Jan 12, 2023 21:21:14.869 [0x2ab96050] ERROR - BufferingLineReader: failed to read line (error: -2)
Jan 12, 2023 21:21:24.877 [0x2ab96050] DEBUG - Killing job.
Jan 12, 2023 21:21:24.877 [0x2ab96050] DEBUG - Signalling job ID 14806 with 9
Jan 12, 2023 21:21:24.909 [0x2e2c5290] DEBUG - Jobs: ‘/volume1/@appstore/PlexMediaServer/Plex Transcoder’ exit code for process 14806 is -9 (signal: Killed)

Plex Media Scanner v1.30.3.6509-ea6337004
Synology DS215j armv7l - build: linux-armv7neon
DSM 7.1.1.42962-2

Is it just an under powered Synology?

Not sure why it’s not working for me. I keep getting a

failed to read line (error: -1)

These are the log when I start a manual scan:

an 13, 2023 10:45:43.908 [0x7faa254e8b00] INFO - Plex Media Scanner v1.30.3.6509-ea6337004 - Synology DS220+ x86_64 - build: linux-x86_64 - GMT 01:00
Jan 13, 2023 10:45:43.908 [0x7faa254e8b00] INFO - Linux version: DSM 7.1.1.42962-3, language: en-US
Jan 13, 2023 10:45:43.908 [0x7faa254e8b00] INFO - Processor: 2-core Intel(R) Celeron(R) J4025 CPU @ 2.00GHz
Jan 13, 2023 10:45:43.908 [0x7faa254e8b00] INFO - /volume1/@appstore/PlexMediaServer/Plex Media Scanner --analyze --manual --server-action credits --item 58442 --log-file-suffix  Analysis

and the error I get:

Jan 13, 2023 10:45:46.806 [0x7fdc88444b00] INFO - Plex Media Scanner v1.30.3.6509-ea6337004 - Synology DS220+ x86_64 - build: linux-x86_64 - GMT 01:00
Jan 13, 2023 10:45:46.806 [0x7fdc88444b00] INFO - Linux version: DSM 7.1.1.42962-3, language: en-US
Jan 13, 2023 10:45:46.806 [0x7fdc88444b00] INFO - Processor: 2-core Intel(R) Celeron(R) J4025 CPU @ 2.00GHz
Jan 13, 2023 10:45:46.806 [0x7fdc88444b00] INFO - /volume1/@appstore/PlexMediaServer/Plex Media Scanner -C -f /volume2/Media/Movies/[redacted] --log-file-suffix  Credits
Jan 13, 2023 10:50:59.341 [0x7fdc884d8b40] ERROR - BufferingLineReader: failed to read line (error: -1)

Thanks, that is interesting. That error -2 indicates a timeout, which may imply that the device is a little underpowered for the default timeouts we have set. I might just set that value a bit higher to give slower systems a bit of leeway.

What’s not working exactly? Have you checked the XML Info for the media to see if the Marker tags are there?

That -1 error is normal sometimes, so it’s not something to be concerned about.

Please let me know if you need the debug file(s), happy to provide if needed.

No it’s fine, I’m doing a new build with a tweaked timeout which I will push a bit later. Then you can try it out and see if it fixes your issue.

2 Likes

Yes I did check the xlm info and there are no markers for credits.
For a movie the only reference to markers and/or Credits is:

<Setting id="enableCreditsMarkerGeneration" label="Enable credits detection" summary="Generate credits markers for this item." type="int" default="-1" value="-1" hidden="0" advanced="0" group="" enumValues="-1:Library default|0:Disabled"/>

For a Tv episode the only Marker is for Intro:

<Marker id="58504" type="intro" startTimeOffset="7799" endTimeOffset="79693">
<Attributes id="58504"/>
</Marker>

Have you got this to work? It looks it is

dpkg -i /data/test/plexmediaserver_1.30.3.6509-ea6337004_amd64.deb
(Reading database ... 9926 files and directories currently installed.)
Preparing to unpack .../plexmediaserver_1.30.3.6509-ea6337004_amd64.deb ...
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Custom environment detected.  Skipping preinstallation validation.
Unpacking plexmediaserver (1.30.3.6509-ea6337004) over (1.30.2.6563-3d4dc0cce) ...
Setting up plexmediaserver (1.30.3.6509-ea6337004) ...
PlexMediaServer install: Custom environment detected.  Skipping postinstallation tasks. Continuing.

but when I restart the container I see this in the log

dpkg: warning: downgrading plexmediaserver from 1.30.3.6509-ea6337004 to 1.30.2.6563-3d4dc0cce
(Reading database ... 9926 files and directories currently installed.)
Preparing to unpack /tmp/plexmediaserver.deb ...
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Custom environment detected.  Skipping preinstallation validation.
Unpacking plexmediaserver (1.30.2.6563-3d4dc0cce) over (1.30.3.6509-ea6337004) ...
Setting up plexmediaserver (1.30.2.6563-3d4dc0cce) ...
PlexMediaServer install: Custom environment detected.  Skipping postinstallation tasks. Continuing.

I’m sure I’m stupid and missing something

I got this to work with setting the VERSION environment variable in my docker-compose file to the explicit version number of this build.

I’ve found my first thing where the detection went wrong. Guy’s Grocery Games Season 31 Episode 6 – Beat the Judges: Vegetarian

It sees the scoreboard as credits.

Do you guys need more info / logs?