library: seek to 10% before capturing video thumbnail
Videos that open on a black frame (fade-in, title card, codec warmup) produced black library thumbnails. mpv now starts at 10% with hr_seek so the first decoded frame is past the opening. mpv clamps `start` to valid range so very short clips still land on a real frame.
This commit is contained in:
parent
22f09c3cdb
commit
c3efcf9f89
@ -338,6 +338,13 @@ class LibraryView(QWidget):
|
||||
vo='null', ao='null', aid='no',
|
||||
pause=True, keep_open='yes',
|
||||
terminal=False, config=False,
|
||||
# Seek to 10% before first frame decode so a video that
|
||||
# opens on a black frame (fade-in, title card, codec
|
||||
# warmup) doesn't produce a black thumbnail. mpv clamps
|
||||
# `start` to valid range so very short clips still land
|
||||
# on a real frame.
|
||||
start='10%',
|
||||
hr_seek='yes',
|
||||
)
|
||||
try:
|
||||
@m.property_observer('video-params')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user