This commit is contained in:
deathbybandaid 2021-02-04 10:40:49 -05:00
parent 2792decf31
commit 7089180e01
2 changed files with 18 additions and 5 deletions

View File

@ -164,8 +164,16 @@ 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([
"-c:v", "libvpx",
"-hwaccel", "cuda",
"-c:v", "h264_nvenc",
"-c:a", "libvorbis",
"-f", "webm"
])
else:
ffmpeg_command.extend([
"-c:v", "copy",
"-c:a", "libvorbis",
"-f", "webm"
])

View File

@ -4,6 +4,11 @@
"value": "none",
"config_file": true,
"config_web": true
},
"ffmpeg_transcode":{
"value": "none",
"config_file": true,
"config_web": true
}
}
}