Skip to content

Ancient mpv support - #98

Draft
po5 wants to merge 2 commits into
masterfrom
ancient
Draft

Ancient mpv support#98
po5 wants to merge 2 commits into
masterfrom
ancient

Conversation

@po5

@po5 po5 commented Jun 18, 2023

Copy link
Copy Markdown
Owner

An attempt at making thumbfast work on really old mpv versions.
Backported vanilla OSC as well. not everything is implemented as a nice
fallback, some newer features are just stripped out for the time being.
I am currently using 0.14 in a Linux VM.

What works: initializing the script, thumbnail placeholders, launching
slave process without errors
What's broken: generating thumbnail files (they only get written when
the slave process is exited), osc: title bar, osc: warnings for some keybinds

Features to emulate or guard, with what version they become available:
ytdl: 0.7
input-ipc-server: 0.17
mp.get_osd_size: 0.17
(for osc) nil key in mp.add_key_binding: 0.17
timer:is_enabled: 0.18
load-script command: 0.21
mp.register_idle: 0.21
utils.subprocess_detached: 0.21
async command flag: 0.25
(for osc) expand-text: 0.25
(for osc) shortened mouse button names: 0.27
(for osc) mp.msg.trace: 0.28
utils.file_info: 0.28
load-stats-overlay: 0.28
utils.getpid: 0.29
load-osd-console: 0.31, oops! did 41c74d0 break 0.29 compat?
load-auto-profiles: 0.33, oops! did 41c74d0 break 0.29 compat?
scale and pad vf without explicit lavfi: ????

Looking at this list, 0.28 support is trivial, 0.27 may introduce issues
with our own file_info but should be fine+annoying keybind name changes
needed in osc.lua, then 0.21 should be trivial, anything older requires
us to find a solution for handling a detached mpv process ourselves

po5 added 2 commits June 18, 2023 03:59
an attempt at making thumbfast work on really old mpv versions.
backported vanilla osc as well. not everything is implemented as a nice
fallback, some newer features are just stripped out for the time being.
I am currently using 0.14 in a linux vm.
what works: initializing the script, thumbnail placeholders, launching
slave process without errors
what's broken: generating thumbnail files (they only get written when
the slave process is exited), osc: title bar, osc: warnings for some
keybinds

features to emulate or guard, with what version they become available:
ytdl: 0.7
input-ipc-server: 0.17
mp.get_osd_size: 0.17
(for osc) nil key in mp.add_key_binding: 0.17
timer:is_enabled: 0.18
mp.register_idle: 0.21
utils.subprocess_detached: 0.21
async command flag: 0.25
(for osc) expand-text: 0.25
(for osc) shortened mouse button names: 0.27
(for osc) mp.msg.trace: 0.28
utils.file_info: 0.28
load-stats-overlay: 0.28
utils.getpid: 0.29
load-osd-console: 0.31, oops! did 41c74d0 break 0.29 compat?
load-auto-profiles: 0.33, oops! did 41c74d0 break 0.29 compat?
scale and pad vf without explicit lavfi: ????

looking at this list, 0.28 support is trivial, 0.27 may introduce issues
with our own file_info but should be fine+annoying keybind name changes
needed in osc.lua, then 0.21 should be trivial, anything older requires
us to find a solution for handling a detached mpv process ourselves
@po5

po5 commented Jun 20, 2023

Copy link
Copy Markdown
Owner Author

Random isn't being seeded properly for unique.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant