for f in dish.it.out.s01e*.mkv; do ffmpeg -i "$f" -c:v libx265 -crf 28 -c:a aac -b:a 128k "$f%.mkv.hevc.mp4" done

# Pass 1 ffmpeg -i dish.it.out.s01e01.mkv -c:v libx264 -b:v 1500k -pass 1 -f mp4 /dev/null ffmpeg -i dish.it.out.s01e01.mkv -c:v libx264 -b:v 1500k -pass 2 -c:a aac -b:a 128k dish.it.out.s01e01.2pass.mp4

Objective: Provide a set of ffmpeg commands to analyze, compress, convert, and optimize the video file for storage or playback. 1. Preliminary Analysis Before processing, inspect the source file.