Module: VideoTranscoding::MPlayer

Extended by:
MPlayer
Included in:
MPlayer
Defined in:
lib/video_transcoding/mplayer.rb

Constant Summary collapse

COMMAND_NAME =
'mplayer'

Instance Method Summary collapse

Instance Method Details

#command_nameObject



24
25
26
# File 'lib/video_transcoding/mplayer.rb', line 24

def command_name
  Tool.use(COMMAND_NAME)
end

#setupObject



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