From 8a9ea6efafc4b73ce9c655cfcc31ddf90fb63274 Mon Sep 17 00:00:00 2001 From: Jeremy Treis Date: Mon, 15 Jul 2019 13:13:08 -0700 Subject: [PATCH] Create OBSmcWAVextract.sh Converted the batch file to a linux executable --- OBSmcWAVextract.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 OBSmcWAVextract.sh diff --git a/OBSmcWAVextract.sh b/OBSmcWAVextract.sh new file mode 100644 index 0000000..3b64f4f --- /dev/null +++ b/OBSmcWAVextract.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +shopt -s nullglob +for file in *.{mp4,avi,mov,wmv,ts,m2ts,mkv,mts}; do + filename=$(basename -- "$file") + echo Processing "${filename%.*}" + ffmpeg -strict 2 -hwaccel auto -i "$file" -c:v libx265 -rc constqp -qp 24 -b:v 0K -c:a aac -map 0 "${filename%.*}_CRF24_HEVC.mp4" + echo Processed $file +done