HandBrake is an excellent free tool for modifying local videos, offering numerous adjustments and presets for various devices, while supporting up to 4K resolution.
HandBrake can convert any video format, works on all platforms.