Update h265 with nvenc

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
main
Bensuperpc 8 months ago
parent 94c3fbfe0b
commit ec57a01da2
  1. 2
      Makefile
  2. 15
      video/h265-nvenc.sh

@ -47,7 +47,6 @@ dist: clean
mkdir -p package_build
rsync -azh --progress --exclude='package_build/' --exclude='*.gitignore' --exclude='*.git/' \
--exclude='*.circleci/' --exclude='*.github/' --exclude='*.png' --exclude='*.jpeg' --exclude='*.gif' . package_build/
#7z a -t7z $(PROJECT_NAME)-$(VERSION).7z package_build/ -m0=lzma2 -mx=9 -mfb=273 -ms -md=31 -myx=9 -mtm=- -mmt -mmtf -md=1536m -mmf=bt3 -mmc=10000 -mpb=0 -mlc=0
XZ_OPT=-e9 tar cJf $(PROJECT_NAME)-$(VERSION).tar.xz package_build/
sha384sum $(PROJECT_NAME)-$(VERSION).tar.xz > $(PROJECT_NAME)-$(VERSION).tar.xz.sha384
sha384sum --check $(PROJECT_NAME)-$(VERSION).tar.xz.sha384
@ -56,7 +55,6 @@ dist: clean
dist-full: clean
mkdir -p package_build
rsync -azh --progress --exclude='package_build/' . package_build/
#7z a $(PROJECT_NAME)-full-$(VERSION).7z package_build/ -m0=lzma2 -mx=9 -mmt -ms
XZ_OPT=-e9 tar cJf $(PROJECT_NAME)-full-$(VERSION).tar.xz package_build/
sha384sum $(PROJECT_NAME)-full-$(VERSION).tar.xz > $(PROJECT_NAME)-full-$(VERSION).tar.xz.sha384
sha384sum --check $(PROJECT_NAME)-full-$(VERSION).tar.xz.sha384

@ -21,12 +21,17 @@
#//////////////////////////////////////////////////////////////
if (( $# == 2 )); then
# Old CUDA version
#ffmpeg -threads 0 -strict 2 -hwaccel auto -i "$1" -c:v hevc_nvenc -preset slow -rc vbr_hq -cq 18 -qmin 16 -qmax 20 -profile:v main10 -b:v 0K -c:a copy -map 0 "$2"
#-threads 4 -hwaccel cuvid -c:v h264_cuvid
ffmpeg -strict 2 \
-i "$1" \
-c:v hevc_nvenc -gpu:v 0 \
-preset:v p7 -tune:v hq -rc:v vbr -cq:v 14 -b:v 0 -minrate:v 5M -maxrate:v 50M -bufsize:v 400M \
-c:v hevc_nvenc \
-gpu:v 0 \
-tier:v high \
-preset:v p7 \
-tune:v hq \
-rc:v vbr \
-cq:v 14 \
-b:v 0 -minrate:v 1M -maxrate:v 100M -bufsize:v 400M \
-bf:v 3 -b_ref_mode:v middle \
-c:a copy -map 0 "$2"
fi
#-filter:v hwupload_cuda,scale_npp=w=1920:h=1080:interp_algo=lanczos
Loading…
Cancel
Save