TheAMM / mpv_thumbnail_script

A Lua script to show preview thumbnails in mpv's OSC seekbar, sans external dependencies
GNU General Public License v3.0
679 stars 68 forks source link

Thumbnails generated with wrong aspect ratio #41

Open YorikSar opened 5 years ago

YorikSar commented 5 years ago

I have a mkv video for which mkvinfo reports:

|  + Video track
|   + Pixel width: 576
|   + Pixel height: 568
|   + Display width: 1010
|   + Display height: 568

And mpv reports:

 (+) Video --vid=1 (*) (h264 576x568 25.000fps)

So basically it has different pixel and display width. It looks like script ends up relying on pixel width (with almost 1:1 ratio) rather than display width (with 16:9 ratio).

I did some debugging and it seems that in video-dec-params dw=w=576 while in video-params dw=1010. Maybe script shold use video-params? I'm using hwdec=vaapi, maybe that's what makes it different.