# Loop through all .mkv files in the input directory for file in "$INPUT_DIR"/*.mkv; do # Get the filename without extension filename=$(basename -- "$file") filename="$filename%.mkv")
ffmpeg -i "Young_Sheldon_S05E11.mp4" -c:v libx265 -crf 23 -c:a aac "S05E11_hevc.mp4" young sheldon s05e11 ffmpeg