class MovieMasher::FilterSourceRaw

base raw source

Attributes

input_index[RW]

Public Class Methods

new(input, job_input) click to toggle source
Calls superclass method MovieMasher::FilterSource::new
# File lib/graphs/filters.rb, line 287
def initialize(input, job_input)
  @input = input
  @job_input = job_input
  # filename: @input[:cached_file]
  super('movie', {}, @input[:dimensions])
end

Public Instance Methods

filter_command(*) click to toggle source
# File lib/graphs/filters.rb, line 294
def filter_command(*)
  Filter.__outsize['w'], Filter.__outsize['h'] = @dimensions.split('x')
  index = FilterSourceRaw.input_index
  FilterSourceRaw.input_index += 1
  "[#{index}:v]"
end
filter_name() click to toggle source
# File lib/graphs/filters.rb, line 283
def filter_name
  "#{super} #{File.basename(@hash[:filename])}"
end