[Forum Preview] Credits Detection for Plex Media Server

Emphasis mine. The current version of Plex for ATV is 8.13; how does one get the beta version to try this? I assumed “shipping clients” meant “current release versions;” could you clarify what it means?

That’s correct. All the current public releases of the mentioned clients should be able to offer a skip credits button or jump to the post-play screen if the final credits appear.
No need to install a client beta.

To use/test the feature you’ll however need the server preview linked in the original post at the top of this thread.

Which I have. The PMS preview is running, and it did go through and scan everything.

But again, my client version (8.13) matches the latest release according to the App Store, yet the list shows I need at least 8.9. Where/how do I get that? Because right now, I never get the button.

8.13 is newer than 8.9 – you usually don’t read software releases as decimals… this isn’t 8 point 1 3 vs. 8 point 9 but major release 8 minor release 13 vs. minor release 9 (and 13 > 9).

So you should be perfectly fine with Plex for Apple TV 8.13 on your device.

Hmm. OK. Guess I’ll have to troubleshoot why it’s not working then.

Check the episode/movie in question via Plex Web:

  1. open the technical info of the file → > Get InfoView XML
  2. check if there’s a Marker element with the attribute type="credits"

Keep in mind the server will take quite some time to analyze all your shows. Detecting credits is more demanding than detecting intros. By default it’ll only run the scan during the specified server maintenance time.

Right, I know; I actually manually had it scan my entire TV library a week ago (and watched it scan). But the skip credits button never appears on anything.

