diff options
| -rwxr-xr-x | rotord/make_proxies | 13 | ||||
| -rw-r--r-- | rotord/src/rotor.h | 1 |
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); } |
