lib/viddl/video/clip/cut.rb
def args(options = {})
          args = []
          unless options[:start].nil?
            args << "-ss #{options[:start]}"
          end
          unless options[:duration].nil?
            args << "-t #{options[:duration]}"
          end
          args.join(" ") unless args.empty?
        end
# Command line options for the given cut constraints
# @param [Hash] options
# @option options [Numeric] :start Time in the source file where the clip starts
# @option options [Numeric] :duration Duration of the clip
# @return [String, nil]
Command line options for the given cut constraints
Command line options for the given cut constraints
def args(options = {})
          args = []
          unless options[:start].nil?
            args << "-ss #{options[:start]}"
          end
          unless options[:duration].nil?
            args << "-t #{options[:duration]}"
          end
          args.join(" ") unless args.empty?
        end
def args ( options = { } ) args = [ ] unless options [ :start ] . nil? args << "-ss #{options[:start]}" end unless options [ :duration ] . nil? args << "-t #{options[:duration]}" end args . join ( " " ) unless args . empty? end
Command line options for the given cut constraints
Command line options for the given cut constraints
None
String, nil
options
:duration Duration of the clip
: duration Duration of the clip
None