Credits detection same movie

Just contributing in my own feedback that I have seen the same behavior with Plex. I currently have version 1.69.1.3755-e00242c8 installed to a Synology NAS, and it, just like other versions before it, seem to just be running Credits Detection every single night for the same movies, eating up an entire CPU Core in the process.

The movies I notice it getting stuck on are the same ones. For example…

  • Disney’s Mulan (2020)
  • Crouching Tiger, Hidden Dragon
  • Star Wars Episodes 1-6

The commonality here seems to be HEVC 4K movies ripped right from a Blu-Ray disc without any re-encoding or re-muxing work. All of my 1080p movies in VC-1 or H.264, and MPEG2 seem to be fine. The moment an HEVC 4K movie comes along, credit markers don’t seem to be present! This is also true for movies which were ripped and added 1-2 years ago. They lack the Credits markers on the 4K Copies, but the 1080p copies are just fine.

The example movies I gave were added very recently. One movie which DID in fact get Credit Markers applied accurately was “Everything, Everywhere, all at once.” The 1080p and 4K copies are both HEVC and they do not get scanned every night. That was added at least a few months ago.

Also if it matters any, Plex never shows a progress wheel in the detection. At some point it will seem to skip onto the next movie.

Have a look at the Plex Media Scanner Credits.log file. I also have (had - as of today) a candidate that is (was) being picked up every day. In my case the video file was sort of corrupt towards the end and Plex started its search for credits in that section of the file.
Run ffmpeg with the same arguments that are passed to the Plex Transcoder app and check the output.

May 25, 2023 01:29:18.280 [0x207315b40] DEBUG - [JobRunner] Job running: FFMPEG_EXTERNAL_LIBS='/Users/htpc/Library/Application\ Support/Plex\ Media\ Server/Codecs/8217c1c-4565-darwin-aarch64/' "/Applications/Plex Media Server.app/Contents/MacOS/Plex Transcoder" -codec:v hevc -y -threads 6 -skip_frame noref -ss 2735 -i "/Volumes/DROBO/Media/TV Shows/The Walking Dead/Season 06/The Walking Dead - S06E08 - Start to Finish.mp4" -vf "[in]fps=0.5,scale=w=320:h=320:force_original_aspect_ratio=increase,showinfo[out]" -vsync passthrough -f image2 "thumb-%05d.jpeg"
May 25, 2023 01:29:18.280 [0x207315b40] DEBUG - [JobRunner] In directory: "/var/folders/yt/29d6r2b140gcdh9dnv_dh2m00000gp/T/PlexCreditsDetection-19e47723-50ab-4e4c-b6ab-922c1c806fbb"
May 25, 2023 01:29:18.281 [0x207315b40] DEBUG - [JobRunner] Jobs: Starting child process with pid 3413
May 25, 2023 01:29:18.429 [0x207315b40] ERROR - BufferingLineReader: failed to read line (error: -1)

I just turned on Debug logging. Let’s see what turns up.

From my existing logs, here’s what shows up around the time the scans commence:

From Plex Media Server.log…

May 25, 2023 08:31:08.035 [140634306628408] ERROR - [CreditsDetectionManager] BufferingLineReader: failed to read line (error: -2)
May 25, 2023 08:31:18.054 [140634306628408] ERROR - [CreditsDetectionManager] Job failed: Scanner job failed
May 25, 2023 08:54:31.734 [140634185087800] WARN - NAT: PMP, got an error: Not Supported by gateway.
May 25, 2023 09:01:18.443 [140634306628408] ERROR - [CreditsDetectionManager] BufferingLineReader: failed to read line (error: -2)
May 25, 2023 09:01:28.463 [140634306628408] ERROR - [CreditsDetectionManager] Job failed: Scanner job failed
May 25, 2023 09:31:28.860 [140634306628408] ERROR - [CreditsDetectionManager] BufferingLineReader: failed to read line (error: -2)
May 25, 2023 09:31:38.879 [140634306628408] ERROR - [CreditsDetectionManager] Job failed: Scanner job failed
May 25, 2023 09:54:26.732 [140634245327672] WARN - NAT: PMP, got an error: Not Supported by gateway.
May 25, 2023 10:01:39.546 [140634306628408] ERROR - [CreditsDetectionManager] BufferingLineReader: failed to read line (error: -2)
May 25, 2023 10:01:49.565 [140634306628408] ERROR - [CreditsDetectionManager] Job failed: Scanner job failed
May 25, 2023 10:31:49.998 [140634306628408] ERROR - [CreditsDetectionManager] BufferingLineReader: failed to read line (error: -2)
May 25, 2023 10:32:00.020 [140634306628408] ERROR - [CreditsDetectionManager] Job failed: Scanner job failed
May 25, 2023 10:54:32.440 [140634185087800] WARN - NAT: PMP, got an error: Not Supported by gateway.
May 25, 2023 11:02:00.407 [140634306628408] ERROR - [CreditsDetectionManager] BufferingLineReader: failed to read line (error: -2)
May 25, 2023 11:02:10.433 [140634306628408] ERROR - [CreditsDetectionManager] Job failed: Scanner job failed
May 25, 2023 11:32:10.836 [140634306628408] ERROR - [CreditsDetectionManager] BufferingLineReader: failed to read line (error: -2)
May 25, 2023 11:32:20.856 [140634306628408] ERROR - [CreditsDetectionManager] Job failed: Scanner job failed
May 25, 2023 11:54:26.779 [140634202237752] WARN - NAT: PMP, got an error: Not Supported by gateway.
May 25, 2023 12:02:21.320 [140634306628408] ERROR - [CreditsDetectionManager] BufferingLineReader: failed to read line (error: -2)
May 25, 2023 12:02:31.336 [140634306628408] ERROR - [CreditsDetectionManager] Job failed: Scanner job failed
May 25, 2023 12:32:31.699 [140634306628408] ERROR - [CreditsDetectionManager] BufferingLineReader: failed to read line (error: -2)
May 25, 2023 12:32:41.715 [140634306628408] ERROR - [CreditsDetectionManager] Job failed: Scanner job failed

