Linuxを使用して、簡単に動画ファイルを圧縮してみます。
検証した環境
$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
$ uname -r
5.15.0-91-generic
ffmpegをインストール
$ sudo apt install ffmpeg
ffmpegを使って圧縮
$ ffmpeg -loglevel warning -i Input_video.mp4 Output_video.mp4
$ ls -l *video.mp4
-rw-rw-r-- 1 takashi takashi 32416768 Jan 21 20:47 Input_video.mp4
-rw-rw-r-- 1 takashi takashi 6404305 Jan 21 20:59 Output_video.mp4