diff --git a/shell/bash/avt/README.md b/shell/bash/avt/README.md index c8bd406..a37c068 100644 --- a/shell/bash/avt/README.md +++ b/shell/bash/avt/README.md @@ -13,8 +13,10 @@ Record screen and audio in very high quality Usage: ./avt rec [output directory] Enviroment variables: + rec_out: set output file (default: $HOME/Desktop/$(date +%F_%H-%M-%S).mkv) rec_fps: set framerate (default: 60) rec_res: set resolution (default: 1920x1080) + rec_display: choose the display to record (default: $DISPLAY) rec_crf: set crf, use 0 for lossless (default: 6) rec_adev: set pulseaudio source devices (default: default and first running monitor) [array] rec_ar: set audio samplerate (default: 192000) @@ -33,4 +35,3 @@ nvid_ac: set audio codec (default: aac) nvid_ba: set audio bitrate (default: 160k) nvid_ar: set audio samplerate (default: 48000) - \ No newline at end of file diff --git a/shell/bash/avt/avt b/shell/bash/avt/avt index 060096f..2f8851e 100755 --- a/shell/bash/avt/avt +++ b/shell/bash/avt/avt @@ -21,6 +21,7 @@ Enviroment variables: rec_out: set output file (default: $HOME/Desktop/$(date +%F_%H-%M-%S).mkv) rec_fps: set framerate (default: 60) rec_res: set resolution (default: 1920x1080) +rec_out: set output file (default: $HOME/Desktop/$(date +%F_%H-%M-%S).mkv) rec_crf: set crf, use 0 for lossless (default: 10) rec_adev: space separated pulseaudio source devices (default: default and first running monitor) rec_ar: set audio samplerate (default: 192000) @@ -76,7 +77,7 @@ foreach (@sinks) { # shellcheck disable=SC2086 ffmpeg -y -thread_queue_size 64 \ - -f x11grab -r "${rec_fps:-60}" -s "${rec_res:-1920x1080}" -i :0 \ + -f x11grab -r "${rec_fps:-60}" -s "${rec_res:-1920x1080}" -i "${rec_display:-$DISPLAY}" \ $pulse_inputs \ -filter_complex "$audio_filter" \ -c:a pcm_s16le -ar "${rec_ar:-192000}" \