#!/bin/sh

# Resolution of your X session
# which you wish to record
#
# Default is your first monitor's resolution
export RESOLUTION="$(xdpyinfo | grep dimensions | awk 'NR==1{print $2}')"

# If you want to use CPU-based encoding instead
# of GPU-based encoding, set to true.
#
# Overrides ENCODER_STANDARD
export SOFTWARE_ENCODE="false"

# If you have an AMD GPU and desire
# to use AMF/VCE instead of VAAPI,
# then set this to true.
#
# XXX: Requires AMF to be set up:
# More details at: https://github.com/durcor/amdgpu-pro-amf-only
export NONFREE_AMD_ENCODER="false"

# Video Framerate
export FPS="60" 

# Common encoders are:
# h264
# hevc
# h265
export ENCODER_STANDARD=h264

# Size of replay buffer to save
# Is in minutes
# Can be numbers such as 10 (10 minutes) or 2.5 (2 minutes and 30 seconds) 
export REPLAY_BUFFER="5"

# Location to save recordings
#
# By default, saves to the default VIDEOS directory
export VIDEO_FOLDER="$(xdg-user-dir VIDEOS)"