As for the XML…this is odd. I looked at random episodes, and most don’t have the “credits” Marker element (thing #1 for me to investigate), but at least one did. So I need to go back and try that item to see if I get the skip button; I’ll also look at the rest to see if I can figure out why it doesn’t have it.

Thanks for your assistance!

If you want to do it manually, you need to analyse individual episodes or films (though you can select multiple at once). Analysing at library, show, or season level won’t work.

1 Like

Thanks! That’s absolutely a helpful tip.

I just tried doing a few random episodes of things, and none added the credits marker to their XML. I’ll dig into that more tomorrow; I’m gonna go watch my Plex instead of administer it. :wink:

It gets the credits for Wargames (1983) amusingly wrong. I’m not complaining: the prompt wasn’t obtrusive, and I thought it was fun to see.

There’s lots of text on screen - WOPR is playing tic tac toe and testing launch codes.

And Plex got the actual credits correct, even though they’re red and a weird font.

<Marker id="87319" type="credits" startTimeOffset="6294293" endTimeOffset="6346293"></Marker>
<Marker id="87319" type="credits" startTimeOffset="6474293" endTimeOffset="6518293"></Marker>
<Marker id="87319" type="credits" startTimeOffset="6584293" endTimeOffset="6760548"></Marker>

Woke up early and while the family was still asleep I started to poke into the Plex Media Scanner Credits.x log files that are created. It appears the scanning process is throwing errors. These are the same files that keep getting reprocessed everyday leading to very little progress day over day on the credit scanning front. Open to ideas/recommendations on where i’ve screwed this up :wink:

Summary
Jan 14, 2023 05:37:01.826 [15700] INFO - 24 2600 MHz processor(s): Architecture=9, Level=6, Revision=15876 Processor Identifier=Intel64 Family 6 Model 62 Stepping 4, GenuineIntel
Jan 14, 2023 05:37:01.826 [15700] DEBUG - "C:\Program Files\Plex\Plex Media Server\Plex Media Scanner.exe" -C -f "E:\Television Shows\Roseanne\Season 05\Roseanne - S05E10 - Good Girls, Bad Girls.mkv" --log-file-suffix " Credits"
Jan 14, 2023 05:37:01.828 [5940] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.35.5, threadsafe=1
Jan 14, 2023 05:37:01.930 [5940] DEBUG - [ID -1] Media part analysis: E:\Television Shows\Roseanne\Season 05\Roseanne - S05E10 - Good Girls, Bad Girls.mkv
Jan 14, 2023 05:37:01.930 [5940] DEBUG - [MI] Opening input file: "E:\Television Shows\Roseanne\Season 05\Roseanne - S05E10 - Good Girls, Bad Girls.mkv"
Jan 14, 2023 05:37:01.930 [5940] DEBUG - [FFMPEG] - Opening 'E:\Television Shows\Roseanne\Season 05\Roseanne - S05E10 - Good Girls, Bad Girls.mkv' for reading
Jan 14, 2023 05:37:01.930 [5940] DEBUG - [FFMPEG] - Setting default whitelist 'file,crypto,data'
Jan 14, 2023 05:37:01.948 [5940] DEBUG - [FFMPEG] - Format matroska,webm probed with size=2048 and score=100
Jan 14, 2023 05:37:01.948 [5940] DEBUG - [FFMPEG] - st:0 removing common factor 1000000 from timebase
Jan 14, 2023 05:37:01.948 [5940] DEBUG - [FFMPEG] - st:1 removing common factor 1000000 from timebase
Jan 14, 2023 05:37:01.948 [5940] DEBUG - [FFMPEG] - st:2 removing common factor 1000000 from timebase
Jan 14, 2023 05:37:01.948 [5940] DEBUG - [FFMPEG] - st:3 removing common factor 1000000 from timebase
Jan 14, 2023 05:37:01.948 [5940] DEBUG - [FFMPEG] - Before avformat_find_stream_info() pos: 4384 bytes read:32768 seeks:0 nb_streams:4
Jan 14, 2023 05:37:01.949 [5940] DEBUG - [FFMPEG] - nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
Jan 14, 2023 05:37:01.949 [5940] DEBUG - [FFMPEG] - Decoding VPS
Jan 14, 2023 05:37:01.949 [5940] DEBUG - [FFMPEG] - Main profile bitstream
Jan 14, 2023 05:37:01.949 [5940] DEBUG - [FFMPEG] - nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
Jan 14, 2023 05:37:01.949 [5940] DEBUG - [FFMPEG] - Decoding SPS
Jan 14, 2023 05:37:01.949 [5940] DEBUG - [FFMPEG] - Main profile bitstream
Jan 14, 2023 05:37:01.949 [5940] DEBUG - [FFMPEG] - Decoding VUI
Jan 14, 2023 05:37:01.949 [5940] DEBUG - [FFMPEG] - nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
Jan 14, 2023 05:37:01.949 [5940] DEBUG - [FFMPEG] - Decoding PPS
Jan 14, 2023 05:37:01.949 [5940] DEBUG - [FFMPEG] - nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
Jan 14, 2023 05:37:01.949 [5940] DEBUG - [FFMPEG] - Decoding SEI
Jan 14, 2023 05:37:01.951 [5940] DEBUG - [FFMPEG] - All info found
Jan 14, 2023 05:37:01.951 [5940] DEBUG - [FFMPEG] - After avformat_find_stream_info() pos: 5168 bytes read:32768 seeks:0 frames:4
Jan 14, 2023 05:37:01.955 [5940] DEBUG - [MI]  *  [mkv hevc/aac] Duration: 1320490ms, 1416x1074 (1.318436) 29.970fps, bitrate=2922kbps, audio channels=2, optimizedForStreaming=0 ("E:\Television Shows\Roseanne\Season 05\Roseanne - S05E10 - Good Girls, Bad Girls.mkv")
Jan 14, 2023 05:37:01.955 [5940] DEBUG - [MI] Chapters had generic titles, clearing.
Jan 14, 2023 05:37:01.956 [5940] DEBUG - [MI] Closing input file: "E:\Television Shows\Roseanne\Season 05\Roseanne - S05E10 - Good Girls, Bad Girls.mkv"
Jan 14, 2023 05:37:01.956 [5940] DEBUG - [JobRunner] Job running: set "FFMPEG_EXTERNAL_LIBS=\\\\?\\M\:\\plex\\Plex\ Media\ Server\\Codecs\\583b3e4-4441-windows-x86_64\\" & "C:\Program Files\Plex\Plex Media Server\Plex Transcoder.exe" -y -threads 0 -skip_frame noref -ss 1188 -i "E:\Television Shows\Roseanne\Season 05\Roseanne - S05E10 - Good Girls, Bad Girls.mkv" -vf [in]fps=0.5,scale=w=320:h=320:force_original_aspect_ratio=increase,showinfo[out] -vsync 0 -f image2 thumb-%05d.jpeg
Jan 14, 2023 05:37:01.956 [5940] DEBUG - [JobRunner] In directory: "C:\Users\video\AppData\Local\Temp\3\2bea7e7b-7b03-4f35-9285-f8a7be32a903"
Jan 14, 2023 05:37:01.957 [5940] DEBUG - [JobRunner] Jobs: Starting child process with pid 700
Jan 14, 2023 05:37:09.516 [16260] DEBUG - Jobs: 'C:\Program Files\Plex\Plex Media Server\Plex Transcoder.exe' exit code for process 700 is 0 (success)
Jan 14, 2023 05:37:09.519 [5940] ERROR - PeekNamedPipe failed: 0x6d
Jan 14, 2023 05:37:09.519 [5940] ERROR - BufferingLineReader: failed to read line (error: -1)


Jan 14, 2023 05:37:23.808 [3204] INFO - Plex Media Scanner v1.30.3.6509-ea6337004 - Microsoft PC x64-x64 - build: windows-x86_64 - GMT -06:00
Jan 14, 2023 05:37:23.808 [3204] INFO - Windows version: 6.2 (Build 9200), language en-US
Jan 14, 2023 05:37:23.808 [3204] INFO - 24 2600 MHz processor(s): Architecture=9, Level=6, Revision=15876 Processor Identifier=Intel64 Family 6 Model 62 Stepping 4, GenuineIntel
Jan 14, 2023 05:37:23.808 [3204] DEBUG - "C:\Program Files\Plex\Plex Media Server\Plex Media Scanner.exe" -C -f "E:\Television Shows\Roseanne\Season 05\Roseanne - S05E09 - Stand on Your Man.mkv" --log-file-suffix " Credits"
Jan 14, 2023 05:37:23.810 [6168] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.35.5, threadsafe=1
Jan 14, 2023 05:37:23.920 [6168] DEBUG - [ID -1] Media part analysis: E:\Television Shows\Roseanne\Season 05\Roseanne - S05E09 - Stand on Your Man.mkv
Jan 14, 2023 05:37:23.920 [6168] DEBUG - [MI] Opening input file: "E:\Television Shows\Roseanne\Season 05\Roseanne - S05E09 - Stand on Your Man.mkv"
Jan 14, 2023 05:37:23.921 [6168] DEBUG - [FFMPEG] - Opening 'E:\Television Shows\Roseanne\Season 05\Roseanne - S05E09 - Stand on Your Man.mkv' for reading
Jan 14, 2023 05:37:23.921 [6168] DEBUG - [FFMPEG] - Setting default whitelist 'file,crypto,data'
Jan 14, 2023 05:37:23.930 [6168] DEBUG - [FFMPEG] - Format matroska,webm probed with size=2048 and score=100
Jan 14, 2023 05:37:23.930 [6168] DEBUG - [FFMPEG] - st:0 removing common factor 1000000 from timebase
Jan 14, 2023 05:37:23.931 [6168] DEBUG - [FFMPEG] - st:1 removing common factor 1000000 from timebase
Jan 14, 2023 05:37:23.931 [6168] DEBUG - [FFMPEG] - st:2 removing common factor 1000000 from timebase
Jan 14, 2023 05:37:23.931 [6168] DEBUG - [FFMPEG] - st:3 removing common factor 1000000 from timebase
Jan 14, 2023 05:37:23.931 [6168] DEBUG - [FFMPEG] - Before avformat_find_stream_info() pos: 4384 bytes read:32768 seeks:0 nb_streams:4
Jan 14, 2023 05:37:23.931 [6168] DEBUG - [FFMPEG] - nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
Jan 14, 2023 05:37:23.931 [6168] DEBUG - [FFMPEG] - Decoding VPS
Jan 14, 2023 05:37:23.931 [6168] DEBUG - [FFMPEG] - Main profile bitstream
Jan 14, 2023 05:37:23.931 [6168] DEBUG - [FFMPEG] - nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
Jan 14, 2023 05:37:23.931 [6168] DEBUG - [FFMPEG] - Decoding SPS
Jan 14, 2023 05:37:23.931 [6168] DEBUG - [FFMPEG] - Main profile bitstream
Jan 14, 2023 05:37:23.931 [6168] DEBUG - [FFMPEG] - Decoding VUI
Jan 14, 2023 05:37:23.931 [6168] DEBUG - [FFMPEG] - nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
Jan 14, 2023 05:37:23.931 [6168] DEBUG - [FFMPEG] - Decoding PPS
Jan 14, 2023 05:37:23.931 [6168] DEBUG - [FFMPEG] - nal_unit_type: 39(SEI_PREFIX), nuh_layer_id: 0, temporal_id: 0
Jan 14, 2023 05:37:23.931 [6168] DEBUG - [FFMPEG] - Decoding SEI
Jan 14, 2023 05:37:23.934 [6168] DEBUG - [FFMPEG] - All info found
Jan 14, 2023 05:37:23.934 [6168] DEBUG - [FFMPEG] - After avformat_find_stream_info() pos: 5171 bytes read:32768 seeks:0 frames:4
Jan 14, 2023 05:37:23.939 [6168] DEBUG - [MI]  *  [mkv hevc/aac] Duration: 1320917ms, 1416x1076 (1.315985) 29.970fps, bitrate=3301kbps, audio channels=2, optimizedForStreaming=0 ("E:\Television Shows\Roseanne\Season 05\Roseanne - S05E09 - Stand on Your Man.mkv")
Jan 14, 2023 05:37:23.939 [6168] DEBUG - [MI] Chapters had generic titles, clearing.
Jan 14, 2023 05:37:23.939 [6168] DEBUG - [MI] Closing input file: "E:\Television Shows\Roseanne\Season 05\Roseanne - S05E09 - Stand on Your Man.mkv"
Jan 14, 2023 05:37:23.940 [6168] DEBUG - [JobRunner] Job running: set "FFMPEG_EXTERNAL_LIBS=\\\\?\\M\:\\plex\\Plex\ Media\ Server\\Codecs\\583b3e4-4441-windows-x86_64\\" & "C:\Program Files\Plex\Plex Media Server\Plex Transcoder.exe" -y -threads 0 -skip_frame noref -ss 1188 -i "E:\Television Shows\Roseanne\Season 05\Roseanne - S05E09 - Stand on Your Man.mkv" -vf [in]fps=0.5,scale=w=320:h=320:force_original_aspect_ratio=increase,showinfo[out] -vsync 0 -f image2 thumb-%05d.jpeg
Jan 14, 2023 05:37:23.940 [6168] DEBUG - [JobRunner] In directory: "C:\Users\video\AppData\Local\Temp\3\d9e3df18-dd1b-4de1-a350-81428ce9d905"
Jan 14, 2023 05:37:23.941 [6168] DEBUG - [JobRunner] Jobs: Starting child process with pid 28520
Jan 14, 2023 05:37:33.970 [18396] DEBUG - Jobs: 'C:\Program Files\Plex\Plex Media Server\Plex Transcoder.exe' exit code for process 28520 is 0 (success)
Jan 14, 2023 05:37:33.992 [6168] ERROR - PeekNamedPipe failed: 0x6d
Jan 14, 2023 05:37:33.992 [6168] ERROR - BufferingLineReader: failed to read line (error: -1)

Tried this today and got the same result as before. I’ll have a play around with it today see if I can see what is wrong

Can you grab the diagnostics, and DM them to @drzoidberg33, please?

Based off the credit logs my issue is caused by “ERROR - PeekNamedPipe failed: 0x6d”. Based off a previous intro id bug of the same error code there’s not much i can do from my side - [Bug] PeekNamedPipe failed: 0x6d when detecting intros - #14 by Tychi - ironically enough I’ve never had issues with the generation of intro or video previews.

What exactly did you put here? The explicit version doesn’t seem to be working for me :upside_down_face:

Nevermind, I needed to change “PLEX_DOWNLOAD” to “https://artifacts.plex.tv/plex-media-server-experimental

Ah yea, I had just downloaded and installed the file inside the container manually but this is even better :+1:t3:

So to summarize, setting these in your docker-compose.yml should automatically upgrade you to this experimental build:

environment:
  PLEX_DOWNLOAD: "https://artifacts.plex.tv/plex-media-server-experimental"
  VERSION: "1.30.3.6509-ea6337004"

If I roll to one of the more stable beta versions (1.30.2.x) will the currently created credits persist? My PMS build crashed every night with the audio analysos bug and its driving me bonkers. :slight_smile:

Marker submissions via api

Something else related we’ve been working on is a new cloud based marker api where detected markers can be submitted and then retrieved again later without having to run computationally heavy detection processes locally again. This is super useful when you have to recreate a library for some reason or do a clean re-install, so instead of taking hours for local detection to churn through everything it will take seconds to retrieve again.

Is retrieving cloud based markers only for self-generated ones or can we (now or in future) retrieve markers other people have generated to save us all having to process the same exact files?

When submitting these markers no user identifying information is passed along, we use a hash which is unique for every different file but you can also configure this behaviour in the settings. Marker submission is enabled by default but you can set it to do local detection only.

I assume the hash is tied to the file MD5 so for 2 different files (size, runtime, etc) of the same movie, only exact matches will work?

I love it when Plex introduce new features. :grin:

Yes, the idea is that you wold not need to self generate markers, but should you have the exact same file as someone else, or have had that file before, you would be able to get the markers from the cloud.

5 Likes

Is there a way for it to have similar functionality as netflix? Where it starts a quick countdown and then skips to the next episode for TV shows?