From 2a9538f7711dcea71ba5702ca94a9d9c00287ea4 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sun, 16 Feb 2020 15:57:40 -0500 Subject: added the rest of bin --- bin/lux-video-compress.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 bin/lux-video-compress.sh (limited to 'bin/lux-video-compress.sh') diff --git a/bin/lux-video-compress.sh b/bin/lux-video-compress.sh new file mode 100755 index 0000000..0ff4d9d --- /dev/null +++ b/bin/lux-video-compress.sh @@ -0,0 +1,5 @@ +#!/bin/bash +BITRATE=$2 +FILE=$1 +ffmpeg -i $1 -codec:v libx264 -profile:v high -preset slower -b:v ${BITRATE:=2000}k -vf scale=-1:720 -threads 0 -codec:a aac -strict experimental "${FILE%%.*}"-web.mp4 +ffmpeg -i $1 -c:v libvpx -quality good -cpu-used 0 -b:v ${BITRATE:=2000}k -qmin 10 -qmax 42 -maxrate 500k -bufsize 1500k -threads 8 -vf scale=-1:720 -c:a libvorbis -b:a 192k -f webm "${FILE%%.*}"-web.webm -- cgit v1.2.3-70-g09d2