Module: Vidibus::Fileinfo::Processor::Video

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

Constant Summary collapse

FORMATS =
%w[
  3g2 3gp asf avi dv f4p f4v flv ivf m21 mj2 mjpg mkv mov mp4 mpeg mpg
  mts mxf ogg ogv rm ts webm wmv
]
METADATA =
%w[
  aspect_ratio audio_codec audio_sample_rate content_type bit_rate
  duration frame_rate height size video_codec width
]

Instance Method Summary collapse

Instance Method Details

#cmdObject

FFmpeg command



15
16
17
# File 'lib/vidibus/fileinfo/processor/video.rb', line 15

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

#outputObject



19
20
21
# File 'lib/vidibus/fileinfo/processor/video.rb', line 19

def output
  "stderr"
end

#validateObject



23
24
25
# File 'lib/vidibus/fileinfo/processor/video.rb', line 23

def validate
  %w[duration height width]
end