lib/viddl/video/instance.rb
# Cut the video source using the given options
# @param [Hash] options
# @option options [Boolean] :audio Whether to include audio
# @option options [String] :flags Flags to pass to ffmpeg
# @option options [Numeric] :start Time in the source file where the clip starts
# @option options [Numeric] :duration Duration of the clip
# @option options [Numeric] :end Time in the source file where the clip ends
# @option options [Integer, String] :width The desired width to resize to
# @option options [Integer, String] :height The desired height to resize to
# @option options [Hash] :crop The desired crop parameters (:x, :y, :width, :height)
# @option options [Pathname, String] :output_path path where clip will be written. Can be directory or filename
# @return [Array<Clip>]
Cut the video source using the given options
Cut the video source using the given options
def create_clip(options = {})
        download_paths.map do |path|
          Clip.process(path, options)
        end
      end
def create_clip ( options = { } ) download_paths . map do | path | Clip . process ( path , options ) end end
Cut the video source using the given options
Cut the video source using the given options
None
Array<Clip>
options
:output_path path where clip will be written. Can be directory or filename
: output_path path where clip will be written . Can be directory or filename
None