From af84a7d8e1a15140686b5ea18e7e6b3f6e4f116a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ali=20Furkan=20Y=C4=B1ld=C4=B1z?= Date: Wed, 11 Jan 2023 21:20:53 +0300 Subject: [PATCH] switch to libopus for nvid --- 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 0ae6522..320f165 100644 --- a/shell/bash/avt/README.md +++ b/shell/bash/avt/README.md @@ -28,7 +28,7 @@ Environment variables: nvid_preset: set preset (default: veryslow) nvid_vrate: replace -crf options - nvid_crf: set crf value (default: 21) + nvid_crf: set crf value (default: 19) nvid_rgb: use libx264rgb [set to enable] nvid_pixfmt: set pixel format (default: yuv420p) nvid_profile: set profile (default: high) diff --git a/shell/bash/avt/avt b/shell/bash/avt/avt index 48131d6..372123d 100755 --- a/shell/bash/avt/avt +++ b/shell/bash/avt/avt @@ -39,7 +39,7 @@ nvid_crf: set crf value (default: 19) 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) EOF @@ -106,7 +106,7 @@ normalize() { ${nvid_cl+-init_hw_device opencl=ocl -filter_hw_device ocl} \ -c:v libx264${nvid_rgb+rgb} ${avt_cl+-x264opts opencl} -preset "${nvid_preset:-veryslow}" ${nvid_vrate:--crf "${nvid_crf:-19}"} \ -pix_fmt "${nvid_pixfmt:-yuv420p}" -profile:v "${nvid_profile:-high}" \ - -c:a "${nvid_ac:-aac}" -b:a "${nvid_ba:-160k}" -ar "${nvid_ar:-48000}" \ + -c:a "${nvid_ac:-libopus}" -b:a "${nvid_ba:-160k}" -ar "${nvid_ar:-48000}" \ -map 0 \ "$OUTPUTFILE" return $?