Class: RTranscoder::MEncoder
- Inherits:
-
RProgram::Program
- Object
- RProgram::Program
- RTranscoder::MEncoder
- Defined in:
- lib/rtranscoder/mplayer/mencoder.rb
Class Method Summary collapse
-
.encode(options = {}, &block) ⇒ Object
See MEncoder#encode.
Instance Method Summary collapse
-
#encode(options = {}, &block) ⇒ Object
Runs the
mencoder
program with the given options and the given block with MEncoderTask. -
#initialize(path) ⇒ MEncoder
constructor
Creates a new MEncoder object with the specified path of the
mencoder
program.
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(={},&block) self.find.encode(,&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(={},&block) run_task(MEncoderTask.new(,&block)) end |