Improve video playback performance including YouTube (ytfzf)

Sure, but as someone running Qubes on a pretty new machine where videos will run under any template with a variety of players, it’s still nice to reduce CPU load from 50% in a VM with 8 cores to 10% when watching a full HD video, especially on laptops (battery life, fan noise, heat), but also on desktop computers I imagine since it means you have more resources for other computationally intensive stuff you may want to do while watching your vids and electricity is not as cheap as it used to be anyway (lower load should also reduce wear on some HW components).

@everyone:

I created a patched version of ytfzf that fixes the two issues I mention in my OP:
files.log (34.1 KB)

Note that this is a zip archive (I uploaded as *.log because of the upload restrictions…if that’s not ok then mods please advise how to handle it otherwise); the archive includes an updated script (from the one in the Bonus section of my OP) and ytfzf executable; copy the file to your dvm template’s home folder and run (type y if it asks you to replace existing files):

unzip files.log
rm files.log
chmod +x update-yt-dlp-and-ytfzf.sh ytfzf_fixed_copy
./update-yt-dlp-and-ytfzf.sh

The updated script will, after trying to update yt-dlp and ytfzf as the original script in the OP does, check the ytfzf version; if the version hasn’t changed from the current 2.6.1 then it will replace the existing executable with the patched one; the patched executable fixes the annoying misalignment bug and adds the feature to hide the info panel completely; for the latter to work you need to put preview_window_width=0% into ~/.config/ytfzf/conf.sh, which will enable the feature so that more of the screen real estate is used for the more useful and much denser info that is the title list.

1 Like