From 8778ce5615c019f2ee9b6f23dc02b3bc05b1bad7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ali=20Furkan=20Y=C4=B1ld=C4=B1z?= Date: Wed, 11 Jan 2023 21:24:16 +0300 Subject: [PATCH] drop default ar to 96000 for rec --- shell/bash/avt/README.md | 2 +- shell/bash/avt/avt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/shell/bash/avt/README.md b/shell/bash/avt/README.md index 320f165..6beb37a 100644 --- a/shell/bash/avt/README.md +++ b/shell/bash/avt/README.md @@ -19,7 +19,7 @@ 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) + rec_ar: set audio samplerate (default: 96000) rec_normalize: immediately start nvid after recording ends [set to enable] ./avt nvid / normalize diff --git a/shell/bash/avt/avt b/shell/bash/avt/avt index 372123d..2cee628 100755 --- a/shell/bash/avt/avt +++ b/shell/bash/avt/avt @@ -26,7 +26,7 @@ rec_preset: set preset (default: ultrafast) rec_vrate: replace -crf options 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) +rec_ar: set audio samplerate (default: 96000) rec_normalize: immediately start nvid after recording ends [set to enable] $0 nvid / normalize @@ -82,7 +82,7 @@ foreach (@sinks) { -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}" \ + -c:a pcm_s16le -ar "${rec_ar:-96000}" \ -c:v libx264rgb ${avt_cl+-x264opts opencl} -profile:v high444 -preset "${rec_preset:-ultrafast}" ${rec_vrate:--crf "${rec_crf:-10}"} -tune zerolatency -r 60 \ -map 0:v $audio_maps -map '[merged]:a' \ "$OUTPUTFILE"