Sha256: b3b8719f33ebe8b290bdea5e43dc2b80c6d90704d06f26f2beef8fdea0555301
Contents?: true
Size: 739 Bytes
Versions: 1
Compression:
Stored size: 739 Bytes
Contents
module Ffmprb class Process class Input # TODO? speed-up/slow-down def pace(ratio) Paced.new self, pace: ratio end class Paced < ChainBase attr_reader :ratio def initialize(unfiltered, pace:) super unfiltered @ratio = pace end def filters_for(lbl, video:, audio:) # Pacing lbl_aux = "pc#{lbl}" super(lbl_aux, video: video, audio: audio) + [ *((video && channel?(:video))? Filter.setpts(@ratio, "#{lbl_aux}:v", "#{lbl}:v"): nil), *((audio && channel?(:audio))? Filter.atempo(@ratio, "#{lbl_aux}:a", "#{lbl}:a"): nil) ] end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffmprb-0.12.1 | lib/ffmprb/process/input/paced.rb |