From f3945528a57ad82cbd5862be63b75e60f39d1b4f Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Thu, 13 Feb 2014 15:44:13 +0000 Subject: implementing scaled proxies --- rotord/make_proxies | 13 +++++++++++++ rotord/src/rotor.h | 1 + 2 files changed, 14 insertions(+) create mode 100755 rotord/make_proxies 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: "<value< defer if (attributes["filename"]->value!="") { isLoaded=load(media_path+attributes["filename"]->value); } -- cgit v1.2.3