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
-
#cmd ⇒ Object
FFmpeg command.
- #output ⇒ Object
- #validate ⇒ Object
Instance Method Details
#cmd ⇒ Object
FFmpeg command
13 14 15 |
# File 'lib/vidibus/fileinfo/processor/audio.rb', line 13 def cmd %Q(ffmpeg -i "#{@path}") end |
#output ⇒ Object
17 18 19 |
# File 'lib/vidibus/fileinfo/processor/audio.rb', line 17 def output 'stderr' end |
#validate ⇒ Object
21 22 23 |
# File 'lib/vidibus/fileinfo/processor/audio.rb', line 21 def validate %w[duration] end |