Class: Lolcommits::CaptureWindowsVideo

Inherits:
Capturer
  • Object
show all
Defined in:
lib/lolcommits/capturer/capture_windows_video.rb

Instance Attribute Summary

Attributes inherited from Capturer

#capture_delay, #capture_device, #capture_duration, #capture_path

Instance Method Summary collapse

Methods inherited from Capturer

#debug, #initialize, #system_call

Constructor Details

This class inherits a constructor from Lolcommits::Capturer

Instance Method Details

#captureObject



5
6
7
8
9
# File 'lib/lolcommits/capturer/capture_windows_video.rb', line 5

def capture
  return unless capture_device_string

  system_call "ffmpeg -v quiet -y -f dshow -i video=\"#{capture_device_string}\" -video_size 640x480 -t #{capture_duration} \"#{capture_path}\" > NUL"
end