Class: Lolcommits::CaptureLinuxVideo
- Defined in:
- lib/lolcommits/capturer/capture_linux_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
#capture ⇒ Object
5 6 7 |
# File 'lib/lolcommits/capturer/capture_linux_video.rb', line 5 def capture system_call "ffmpeg -nostats -v quiet -y -f video4linux2 -video_size 640x480 -i #{capture_device_string} -t #{capture_duration} -ss #{capture_delay || 0} \"#{capture_path}\" > /dev/null" end |