This script will check if the video file has a 4:3 aspect ratio (box) and if so, it will change it to 16:9 (wide).
Its intended purpose is for videos or libraries with old 4:3 aspect ratio content. Instead of manually changing the aspect ratio, it will stretch it to 16:9 aspect ratio automatically.
I like to keep my mpv configuration simple, that is why I created this script to match my simple usecase.
Simply place boxtowide.lua
in the corresponding mpv scripts location of your operating system:
- Windows:
%APPDATA%\mpv\scripts\
orC:\users\USERNAME\AppData\Roaming\mpv\scripts\
- Linux:
~/.config/mpv/scripts/
or/home/USERNAME/.config/mpv/scripts/
- Mac:
~/.config/mpv/scripts/
or/Users/USERNAME/.config/mpv/scripts/
Note
More information about files locations can be found here
config/mpv
│ input.conf
│ mpv.conf
│
└───scripts
boxtowide.lua
The script doesn't write or alter configuration files, so removing the boxtowide.lua
script from the mpv scripts folder is all that is needed to uninstall/disable.