lib/ffmpeg/recorder_options.rb
def determine_input
      # x11grab doesn't support window capture
      if OS.linux?
        return ':0.0' if @options[:input] == 'desktop'

        return @options[:input] # User given display number
      end

      return @options[:input] if @options[:input] == 'desktop'

      # Windows only
      %("title=#{@options[:input]}")
    end
#
# Returns final input parameter.
# Adds title= qualifier to input parameter
# unless the user is recording the desktop.
#
Returns final input parameter.
Adds title= qualifier to input parameter
unless the user is recording the desktop.
Returns final input parameter . Adds title = qualifier to input parameter unless the user is recording the desktop .
def determine_input
      if OS.linux?
        return ':0.0' if @options[:input] == 'desktop'
        return @options[:input] 
      end
      return @options[:input] if @options[:input] == 'desktop'
      %("title=#{@options[:input]}")
    end
def determine_input if OS . linux? return ':0.0' if @options [ :input ] == 'desktop' return @options [ :input ] end return @options [ :input ] if @options [ :input ] == 'desktop' %("title=#{@options[:input]}") end
Returns final input parameter.
Returns final input parameter .
# x11grab doesn't support window capture # User given display number # Windows only