From 349e38f840d1695572d4c35bada4c23c1f71398a Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 4 Feb 2021 10:54:35 -0500 Subject: [PATCH] test --- stream/__init__.py | 3 +++ webwatch_conf.json | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/stream/__init__.py b/stream/__init__.py index dc90f1d..3655249 100644 --- a/stream/__init__.py +++ b/stream/__init__.py @@ -164,6 +164,9 @@ class Plugin_OBJ(): def transcode_profiles(self, stream_args): ffmpeg_command = [] + if not self.plugin_utils.config.dict["webwatch"]["ffmpeg_transcode"] == "nvenc": + ffmpeg_command.extend(["-hwaccel", "cuda"]) + ffmpeg_command.extend([ "-c:v", "libvpx", "-c:a", "libvorbis", diff --git a/webwatch_conf.json b/webwatch_conf.json index dc9ea1c..d0b0166 100644 --- a/webwatch_conf.json +++ b/webwatch_conf.json @@ -4,6 +4,11 @@ "value": "none", "config_file": true, "config_web": true + }, + "ffmpeg_transcode":{ + "value": "none", + "config_file": true, + "config_web": true } } }