Sha256: 6cd089c3d25ceaa79450d624a601bb7ea9caf2b012e7fe0e8692659e98b3af70
Contents?: true
Size: 419 Bytes
Versions: 7
Compression:
Stored size: 419 Bytes
Contents
# frozen_string_literal: true module Lolcommits class CaptureLinuxVideo < Capturer 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 private def capture_device_string capture_device || Dir.glob('/dev/video*').first end end end
Version data entries
7 entries across 7 versions & 1 rubygems