This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/ruby | |
| require 'directory_watcher' | |
| require 'ftools' | |
| FOLDER = './render-queue' | |
| #THREADS = 8 | |
| #BLENDER = '/usr/bin/blender' | |
| BLENDER = '/Applications/blender/blender.app/Contents/MacOS/blender' | |
| def randomFileName (numberOfRandomchars) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| # the source svg needs to have a 'plate' layer with all the crop | |
| # rects having a label with the output filename | |
| require "rexml/document" | |
| require "ftools" | |
| include REXML | |
| INKSCAPE = '/usr/bin/env inkscape' | |
| SRC = "#{Dir.pwd}/svg/gpm-batteries.svg" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require 'optparse' | |
| require 'ostruct' | |
| def ffmpegit(infile,outfile,twopass,title) | |
| title = title.nil? ? infile.gsub(/\.[^.]+$/,'').capitalize : title | |
| if twopass | |
| cmd = "ffmpeg -i #{infile} -y -an -pass 1 -vcodec libx264 -b 1024k -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -subq 1 -trellis 0 -refs 1 -bf 16 -b_strategy 1 -threads 2 -level 31 -coder 1 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 200k -rc_eq blurCplx^\\(1-qComp\\) -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 #{outfile}" |
NewerOlder