#!/bin/bash
set -e
A=$1
HandBrakeCLI -i "$A" -o "${A%.???}".mkv -e x264 -q 22 -B 160
if [ "$ENCODE_VID_RM" = 1 ]; then
	rm "$A"
fi
