You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, to get thumbnails I use mpv_thumbnail_script, but I need this only for youtube and not for local files. Until now I loaded the script with profile-cond=demuxer_via_network and mp.command('load-script "C:/Program Files (x86)/MPV/gucio/mpv_thumbnail_script_server.lua"; load-script "C:/Program Files (x86)/MPV/gucio/mpv_thumbnail_script_client_osc.lua"')
but this method is causing the script not to work properly. So I would need a better way, something that would ignore the script from the script folder if not needed and something that would accept it when network is detected. So checking if the input file is local or network.
I have tried to put this at the start of the script
if not mp.get_property_native("is-network") then
return
end
this works with blocking it, but when there is network mpv doesn't start, it only shows a small png of the video and freezes
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, to get thumbnails I use mpv_thumbnail_script, but I need this only for youtube and not for local files. Until now I loaded the script with
profile-cond=demuxer_via_network and mp.command('load-script "C:/Program Files (x86)/MPV/gucio/mpv_thumbnail_script_server.lua"; load-script "C:/Program Files (x86)/MPV/gucio/mpv_thumbnail_script_client_osc.lua"')
but this method is causing the script not to work properly. So I would need a better way, something that would ignore the script from the script folder if not needed and something that would accept it when network is detected. So checking if the input file is local or network.
I have tried to put this at the start of the script
this works with blocking it, but when there is network mpv doesn't start, it only shows a small png of the video and freezes
Does someone know how to deal with this?
Thanks for any help :)
Beta Was this translation helpful? Give feedback.
All reactions