-
-
Save msg7086/4d4f9c7d86fa6d32cc096b4a5374d654 to your computer and use it in GitHub Desktop.
This file contains 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
require 'L:/code/autorake.rb' | |
eps = ENV['eps'] or exit 0 | |
name = "The Naked Director" | |
raw = "#{name} #{eps}.mp4" | |
qp = 21.7086 | |
qprx = qp + 4 | |
AutoRake.new do | |
s = source("#{eps}.mkv") | |
chap = s | process("#{eps}.chap") {|t| Rake.sh 'mkvextract', t.source, 'chapters', '-s', t.name} | |
audio = s | eac3to(2 => 'eac3') | muxer | export(:audio) | |
gop = s | avs('main.avs') | x265(direct: true, pool: 6, crf: qp, max_int: 360) | export(:gop) | |
video = gop | gop_muxer("upload/v-#{eps}.mp4") | export(:video) | |
video + audio + chap | remuxer(raw) | export(:raw) | |
s | dgi("#{eps}.dgi") | export(:pre) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment