aboutsummaryrefslogtreecommitdiff
path: root/bin/transcode
diff options
context:
space:
mode:
Diffstat (limited to 'bin/transcode')
-rwxr-xr-xbin/transcode9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/transcode b/bin/transcode
new file mode 100755
index 0000000..094c36e
--- /dev/null
+++ b/bin/transcode
@@ -0,0 +1,9 @@
+#!/bin/env bash
+
+# Este script faz a transcodagem de um vídeo de um codec para outro, feito para reduzir em até 80% o tamanho do arquivo original.
+
+ORIG="$1"
+NOME=$(basename "$ORIG" .mp4)
+NOVO="${2:-"$NOME-trans.mp4"}"
+
+ffmpeg -i "$ORIG" -vf mpdecimate -vsync vfr -c:v libx265 -x265-params crf=32 -preset veryslow "$NOVO"