From one of the “Plex Media Server Credits.log” files…

May 25, 2023 11:32:21.247 [139960861637376] INFO - Plex Media Scanner v1.32.2.7100-248a2daf0 - Synology DS1819+ x86_64 - build: linux-x86_64 - GMT -04:00
May 25, 2023 11:32:21.248 [139960861637376] INFO - Linux version: DSM 7.1.1.42962-5, language: en-US
May 25, 2023 11:32:21.248 [139960861637376] INFO - Processor: 4-core Intel(R) Atom(TM) CPU C3538 @ 2.10GHz
May 25, 2023 11:32:21.248 [139960861637376] INFO - /volume1/@appstore/PlexMediaServer/Plex Media Scanner -C -f /<removed> --log-file-suffix  Credits --creditsTempDataPath /var/packages/PlexMediaServer/shares/PlexMediaServer/AppData/tmp/PlexCreditsDetection-2e13715b-81d5-4cf9-8101-bcb7c66e4e25
May 25, 2023 11:32:21.532 [139960862165824] WARN - [FFMPEG] - Could not find codec parameters for stream 13 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (20000000) and 'probesize' (20000000) options
May 25, 2023 11:32:21.532 [139960862165824] WARN - [FFMPEG] - Could not find codec parameters for stream 14 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (20000000) and 'probesize' (20000000) options
May 25, 2023 11:32:21.532 [139960862165824] WARN - [FFMPEG] - Could not find codec parameters for stream 15 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (20000000) and 'probesize' (20000000) options
May 25, 2023 11:32:21.532 [139960862165824] WARN - [FFMPEG] - Could not find codec parameters for stream 16 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (20000000) and 'probesize' (20000000) options
May 25, 2023 11:32:21.532 [139960862165824] WARN - [FFMPEG] - Could not find codec parameters for stream 17 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (20000000) and 'probesize' (20000000) options
May 25, 2023 11:32:21.532 [139960862165824] WARN - [FFMPEG] - Could not find codec parameters for stream 18 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (20000000) and 'probesize' (20000000) options
May 25, 2023 11:32:21.532 [139960862165824] WARN - [FFMPEG] - Could not find codec parameters for stream 19 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (20000000) and 'probesize' (20000000) options
May 25, 2023 11:32:21.532 [139960862165824] WARN - [FFMPEG] - Could not find codec parameters for stream 20 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (20000000) and 'probesize' (20000000) options
May 25, 2023 11:32:21.533 [139960862165824] WARN - [FFMPEG] - Could not find codec parameters for stream 21 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (20000000) and 'probesize' (20000000) options
May 25, 2023 11:32:21.533 [139960862165824] WARN - [FFMPEG] - Could not find codec parameters for stream 22 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (20000000) and 'probesize' (20000000) options
May 25, 2023 11:32:21.533 [139960862165824] WARN - [FFMPEG] - Could not find codec parameters for stream 23 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (20000000) and 'probesize' (20000000) options
May 25, 2023 11:32:21.533 [139960862165824] WARN - [FFMPEG] - Could not find codec parameters for stream 24 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (20000000) and 'probesize' (20000000) options
May 25, 2023 11:32:21.533 [139960862165824] WARN - [FFMPEG] - Could not find codec parameters for stream 25 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (20000000) and 'probesize' (20000000) options
May 25, 2023 11:32:21.533 [139960862165824] WARN - [FFMPEG] - Could not find codec parameters for stream 26 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (20000000) and 'probesize' (20000000) options
May 25, 2023 11:32:21.533 [139960862165824] WARN - [FFMPEG] - Could not find codec parameters for stream 27 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (20000000) and 'probesize' (20000000) options
May 25, 2023 11:32:21.533 [139960862165824] WARN - [FFMPEG] - Could not find codec parameters for stream 28 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (20000000) and 'probesize' (20000000) options
May 25, 2023 11:32:21.533 [139960862165824] WARN - [FFMPEG] - Could not find codec parameters for stream 29 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (20000000) and 'probesize' (20000000) options
May 25, 2023 11:32:21.533 [139960862165824] WARN - [FFMPEG] - Could not find codec parameters for stream 30 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (20000000) and 'probesize' (20000000) options

