dotfiles/.bin/OLD/encode

12 lines
286 B
Plaintext
Raw Normal View History

2023-02-22 08:31:38 +01:00
#!/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"