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 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 rotord/make_proxies (limited to '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 -- cgit v1.2.3