From 7089180e012c9971e8b3f2cbacd6a56837772883 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 4 Feb 2021 10:40:49 -0500 Subject: [PATCH] test --- stream/__init__.py | 18 +++++++++++++----- webwatch_conf.json | 5 +++++ 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/stream/__init__.py b/stream/__init__.py index eaa8256..dbf26ee 100644 --- a/stream/__init__.py +++ b/stream/__init__.py @@ -164,10 +164,18 @@ class Plugin_OBJ(): def transcode_profiles(self, stream_args): ffmpeg_command = [] - ffmpeg_command.extend([ - "-c:v", "libvpx", - "-c:a", "libvorbis", - "-f", "webm" - ]) + if not self.plugin_utils.config.dict["webwatch"]["ffmpeg_transcode"] == "nvenc": + ffmpeg_command.extend([ + "-hwaccel", "cuda", + "-c:v", "h264_nvenc", + "-c:a", "libvorbis", + "-f", "webm" + ]) + else: + ffmpeg_command.extend([ + "-c:v", "copy", + "-c:a", "libvorbis", + "-f", "webm" + ]) return ffmpeg_command 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 } } }