Module: VideoTranscoding::MPlayer
Constant Summary collapse
- COMMAND_NAME =
'mplayer'
Instance Method Summary collapse
Instance Method Details
#command_name ⇒ Object
24 25 26 |
# File 'lib/video_transcoding/mplayer.rb', line 24 def command_name Tool.use(COMMAND_NAME) end |
#setup ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/video_transcoding/mplayer.rb', line 13 def setup Tool.provide(COMMAND_NAME, ['-version']) do |output, _, _| unless output =~ /^MPlayer [^ ]+/ Console.debug output fail "#{COMMAND_NAME} version unknown" end Console.info "#{$MATCH} found..." end end |