Skip to content

Instantly share code, notes, and snippets.

@msg7086
Created July 19, 2020 04:22
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msg7086/4d4f9c7d86fa6d32cc096b4a5374d654 to your computer and use it in GitHub Desktop.
Save msg7086/4d4f9c7d86fa6d32cc096b4a5374d654 to your computer and use it in GitHub Desktop.
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