Class: RTranscoder::MEncoder

Inherits:
RProgram::Program
  • Object
show all
Defined in:
lib/rtranscoder/mplayer/mencoder.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ MEncoder

Creates a new MEncoder object with the specified path of the mencoder program.



15
16
17
# File 'lib/rtranscoder/mplayer/mencoder.rb', line 15

def initialize(path)
  super(path)
end

Class Method Details

.encode(options = {}, &block) ⇒ Object

See MEncoder#encode.



22
23
24
# File 'lib/rtranscoder/mplayer/mencoder.rb', line 22

def self.encode(options={},&block)
  self.find.encode(options,&block)
end

Instance Method Details

#encode(options = {}, &block) ⇒ Object

Runs the mencoder program with the given options and the given block with MEncoderTask.



30
31
32
# File 'lib/rtranscoder/mplayer/mencoder.rb', line 30

def encode(options={},&block)
  run_task(MEncoderTask.new(options,&block))
end