Class: Mediakit::FFmpeg::Options::InputFileOption

Inherits:
OptionPathPair show all
Defined in:
lib/mediakit/ffmpeg/options.rb

Instance Attribute Summary

Attributes inherited from OptionPathPair

#options, #path

Instance Method Summary collapse

Methods inherited from OptionPathPair

#to_s

Constructor Details

#initialize(options:, path:) ⇒ InputFileOption

Returns a new instance of InputFileOption.

Parameters:

  • :options (Hash)

    input options

  • :path (String)

    input file path



130
131
132
133
# File 'lib/mediakit/ffmpeg/options.rb', line 130

def initialize(options:, path:)
  ordered_hash = OrderedHash.new(options)
  super(options: ordered_hash, path: path)
end

Instance Method Details

#composeObject



135
136
137
# File 'lib/mediakit/ffmpeg/options.rb', line 135

def compose
  "#{options} -i #{path}"
end