Method: Kithe::FfprobeCharacterization#initialize

Defined in:
app/characterization/kithe/ffprobe_characterization.rb

#initialize(input) ⇒ FfprobeCharacterization

Returns a new instance of FfprobeCharacterization.

Parameters:

  • input (String, File)

    local File OR local filepath as String, OR remote URL as string If you have a remote url, just passing hte remote url is way more performant than downloading it yourself locally – ffprobe will just fetch the bytes it needs.



41
42
43
44
45
46
# File 'app/characterization/kithe/ffprobe_characterization.rb', line 41

def initialize(input)
  if input.respond_to?(:path)
    input = input.path
  end
  @input_arg = input
end