Server Version#: 1.25.3.5385
Player Version#: N\A
Can’t properly generate a thumbnail from Plex Media Scanner manually because the --thumbnailOffset flag has a math error in its logic where it always divides valid values by 100.
Default\Help output for reference:
--thumbOffset <percent> Percent offset into video for thumbnail image generated during media analysis.
Examples:
"Plex Media Scanner.exe" -a -x --thumbOffset "23" -o 530681 - Tried both integer and floats, with and without the percent sign, results were the same.
Generates the thumbnail from 0.2% of the video timeline instead of the instructed 23%, as seen by this line of the Log output:
Jan 16, 2022 23:56:44.680 [5876] DEBUG - Creating G:\Plex\Data\Plex Media Server\Media\localhost\2\bb28f925ace6f083e4447333eef89fd03858fc1.bundle\Contents\Thumbnails\thumb1.jpg (0.2%, 720x512).
Now, if that’s the case then all you gotta do is multiply the intended position by 100 and you’re good to go right? Not quite, there’s also a built-in logic that defaults the position to 50% for values higher than 100%:
Plex Media Scanner.exe" -a -x --thumbOffset "2300" -o 530681
Jan 16, 2022 23:58:33.540 [5876] DEBUG - Creating G:\Plex\Data\Plex Media Server\Media\localhost\2\bb28f925ace6f083e4447333eef89fd03858fc1.bundle\Contents\Thumbnails\thumb1.jpg (50.0%, 720x512).
The logic test is reasonable, wouldn’t want an exception trying to seek past the duration so fallback to the 50% instead, but the added operation makes it impossible to generate thumbnails past 1% of the video.
If I may be so bold as to request a change besides the bugfix: allow it to receive value in seconds in addition to the less precise percent:
- Integer values optionally(?) suffixed with
s= seconds - Floats optionally suffixed with
%= percent (already implemented)