Skip to content

Display or Input Device Selection

Lakshya Kapoor edited this page Oct 16, 2019 · 1 revision

Linux and macOS users can optionally provide a display or input device number as input:

ScreenRecorder::Desktop.new(input: ':7', output: 'recording.mkv')

Defaults

Linux - :0

macOS - 1

Run command echo $DISPLAY on Linux and ffmpeg -f avfoundation -list_devices true -i "" on macOS to get a list of available inputs.

Clone this wiki locally