Assuming you have an episode file titled the_first_lady_s01e06.mp4 , here are some things you could do:
To save storage space while maintaining 4K or 1080p Blu-ray quality, transcode the video to H.265. A Constant Rate Factor (CRF) of 20 balances perfect visual transparency with excellent file size reduction.
set -euo pipefail INFILE="$1" BASENAME=$(basename "$INFILE" .mkv)