summaryrefslogtreecommitdiff
path: root/rotord
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2014-02-13 15:44:13 +0000
committerTim Redfern <tim@eclectronics.org>2014-02-13 15:44:13 +0000
commitf3945528a57ad82cbd5862be63b75e60f39d1b4f (patch)
tree9d2333989543f9aa438446e99c1c00f611bec908 /rotord
parent7239781ec914c7ba06b6adb69131bfea8f48888a (diff)
implementing scaled proxies
Diffstat (limited to 'rotord')
-rwxr-xr-xrotord/make_proxies13
-rw-r--r--rotord/src/rotor.h1
2 files changed, 14 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
diff --git a/rotord/src/rotor.h b/rotord/src/rotor.h
index b2892de..b20b987 100644
--- a/rotord/src/rotor.h
+++ b/rotord/src/rotor.h
@@ -898,6 +898,7 @@ namespace Rotor {
base_settings(settings);
media_path=find_setting(settings,"media_path","");
//for (auto a:attributes) cerr<<"Video loader: "<<a.first<<" set to "<<a.second->value<<endl;
+ //in order to implement prescaled clips, need to know size when loading-> defer
if (attributes["filename"]->value!="") {
isLoaded=load(media_path+attributes["filename"]->value);
}