To encode a section of a movie file to a high-quality webm file, use this simple addon for mpv. Firstly run this command to create a directory to put the lua script. mkdir -p ~/.config/mpv/scriptsmkdir -p ~/.config/mpv/scripts Then download the required script to the directory we created. wget -O ~/.config/mpv/scripts/webm.lua https://raw.githubusercontent.com/ElegantMonkey/mpv-webm/master/build/webm.luawget -O ~/.config/mpv/scripts/webm.lua https://raw.githubusercontent.com/ElegantMonkey/mpv-webm/master/build/webm.lua Once …