lib/screen-recorder/screenshot.rb
#
# Parameters to capture a single frame
#
Parameters to capture a single frame
Parameters to capture a single frame
def screenshot_cmd(filename:, resolution: nil)
      resolution = resolution ? resolution_arg(resolution) : nil
      "#{ffmpeg_bin} -f #{options.capture_device} -i #{options.input} -framerate 1 -frames:v 1 #{resolution}#{filename}"
    end
def screenshot_cmd ( filename : , resolution : nil ) resolution = resolution ? resolution_arg ( resolution ) : nil "#{ffmpeg_bin} -f #{options.capture_device} -i #{options.input} -framerate 1 -frames:v 1 #{resolution}#{filename}" end
Parameters to capture a single frame
Parameters to capture a single frame
# -f overwrites existing file
filename
<not_specific>
resolution
<not_specific>