![]() ![]() That worked great manually, so I dropped it into the Plex directory and restarted Plex. Perl -pi -e 's/Throttle/Thrapple/g' "Plex Transcoder" To test, I hacked up a copy of the Transcoder binary, changing every instance of “Throttle” to “Thrapple”, so it wouldn’t parse canThrottle any more. Is the Transcoder obeying this instruction to throttle? That canThrottle there is very interesting. Then I looked at the responses from PMS to the Transcoder, and realized the Transcoder is actually following instructions. The Transcoder is sleeping when it should be working, so I blamed it. It sends status updates to PMS every 500ms, and PMS responds very quickly. When I provide -progressurl, and a good X_PLEX_TOKEN, and a valid URL, then it becomes dramatically slower.Īt first I thought the Transcoder must be doing something wrong. Without -progressurl, or if I don’t set a good X_PLEX_TOKEN, or if I give a bad URL, then it is fast. If I remove -progressurl it becomes fast: $. (Note: I removed -nostats and -loglevel quiet so I could see what was going on. That’s how bad it has been from inside Plex, too. Plex\ Transcoder -skip_frame:v nokey -i input.mkv -threads 0 -q 3 \ This is how it extracts jpg images for index-sd.bif preview thumbnail generation: $. LD_LIBRARY_PATH=/PATH/TO/PLEX/LIBįFMPEG_EXTERNAL_LIBS=/PATH/TO/DATA/CODECS/Ĭalling Plex Transcoder in the same way PMS does is very slow. It didn’t make sense for ffmpeg to be faster, so I set the environment variables and called Plex Transcoder directly. I ran ffmpeg with the same arguments, and extracting the jpg files was hundreds ( !!!) of times faster. I looked at how Plex Transcoder is called. I noticed that while being slow, it’s also hardly doing any I/O or asking for any CPU, and that the Transcoder process is spending a lot of time sleeping. Today I got frustrated and started looking. Generating video preview thumbnail / media index / index-sd.bif files has been surprisingly slow for me. I modified the Transcoder binary to test this theory, with great results. TLDR: I think Plex Transcoder is being unnecessarily throttled by PMS when processing background media tasks. FreeBSD version manually installed in a jail. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |