Class: VideoConverter::Mp4frag
Class Attribute Summary collapse
-
.bin ⇒ Object
Returns the value of attribute bin.
-
.command ⇒ Object
Returns the value of attribute command.
Class Method Summary collapse
Class Attribute Details
.bin ⇒ Object
Returns the value of attribute bin.
6 7 8 |
# File 'lib/video_converter/mp4frag.rb', line 6 def bin @bin end |
.command ⇒ Object
Returns the value of attribute command.
6 7 8 |
# File 'lib/video_converter/mp4frag.rb', line 6 def command @command end |
Class Method Details
.run(outputs) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/video_converter/mp4frag.rb', line 11 def self.run(outputs) success = true threads = [] command = Command.new(self.command, prepare_params(outputs)) if VideoConverter.paral threads << Thread.new { success &&= command.execute } else success &&= command.execute end threads.each { |t| t.join } if VideoConverter.paral success end |