#!/bin/sh
ffmpeg -y  -i "$1" \
           -c:v libx264 \
           -c:a aac \
           -crf 21 \
           -s 1920x1080 \
           -preset fast \
           -movflags faststart \
           -threads 0 \
           "${1%%.*}-enc.mp4" \
           && readlink -f "${1%%.*}-enc.mp4"
