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
683 stars 68 forks source link

Thumbnails of a rotated video are not good #82

Open ghost opened 3 years ago

ghost commented 3 years ago

This is a 1920x1080 video, with a rotation flag of 90 degrees.

Look at the thumbnails

Untitled-1

mediainfo (see rotation flag)


Video
--
ID : | 1
Format : | AVC
Format/Info : | Advanced Video Codec
Format profile : | High@L4
Format settings : | CABAC / 1 Ref Frames
Format settings, CABAC : | Yes
Format settings, Reference frames : | 1 frame
Format settings, GOP : | M=1, N=30
Codec ID : | avc1
Codec ID/Info : | Advanced Video Coding
Duration : | 1 min 6 s
Bit rate : | 20.0 Mb/s
Width : | 1 920 pixels
Height : | 1 080 pixels
Display aspect ratio : | 16:9
Rotation : | 90°
Frame rate mode : | Variable
Frame rate : | 29.970 (29970/1000) FPS
Minimum frame rate : | 15.010 FPS
Maximum frame rate : | 30.467 FPS
Standard : | NTSC
Color space : | YUV
Chroma subsampling : | 4:2:0
Bit depth : | 8 bits
Scan type : | Progressive
Bits/(Pixel*Frame) : | 0.322
Stream size : | 159 MiB (98%)
Title : | VideoHandle
Language : | English
Encoded date : | UTC 2021-05-28 09:48:04
Tagged date : | UTC 2021-05-28 09:48:04
Color range : | Limited
colour_range_Original : | Full
Color primaries : | BT.709
colour_primaries_Original : | BT.601 NTSC
Transfer characteristics : | BT.709
transfer_characteristics_Original : | BT.601
Matrix coefficients : | BT.709
matrix_coefficients_Original : | BT.601
mdhd_Duration : | 66577
Codec configuration box : | avcC