I’ll see what tonight turns up in the logs. The log files for Credits Detection just ends there.

OK. I manually analyzed one of the files and got the command from Plex which was being passed into FFMPEG. I copied the same file to my PC and used FFMPEG on Windows (however with 16 threads) to run the same sort of process Plex is doing. The only warning messages I received from FFMPEG were the ones I shared in my previous post, minus two others. FFMPEG otherwise was able to dump about 362 thumbnails into the working directory, and no errors or other warnings were thrown. So it doesn’t seem my issue is with video corruption.

The warnings Windows FFMPEG threw using the command used by Plex are the following:

-vsync is deprecated. Use -fps_mode
[swscaler @ 000001e6615c5940] [swscaler @ 000001e6615d6900] deprecated pixel format used, make sure you did set range correctly

Manual analysis did in fact fail. It took about a half hour to fail (I assume this is because Intel Atoms are slow on HEVC files). The log for that is:

May 25, 2023 22:50:06.913 [140634183252792] ERROR - [Req#7400/CreditsDetectionManager] BufferingLineReader: failed to read line (error: -2)
May 25, 2023 22:50:16.913 [140634183252792] DEBUG - [Req#7400/CreditsDetectionManager] Killing job.
May 25, 2023 22:50:16.913 [140634183252792] DEBUG - [Req#7400/CreditsDetectionManager] Signalling job ID 9094 with 9
May 25, 2023 22:50:16.913 [140634183252792] DEBUG - [Req#7400/CreditsDetectionManager] Activity: updated activity 88b645c2-13e8-4bd3-8be3-1220a8195df4 - completed 75.0% - Detecting Credits
May 25, 2023 22:50:16.917 [140634397236024] DEBUG - Jobs: '/volume1/@appstore/PlexMediaServer/Plex Media Scanner' exit code for process 9094 is -9 (signal: Killed)
May 25, 2023 22:50:16.951 [140634183252792] ERROR - [Req#7400/CreditsDetectionManager] Job failed: Scanner job failed
May 25, 2023 22:50:16.952 [140634183252792] DEBUG - [Req#7400/CreditsDetectionManager] Activity: Ended activity 88b645c2-13e8-4bd3-8be3-1220a8195df4.

During the Analysis, I can see Plex writing to the tmp folder and creating the thumbnails. Likewise it destroys the folder immediately after the process fails. So permissions to /tmp don’t seem to be the issue nor do file permissions seem to be the issue.

Build environment for the ffmpeg version I used on Windows:

ffmpeg version 5.1-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 12.1.0 (Rev2, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Build environment for the Plex version of ffmpeg:

ffmpeg version 8217c1c-4565 Copyright (c) 2000-2022 the FFmpeg developers
built with Plex clang version 11.0.1 (https://plex.tv 9b997da8e5b47bdb4a9425b3a3b290be393b4b1f)
configuration: --disable-static --enable-shared --disable-libx264 --disable-hwaccels --disable-protocol=concat --external-decoder=h264 --enable-debug --enable-muxers --enable-libxml2 --fatal-warnings --disable-gmp --disable-avdevice --disable-bzlib --disable-sdl2 --disable-decoders --disable-devices --disable-encoders --disable-ffprobe --disable-ffplay --disable-doc --disable-iconv --disable-lzma --disable-schannel --disable-linux-perf --disable-mediacodec --enable-eae --disable-protocol='udp,udplite' --arch=x86_64 --target-os=linux --strip=true --cc=x86_64-linux-musl-clang --pkg-config=/data/jenkins/conan_build/1112411745/plexconantool/plex-pkg-config --pkg-config-flags=--static --enable-cuda-llvm --enable-libdrm --enable-opencl --enable-cross-compile --ar=llvm-ar --nm=llvm-nm --ranlib=llvm-ranlib --extra-ldflags='-Wl,-rpath,/data/jenkins/conan_build/1112411745/conan/.conan/data/libpciaccess/0.17-0/plex/stable/package/7763a87432c78a82fd36373080b064286892cea3/lib -Wl,-rpath,/data/jenkins/conan_build/1112411745/conan/.conan/data/libdrm/2.4.115-1/plex/stable/package/42eba9224a0a19c9b983c233343e5610c7362833/lib -Wl,-rpath,/data/jenkins/conan_build/1112411745/conan/.conan/data/intel-gmmlib/22.3.5-0/plex/stable/package/d7d5d1f35ff92a8c39da6b47605055e839a42a9c/lib -Wl,-rpath,/data/jenkins/conan_build/1112411745/conan/.conan/data/libva/2.18.0-1/plex/stable/package/f0f4893209b867ce448a96e25ef4d6b158311557/lib -Wl,-rpath,/data/jenkins/conan_build/1112411745/conan/.conan/data/iconv/1.16-31/plex/stable/package/da4999666f4b1709dd93ae40fffdb2c6f130b23f/lib -Wl,-rpath,/data/jenkins/conan_build/1112411745/conan/.conan/data/openssl/3.0.8-31157bc-1/plex/stable/package/121b5d655884b039b2c06c747f3d73ef7b698b66/lib -Wl,-rpath,/data/jenkins/conan_build/1112411745/conan/.conan/data/libpciaccess/0.17-0/plex/stable/package/7763a87432c78a82fd36373080b064286892cea3/lib -Wl,-rpath,/data/jenkins/conan_build/1112411745/conan/.conan/data/libdrm/2.4.115-1/plex/stable/package/42eba9224a0a19c9b983c233343e5610c7362833/lib -Wl,-rpath,/data/jenkins/conan_build/1112411745/conan/.conan/data/intel-gmmlib/22.3.5-0/plex/stable/package/d7d5d1f35ff92a8c39da6b47605055e839a42a9c/lib -Wl,-rpath,/data/jenkins/conan_build/1112411745/conan/.conan/data/libva/2.18.0-1/plex/stable/package/f0f4893209b867ce448a96e25ef4d6b158311557/lib -Wl,-rpath,/data/jenkins/conan_build/1112411745/conan/.conan/data/iconv/1.16-31/plex/stable/package/da4999666f4b1709dd93ae40fffdb2c6f130b23f/lib -Wl,-rpath,/data/jenkins/conan_build/1112411745/conan/.conan/data/openssl/3.0.8-31157bc-1/plex/stable/package/121b5d655884b039b2c06c747f3d73ef7b698b66/lib -m64 -L/data/jenkins/conan_build/1112411745/conan/.conan/data/opus/1.2.1-33/plex/stable/package/64edc78a49b81c2615dad7b22a9ac90cc029860a/lib -L/data/jenkins/conan_build/1112411745/conan/.conan/data/libvorbis/1.3.5-37/plex/stable/package/76eba14299c6c14bf4759b1da21aec07c9ca1a2f/lib -L/data/jenkins/conan_build/1112411745/conan/.conan/data/dav1d/1.0.0-13/plex/stable/package/4d954bcc6be6a68b775ef1b1bae9dd65e4e237ff/lib -L/data/jenkins/conan_build/1112411745/conan/.conan/data/ffnvcodec/11.0.10.3-a62a66f-0/plex/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/lib -L/data/jenkins/conan_build/1112411745/conan/.conan/data/openssl/3.0.8-31157bc-1/plex/stable/package/121b5d655884b039b2c06c747f3d73ef7b698b66/lib -L/data/jenkins/conan_build/1112411745/conan/.conan/data/x264/161-1086f45-26/plex/stable/package/64edc78a49b81c2615dad7b22a9ac90cc029860a/lib -L/data/jenkins/conan_build/1112411745/conan/.conan/data/zvbi/0.2.35-59/plex/stable/package/7366a567f554439fb9e7a3415c9d1c2ea2b75360/lib -L/data/jenkins/conan_build/1112411745/conan/.conan/data/libass/0.16.0-4/plex/stable/package/d81dbed7e8ad560c9ec55240308ceb55b203927d/lib -L/data/jenkins/conan_build/1112411745/conan/.conan/data/mp3lame/3.98.4-32/plex/stable/package/64edc78a49b81c2615dad7b22a9ac90cc029860a/lib -L/data/jenkins/conan_build/1112411745/conan/.conan/data/intel-media-driver/23.1.6-2/plex/stable/package/d12e24b7b6517345c602cf4ea8a769db282682b4/lib -L/data/jenkins/conan_build/1112411745/conan/.conan/data/intel-vaapi-driver/2.4.1-28/plex/stable/package/19e75d7c0d9b5856d71bb430117903535b646f0c/lib -L/data/jenkins/conan_build/1112411745/conan/.conan/data/opencl-icd-loader/v2022.01.04-169f05d-1/plex/stable/package/417850def17ad9bd3a83ff74d4be34ee79a8b0c3/lib -L/data/jenkins/conan_build/1112411745/conan/.conan/data/libogg/1.3.2-33/plex/stable/package/64edc78a49b81c2615dad7b22a9ac90cc029860a/lib -L/data/jenkins/conan_build/1112411745/conan/.conan/data/iconv/1.16-31/plex/stable/package/da4999666f4b1709dd93ae40fffdb2c6f130b23f/lib -L/data/jenkins/conan_build/1112411745/conan/.conan/data/fribidi/1.0.12-1/plex/stable/package/464531ac2a3f2ab2167bd10d1214603bc8116983/lib -L/data/jenkins/conan_build/1112411745/conan/.conan/data/harfbuzz/4.2.1-3/plex/stable/package/53415d552ac96104f622ffa8d8530937a40b4271/lib -L/data/jenkins/conan_build/1112411745/conan/.conan/data/libva/2.18.0-1/plex/stable/package/f0f4893209b867ce448a96e25ef4d6b158311557/lib -L/data/jenkins/conan_build/1112411745/conan/.conan/data/intel-gmmlib/22.3.5-0/plex/stable/package/d7d5d1f35ff92a8c39da6b47605055e839a42a9c/lib -L/data/jenkins/conan_build/1112411745/conan/.conan/data/fontconfig/2.14.0-3/plex/stable/package/aacc2a7710dfa87ed80d4eea45b80c93243fe456/lib -L/data/jenkins/conan_build/1112411745/conan/.conan/data/libdrm/2.4.115-1/plex/stable/package/42eba9224a0a19c9b983c233343e5610c7362833/lib -L/data/jenkins/conan_build/1112411745/conan/.conan/data/libxml2/2.9.11-e1bcffea-12/plex/stable/package/33406d37abb556848190dcd6097a9849aa894baf/lib -L/data/jenkins/conan_build/1112411745/conan/.conan/data/freetype2/2.12.1-25/plex/stable/package/82a00e1e4cc2e8878bb79ae9b5e2235fd8280e6a/lib -L/data/jenkins/conan_build/1112411745/conan/.conan/data/expat/2.2.5-34/plex/stable/package/64edc78a49b81c2615dad7b22a9ac90cc029860a/lib -L/data/jenkins/conan_build/1112411745/conan/.conan/data/libuuid/1.0.3-27/plex/stable/package/841d526523d3550ac4d52807df94cbbedce37e2c/lib -L/data/jenkins/conan_build/1112411745/conan/.conan/data/libpciaccess/0.17-0/plex/stable/package/7763a87432c78a82fd36373080b064286892cea3/lib -L/data/jenkins/conan_build/1112411745/conan/.conan/data/libpthread-stubs/0.4-34/plex/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/lib -L/data/jenkins/conan_build/1112411745/conan/.conan/data/bzip2/1.0.6-37/plex/stable/package/618bb3c469051b52e1349cf1a297263df374d15a/lib -L/data/jenkins/conan_build/1112411745/conan/.conan/data/libpng/1.6.37-40/plex/stable/package/33406d37abb556848190dcd6097a9849aa894baf/lib -L/data/jenkins/conan_build/1112411745/conan/.conan/data/zlib/1.2.11-31/plex/stable/package/64edc78a49b81c2615dad7b22a9ac90cc029860a/lib -Wl,--gc-sections -Wl,-z,noexecstack -Wl,-z,relro -g2 -gdwarf-4 -Wl,--build-id=sha1 -flto=thin -fwhole-program-vtables -Wl,--icf=all -Wl,--threads=6 -Wl,-O2 -l:libgcompat.so.0 -Wl,-rpath,'\''XORIGIN/../lib'\'' -Wl,-rpath,'\''XORIGIN/lib'\'' -Wl,--thinlto-cache-dir=/data/jenkins/conan_build/1112411745/conan/.conan/data/ffmpeg/2.0-8217c1c0546-4/plex/stable/build/25f8ed14f17a8fb87c9d4dd05638c2c40250ad43/lto_cache/' --extra-libs= --enable-decoder=png --enable-decoder=apng --enable-decoder=bmp --enable-decoder=mjpeg --enable-decoder=thp --enable-decoder=gif --enable-decoder=dirac --enable-decoder=ffv1 --enable-decoder=ffvhuff --enable-decoder=huffyuv --enable-decoder=libdav1d --enable-decoder=av1 --enable-decoder=rawvideo --enable-decoder=zero12v --enable-decoder=ayuv --enable-decoder=r210 --enable-decoder=v210 --enable-decoder=v210x --enable-decoder=v308 --enable-decoder=v408 --enable-decoder=v410 --enable-decoder=y41p --enable-decoder=yuv4 --enable-decoder=ansi --enable-decoder=alac --enable-decoder=flac --enable-decoder=vorbis --enable-decoder=opus --enable-decoder=pcm_f32be --enable-decoder=pcm_f32le --enable-decoder=pcm_f64be --enable-decoder=pcm_f64le --enable-decoder=pcm_lxf --enable-decoder=pcm_s16be --enable-decoder=pcm_s16be_planar --enable-decoder=pcm_s16le --enable-decoder=pcm_s16le_planar --enable-decoder=pcm_s24be --enable-decoder=pcm_s24le --enable-decoder=pcm_s24le_planar --enable-decoder=pcm_s32be --enable-decoder=pcm_s32le --enable-decoder=pcm_s32le_planar --enable-decoder=pcm_s8 --enable-decoder=pcm_s8_planar --enable-decoder=pcm_u16be --enable-decoder=pcm_u16le --enable-decoder=pcm_u24be --enable-decoder=pcm_u24le --enable-decoder=pcm_u32be --enable-decoder=pcm_u32le --enable-decoder=pcm_u8 --enable-decoder=pcm_alaw --enable-decoder=pcm_mulaw --enable-decoder=ass --enable-decoder=dvbsub --enable-decoder=dvdsub --enable-decoder=ccaption --enable-decoder=pgssub --enable-decoder=jacosub --enable-decoder=microdvd --enable-decoder=movtext --enable-decoder=mpl2 --enable-decoder=pjs --enable-decoder=realtext --enable-decoder=sami --enable-decoder=ssa --enable-decoder=stl --enable-decoder=subrip --enable-decoder=subviewer --enable-decoder=text --enable-decoder=vplayer --enable-decoder=webvtt --enable-decoder=xsub --enable-decoder=eac3_eae --enable-decoder=truehd_eae --enable-decoder=mlp_eae --enable-encoder=flac --enable-encoder=alac --enable-encoder=libvorbis --enable-encoder=libopus --enable-encoder=mjpeg --enable-encoder=png --enable-encoder=rawvideo --enable-encoder=wrapped_avframe --enable-encoder=ass --enable-encoder=dvbsub --enable-encoder=dvdsub --enable-encoder=movtext --enable-encoder=ssa --enable-encoder=subrip --enable-encoder=text --enable-encoder=webvtt --enable-encoder=xsub --enable-encoder=pcm_f32be --enable-encoder=pcm_f32le --enable-encoder=pcm_f64be --enable-encoder=pcm_f64le --enable-encoder=pcm_s8 --enable-encoder=pcm_s8_planar --enable-encoder=pcm_s16be --enable-encoder=pcm_s16be_planar --enable-encoder=pcm_s16le --enable-encoder=pcm_s16le_planar --enable-encoder=pcm_s24be --enable-encoder=pcm_s24le --enable-encoder=pcm_s24le_planar --enable-encoder=pcm_s32be --enable-encoder=pcm_s32le --enable-encoder=pcm_s32le_planar --enable-encoder=pcm_u8 --enable-encoder=pcm_u16be --enable-encoder=pcm_u16le --enable-encoder=pcm_u24be --enable-encoder=pcm_u24le --enable-encoder=pcm_u32be --enable-encoder=pcm_u32le --enable-encoder=h264_vaapi --enable-encoder=hevc_vaapi --enable-encoder=h264_nvenc --enable-encoder=eac3_eae --enable-hwaccel=av1_vaapi --enable-hwaccel=av1_nvdec --prefix=/data/jenkins/conan_build/1112411745/conan/.conan/data/ffmpeg/2.0-8217c1c0546-4/plex/stable/build/25f8ed14f17a8fb87c9d4dd05638c2c40250ad43/transcoder-install --enable-libzvbi --enable-openssl --enable-libass --enable-libopus --enable-libvorbis --enable-libdav1d --extra-cflags='-m64 -O3 -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g2 -gdwarf-4 -fcommon -flto=thin -fwhole-program-vtables -I/data/jenkins/conan_build/1112411745/conan/.conan/data/opus/1.2.1-33/plex/stable/package/64edc78a49b81c2615dad7b22a9ac90cc029860a/include -I/data/jenkins/conan_build/1112411745/conan/.conan/data/libvorbis/1.3.5-37/plex/stable/package/76eba14299c6c14bf4759b1da21aec07c9ca1a2f/include -I/data/jenkins/conan_build/1112411745/conan/.conan/data/dav1d/1.0.0-13/plex/stable/package/4d954bcc6be6a68b775ef1b1bae9dd65e4e237ff/include -I/data/jenkins/conan_build/1112411745/conan/.conan/data/ffnvcodec/11.0.10.3-a62a66f-0/plex/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include -I/data/jenkins/conan_build/1112411745/conan/.conan/data/openssl/3.0.8-31157bc-1/plex/stable/package/121b5d655884b039b2c06c747f3d73ef7b698b66/include -I/data/jenkins/conan_build/1112411745/conan/.conan/data/x264/161-1086f45-26/plex/stable/package/64edc78a49b81c2615dad7b22a9ac90cc029860a/include -I/data/jenkins/conan_build/1112411745/conan/.conan/data/zvbi/0.2.35-59/plex/stable/package/7366a567f554439fb9e7a3415c9d1c2ea2b75360/include -I/data/jenkins/conan_build/1112411745/conan/.conan/data/libass/0.16.0-4/plex/stable/package/d81dbed7e8ad560c9ec55240308ceb55b203927d/include -I/data/jenkins/conan_build/1112411745/conan/.conan/data/mp3lame/3.98.4-32/plex/stable/package/64edc78a49b81c2615dad7b22a9ac90cc029860a/include -I/data/jenkins/conan_build/1112411745/conan/.conan/data/intel-media-driver/23.1.6-2/plex/stable/package/d12e24b7b6517345c602cf4ea8a769db282682b4/include -I/data/jenkins/conan_build/1112411745/conan/.conan/data/libogg/1.3.2-33/plex/stable/package/64edc78a49b81c2615dad7b22a9ac90cc029860a/include -I/data/jenkins/conan_build/1112411745/conan/.conan/data/iconv/1.16-31/plex/stable/package/da4999666f4b1709dd93ae40fffdb2c6f130b23f/include -I/data/jenkins/conan_build/1112411745/conan/.conan/data/fribidi/1.0.12-1/plex/stable/package/464531ac2a3f2ab2167bd10d1214603bc8116983/include -I/data/jenkins/conan_build/1112411745/conan/.conan/data/harfbuzz/4.2.1-3/plex/stable/package/53415d552ac96104f622ffa8d8530937a40b4271/include/harfbuzz -I/data/jenkins/conan_build/1112411745/conan/.conan/data/libva/2.18.0-1/plex/stable/package/f0f4893209b867ce448a96e25ef4d6b158311557/include -I/data/jenkins/conan_build/1112411745/conan/.conan/data/intel-gmmlib/22.3.5-0/plex/stable/package/d7d5d1f35ff92a8c39da6b47605055e839a42a9c/include -I/data/jenkins/conan_build/1112411745/conan/.conan/data/opencl-headers/v2022.01.04-59ac4dc-1/plex/stable/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include -I/data/jenkins/conan_build/1112411745/conan/.conan/data/fontconfig/2.14.0-3/plex/stable/package/aacc2a7710dfa87ed80d4eea45b80c93243fe456/include -I/data/jenkins/conan_build/1112411745/conan/.conan/data/libdrm/2.4.115-1/plex/stable/package/42eba9224a0a19c9b983c233343e5610c7362833/include -I/data/jenkins/conan_build/1112411745/conan/.conan/data/libdrm/2.4.115-1/plex/stable/package/42eba9224a0a19c9b983c233343e5610c7362833/include/libdrm -I/data/jenkins/conan_build/1112411745/conan/.conan/data/libxml2/2.9.11-e1bcffea-12/plex/stable/package/33406d37abb556848190dcd6097a9849aa894baf/include -I/data/jenkins/conan_build/1112411745/conan/.conan/data/libxml2/2.9.11-e1bcffea-12/plex/stable/package/33406d37abb556848190dcd6097a9849aa894baf/include/libxml2 -I/data/jenkins/conan_build/1112411745/conan/.conan/data/freetype2/2.12.1-25/plex/stable/package/82a00e1e4cc2e8878bb79ae9b5e2235fd8280e6a/include -I/data/jenkins/conan_build/1112411745/conan/.conan/data/expat/2.2.5-34/plex/stable/package/64edc78a49b81c2615dad7b22a9ac90cc029860a/include -I/data/jenkins/conan_build/1112411745/conan/.conan/data/libuuid/1.0.3-27/plex/stable/package/841d526523d3550ac4d52807df94cbbedce37e2c/include -I/data/jenkins/conan_build/1112411745/conan/.conan/data/libpciaccess/0.17-0/plex/stable/package/7763a87432c78a82fd36373080b064286892cea3/include -I/data/jenkins/conan_build/1112411745/conan/.conan/data/bzip2/1.0.6-37/plex/stable/package/618bb3c469051b52e1349cf1a297263df374d15a/include -I/data/jenkins/conan_build/1112411745/conan/.conan/data/libpng/1.6.37-40/plex/stable/package/33406d37abb556848190dcd6097a9849aa894baf/include -I/data/jenkins/conan_build/1112411745/conan/.conan/data/zlib/1.2.11-31/plex/stable/package/64edc78a49b81c2615dad7b22a9ac90cc029860a/include -DLIBXML_STATIC -DFRIBIDI_LIB_STATIC -DNDEBUG'
libavutil      57. 24.101 / 57. 24.101
libavcodec     59. 25.100 / 59. 25.100
libavformat    59. 20.101 / 59. 20.101
libavfilter     8. 29.100 /  8. 29.100
libswscale      6.  6.100 /  6.  6.100
libswresample   4.  6.100 /  4.  6.100

So if I were to take a guess here. My server seems to be quitting the Analysis exactly a half hour every single time. It was able to produce about 230 thumbnails of my trial movie. The same command on the Windows machine produced 361 thumbnails.

It seems Plex is basically giving up because it’s taking too long to analyze. I assume ffmpeg has to finish producing all of the thumbnails (in this case, 361) before it reviews the output of ffmpeg for the credits.

In my run, ffmpeg transcoded several thumbnails showing the end credits clearly, before the process ended. Here’s an example screenshot showing how far it got just before the analysis process gave up.

The fact that it keeps failing after about 30 minutes could indeed indicate that it is a timeout issue.
Pointing @drzoidberg33 to this problem, perhaps he is able to help.

It does appear to be a timeout issue in my case. I am considering making a modification to the Plex Media Server which would force the Transcoder binary to run with more threads (2-3 threads), perhaps by passing in -threads 3 into the command line options, but I don’t know what sort of consequences that might have for the rest of the server. 30 minutes is the drop dead and error cutoff for every movie that is stuck trying to do Credits detection.

Ideally if Plex could have an adjustable timer for when an analysis job is considered “stuck” say, instead of 30 minutes, it being adjustable up to 1-2 hours, that might be helpful. Or if the number of threads can be adjusted in the Server settings, that would also help on these slower machines.

Really need a solution to this sooner rather than later. So much electricity being wasted all over the world because of this repeated failed scanning.

I’m having the same issue with credit detection repeatedly working on the same movie(s).

I’m running Plex Version 1.32.5.7349.

I’ve turned off credit detection on all my movie libraries until this gets fixed.

I have also the problem that Plex tries to detect the same movies over and over again.

Is there any improvement expected in the future?

Any progress? I’ve been having the same issue for a while now on a few movies with PMS running on Synology NAS in Container Manager Version 1.32.8.7639.

The affected movies do seem to be MKV remuxes (MKVToolNixGUI) of full UHD BD discs.
Plex Media Scanner Credits.2.log (1.1 KB)
Plex Media Scanner Credits.log (309.8 KB)

Thanks.

1 Like

Because of the constant failing and needless burning of power I’m forced to disable the scheduled credits detection.

However this also disables the possibility to manually detect credits via “analyzing” a media item.
Who had this brightest of ideas?

So everytime I want to manually detect some credits I need to enable the scheduled credits detection, manually analyze the items and disable the scheduled credits detection again…

This probably cause issue that Plex Transcoder process dont close properly after schedule time. I have all the time like 5 processes of Plex Transcoder active with about 100-300MB of RAM each.

Are there any news here regarding a fix of this issue?

1 Like

Bump. Where is the fix for this issue?

There would be a quite simple band aid fix to that issue IMHO.

Movies which could not be detected three (?) times in a row are set to “credits detection:disabled” (the already existing setting) and a filter option for that is added, so we can pull a list of entires without enabled credits detection.

Hmm, is it intended that the “credits detection” setting at item level propagates through every library?

While credits detection mostly seems to fail on Remuxes and 4K, it works on 1080p.
Deactivating credits detection on the items in the Remux library also disables it for the item in the regular library, though. The consequences are, that the asucessfully generated credits marker is not used anymore.

On the other hand generated credits marker in one library do NOT propagate over to other versions of that item in other libraries (even with the exact same length). That may be another way to solve the problem.

Sorry, but the whole credits detection feature needs a SEVERE overhaul to be useful!
Would be great if a Plex assoiciate would answer here at the very least.

I inreased the log rotation number in order to track the credits detection issue further and found the following:

Credits detection for a 1080p movie usually takes about 5 minutes, for a 1080p remux about 10 minutes and for a 4K remux about 20 minutes each on my system.

For some movies (mostly 4K) the generation of the thumbnails for the credits detection seem to take more than 30 minutes though.
And 30 minutes seem to be some kind of internal maximum threshold, because credit detection is aborted (without log entry) and not finished on those items.

So two questions arise from that findings:

  • Why do some movies take that long?
  • How do I increase the internal duration threshold for credits detection?

Another great change would be if credits detection would be carried out on the version with the LOWEST resolution, instead on the one with the highest.

Even worse: I tried to let Plex detect credits on the 1080p version, while moving the 4K version out of the folder. Credtis detection was successful within 10 minutes.
After moving the 4K version back into the folder, Plex tries to detect credits again on the 4K version without success (despite credits markers already being present in the media item)

I too am seeing the same error as in this thread. Every night during scheduled tasks i hear the server fan go crazy, when checking the activity in Plex it is stuck detecting intro’s for the same movie. Log file shows the same error messages as reported on this thread.

Is there a fix available for this yet?