From 15997dc793c4ff51d69afa70be1af2c00007656c Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Tue, 29 Nov 2022 14:03:37 -0800 Subject: [PATCH] Add GPU transcoding for NVIDIA (fix #194) --- lib/Controller/VideoController.php | 6 ++++++ scripts/get-exiftool.sh | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/Controller/VideoController.php b/lib/Controller/VideoController.php index 7fd8fabd..fd666eb4 100644 --- a/lib/Controller/VideoController.php +++ b/lib/Controller/VideoController.php @@ -108,6 +108,12 @@ class VideoController extends ApiBase $env .= 'VAAPI=1 '; } + // NVENC + $nvenc = $this->config->getSystemValue('memories.nvenc', false); + if ($nvenc) { + $env .= 'NVENC=1 '; + } + // Paths $ffmpegPath = $this->config->getSystemValue('memories.ffmpeg_path', 'ffmpeg'); $ffprobePath = $this->config->getSystemValue('memories.ffprobe_path', 'ffprobe'); diff --git a/scripts/get-exiftool.sh b/scripts/get-exiftool.sh index 61a4503c..b78b8624 100755 --- a/scripts/get-exiftool.sh +++ b/scripts/get-exiftool.sh @@ -20,7 +20,7 @@ mv "exiftool-$exifver" exiftool rm -rf *.zip exiftool/t exiftool/html chmod 755 exiftool/exiftool -govod="0.0.19" +govod="0.0.20" echo "Getting go-vod $govod" wget -q "https://github.com/pulsejet/go-vod/releases/download/$govod/go-vod-amd64" wget -q "https://github.com/pulsejet/go-vod/releases/download/$govod/go-vod-aarch64"