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 } } }