mpv_thumbnail_script icon indicating copy to clipboard operation
mpv_thumbnail_script copied to clipboard

thumbnail size relative to window size

Open bricewge opened this issue 5 years ago • 1 comments
trafficstars

It would be great to be able to specify thumbnail_height and thumbnail_width as a relative value to the current window size.

ATM with the default settings, resizing a window to say 480p would generate thumbnails that take a lot of space, but then setting the same window in full screen on a 4k screen we would end up with tiny thumbnails. Setting thumbnails size to, for example 20% of the current window, we would have an appropriate sized thumbnail whatever the size of the window we watch the video in.

bricewge avatar Feb 29 '20 10:02 bricewge

This is not possible without expensive calls to rescale the thumbnails. mpv's overlay API uses direct RGBA files, and the only way to draw an overlay bigger or smaller is to provide more or less pixels. Window size is much too dynamic to base thumbnail generation on it, imo. Maybe the infamous future rewrite could handle a command to explicitly start thumbnail generation at a specific size, reusing existing thumbnails if they exist, but to me this doesn't feel much of a priority. Would be better to simply scale the overlays in some sane manner, or maybe saving two variations for smaller and bigger OSDs.

TheAMM avatar Feb 29 '20 14:02 TheAMM