lib/ffmpeg/recorder_options.rb
#
# Returns advanced options parsed and ready for ffmpeg to receive.
#
Returns advanced options parsed and ready for ffmpeg to receive.
Returns advanced options parsed and ready for ffmpeg to receive .
def advanced_options
      return nil unless @options[:advanced]
      raise(ArgumentError, ':advanced cannot be empty.') if @options[:advanced].empty?
      arr = []
      @options[:advanced].each do |k, v|
        arr.push "-#{k} #{v}"
      end
      arr.join(' ') + ' '
    end
def advanced_options return nil unless @options [ :advanced ] raise ( ArgumentError , ':advanced cannot be empty.' ) if @options [ :advanced ] . empty? arr = [ ] @options [ :advanced ] . each do | k , v | arr . push "-#{k} #{v}" end arr . join ( ' ' ) + ' ' end
Returns advanced options parsed and ready for ffmpeg to receive.
Returns advanced options parsed and ready for ffmpeg to receive .