diff --git a/shell/bash/avt/README.md b/shell/bash/avt/README.md index 6beb37a..5d6a849 100644 --- a/shell/bash/avt/README.md +++ b/shell/bash/avt/README.md @@ -16,12 +16,14 @@ 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_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: 96000) rec_normalize: immediately start nvid after recording ends [set to enable] + ./avt nvid / normalize Normalize and compress video & audio Usage: ./avt nvid [outfile] @@ -32,7 +34,7 @@ nvid_rgb: use libx264rgb [set to enable] nvid_pixfmt: set pixel format (default: yuv420p) nvid_profile: set profile (default: high) - nvid_ac: set audio codec (default: aac) + nvid_ac: set audio codec (default: libopus) nvid_ba: set audio bitrate (default: 160k) nvid_ar: set audio samplerate (default: 48000) diff --git a/shell/bash/avt/avt b/shell/bash/avt/avt index 2cee628..8c2b347 100755 --- a/shell/bash/avt/avt +++ b/shell/bash/avt/avt @@ -21,7 +21,6 @@ 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_preset: set preset (default: ultrafast) rec_vrate: replace -crf options rec_crf: set crf, use 0 for lossless (default: 10) @@ -83,7 +82,7 @@ foreach (@sinks) { $pulse_inputs \ -filter_complex "$audio_filter" \ -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 \ + -c:v libx264rgb ${avt_cl+-x264opts opencl} -profile:v high444 -preset "${rec_preset:-ultrafast}" ${rec_vrate:--crf "${rec_crf:-10}"} -tune zerolatency -r ${rec_fps:-60} \ -map 0:v $audio_maps -map '[merged]:a' \ "$OUTPUTFILE"