summaryrefslogtreecommitdiff
path: root/rotord/make_proxies
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/make_proxies')
-rwxr-xr-xrotord/make_proxies13
1 files changed, 13 insertions, 0 deletions
diff --git a/rotord/make_proxies b/rotord/make_proxies
new file mode 100755
index 0000000..d9a4cce
--- /dev/null
+++ b/rotord/make_proxies
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+for source in $*;
+do
+ path=${source%/*}
+ file=${source##*/}
+ suffix=${file##*.}
+ stub=${file%.*}
+ mkdir "$path/$stub";
+ ffmpeg -i "$source" -s 1280x720 "$path/$stub/720.$suffix";
+ ffmpeg -i "$source" -s 640x360 "$path/$stub/360.$suffix";
+ ffmpeg -i "$source" -s 320x180 "$path/$stub/180.$suffix";
+done \ No newline at end of file