add support for changing display
This commit is contained in:
parent
0d28dd96b4
commit
013bd0d82b
2 changed files with 4 additions and 2 deletions
|
@ -13,8 +13,10 @@
|
||||||
Record screen and audio in very high quality
|
Record screen and audio in very high quality
|
||||||
Usage: ./avt rec [output directory]
|
Usage: ./avt rec [output directory]
|
||||||
Enviroment variables:
|
Enviroment variables:
|
||||||
|
rec_out: set output file (default: $HOME/Desktop/$(date +%F_%H-%M-%S).mkv)
|
||||||
rec_fps: set framerate (default: 60)
|
rec_fps: set framerate (default: 60)
|
||||||
rec_res: set resolution (default: 1920x1080)
|
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_crf: set crf, use 0 for lossless (default: 6)
|
||||||
rec_adev: set pulseaudio source devices (default: default and first running monitor) [array]
|
rec_adev: set pulseaudio source devices (default: default and first running monitor) [array]
|
||||||
rec_ar: set audio samplerate (default: 192000)
|
rec_ar: set audio samplerate (default: 192000)
|
||||||
|
@ -33,4 +35,3 @@
|
||||||
nvid_ac: set audio codec (default: aac)
|
nvid_ac: set audio codec (default: aac)
|
||||||
nvid_ba: set audio bitrate (default: 160k)
|
nvid_ba: set audio bitrate (default: 160k)
|
||||||
nvid_ar: set audio samplerate (default: 48000)
|
nvid_ar: set audio samplerate (default: 48000)
|
||||||
|
|
|
@ -21,6 +21,7 @@ Enviroment variables:
|
||||||
rec_out: set output file (default: $HOME/Desktop/$(date +%F_%H-%M-%S).mkv)
|
rec_out: set output file (default: $HOME/Desktop/$(date +%F_%H-%M-%S).mkv)
|
||||||
rec_fps: set framerate (default: 60)
|
rec_fps: set framerate (default: 60)
|
||||||
rec_res: set resolution (default: 1920x1080)
|
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_crf: set crf, use 0 for lossless (default: 10)
|
||||||
rec_adev: space separated pulseaudio source devices (default: default and first running monitor)
|
rec_adev: space separated pulseaudio source devices (default: default and first running monitor)
|
||||||
rec_ar: set audio samplerate (default: 192000)
|
rec_ar: set audio samplerate (default: 192000)
|
||||||
|
@ -76,7 +77,7 @@ foreach (@sinks) {
|
||||||
|
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
ffmpeg -y -thread_queue_size 64 \
|
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 \
|
$pulse_inputs \
|
||||||
-filter_complex "$audio_filter" \
|
-filter_complex "$audio_filter" \
|
||||||
-c:a pcm_s16le -ar "${rec_ar:-192000}" \
|
-c:a pcm_s16le -ar "${rec_ar:-192000}" \
|
||||||
|
|
Loading…
Reference in a new issue