This is fantastic! Thank you for this! It’s the solution for my issue Fix for Plex HTPC stuttering / laggy playback issue on certain 4K content, please upstream - #24
@Mitzsch could be a good idea to link to this from Dolby TrueHD passthrough - modified mpv build
I think it should also be easy to modify this script to keep a copy of both the latest stock and mitzsch build locally so they can be toggled to fix Some "Movies & Shows On Plex" streaming videos will not playback - #8
I believe that with this script running at boot and on resume, and also killing and restarting Plex HTPC app on resume (Plex HTPC should automatically reconnect after resume from sleep / internet availability - #2 by dancb2) I should also avoid Playback Error [existsOrThrow] Value is undefined or null! - #25 by dancb2 and have a fully functioning Plex HTPC app waiting for use on screen at all times.
I just need to spend a little time and investigate Plex HTPC for Windows should add "comfort sound" to prevent sound delay on pause - #9 by dancb2 now