From a2c20bb3d67e946f0dd6a34a079bb6c436884606 Mon Sep 17 00:00:00 2001 From: Ray Lyon <36998292+skoobasteeve@users.noreply.github.com> Date: Tue, 24 Nov 2020 23:08:11 -0500 Subject: [PATCH 1/3] Create README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..69b8aa0 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# Skoobasteeve's Useful Scripts +A collection of scripts that have helped me at home and in the office. From e6f4936468e6b0bf4579297ac46f9dc7bc087d56 Mon Sep 17 00:00:00 2001 From: Ray Lyon <36998292+skoobasteeve@users.noreply.github.com> Date: Tue, 24 Nov 2020 23:08:24 -0500 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 69b8aa0..69cb6d9 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -# Skoobasteeve's Useful Scripts +# Ray's Useful Scripts A collection of scripts that have helped me at home and in the office. From 2a398777065106353f785006168e251ecdca3bcf Mon Sep 17 00:00:00 2001 From: Ray Lyon Date: Wed, 25 Nov 2020 15:05:49 -0500 Subject: [PATCH 3/3] exclude directories from for loop --- ffmpeg/ffmpeg-batch-encode.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffmpeg/ffmpeg-batch-encode.sh b/ffmpeg/ffmpeg-batch-encode.sh index 1ef6776..951b804 100755 --- a/ffmpeg/ffmpeg-batch-encode.sh +++ b/ffmpeg/ffmpeg-batch-encode.sh @@ -33,7 +33,7 @@ if [ ! -d "$DIRECTORY/output" ]; then fi # Encode each file in the directory with different CRF setting based on resolution -for FILE in "$DIRECTORY"/*; do +for FILE in "$DIRECTORY"/*.*; do RES=$(ffprobe -v error -select_streams v:0 -show_entries stream=width -of default=noprint_wrappers=1:nokey=1 "$FILE") FILENAME=$(basename "$FILE") if [[ $RES -gt 1920 ]]; then