Module: Vidibus::Fileinfo::Processor::Audio

Defined in:
lib/vidibus/fileinfo/processor/audio.rb

Constant Summary collapse

FORMATS =
%w[
  mp3
]
METADATA =
%w[
  codec sample_rate content_type bit_rate duration
]

Instance Method Summary collapse

Instance Method Details

#cmdObject

FFmpeg command



13
14
15
# File 'lib/vidibus/fileinfo/processor/audio.rb', line 13

def cmd
  %Q(ffmpeg -i "#{@path}")
end

#outputObject



17
18
19
# File 'lib/vidibus/fileinfo/processor/audio.rb', line 17

def output
  'stderr'
end

#validateObject



21
22
23
# File 'lib/vidibus/fileinfo/processor/audio.rb', line 21

def validate
  %w[duration]
end