dotfiles/.bin/OLD/encode

12 lines
286 B
Bash
Executable File

#!/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"