Below is for common tasks on that episode file. 1. Basic Information (Inspect the file) ffmpeg -i "Young.Sheldon.S07E04.1080p.mkv" 2. Compress / Re-encode to H.264 (smaller size) ffmpeg -i "Young.Sheldon.S07E04.mkv" \ -c:v libx264 -crf 23 -preset medium \ -c:a aac -b:a 128k \ "Young.Sheldon.S07E04_compressed.mp4" 3. Remove Black Bars (Crop detection) First detect crop:
ffmpeg -i "Young.Sheldon.S07E04.mkv" -t 30 -vf cropdetect -f null - 2>&1 | grep crop Then apply (example crop=1920:800:0:140):
ffprobe -v quiet -print_format json -show_streams "Young.Sheldon.S07E04.mkv" | grep title