test
This commit is contained in:
parent
d5c570175f
commit
2ae87897f5
@ -164,17 +164,9 @@ class Plugin_OBJ():
|
|||||||
def transcode_profiles(self, stream_args):
|
def transcode_profiles(self, stream_args):
|
||||||
|
|
||||||
ffmpeg_command = []
|
ffmpeg_command = []
|
||||||
if not self.plugin_utils.config.dict["webwatch"]["ffmpeg_transcode"] == "nvenc":
|
|
||||||
ffmpeg_command.extend([
|
|
||||||
"-hwaccel", "cuda",
|
|
||||||
"-c:v", "h264_nvenc",
|
|
||||||
"-c:a", "copy",
|
|
||||||
"-f", "mp4"
|
|
||||||
])
|
|
||||||
else:
|
|
||||||
ffmpeg_command.extend([
|
ffmpeg_command.extend([
|
||||||
"-c:v", "copy",
|
"-c:v", "copy",
|
||||||
"-c:a", "libvorbis",
|
"-c:a", "copy",
|
||||||
"-f", "webm"
|
"-f", "webm"
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|||||||
@ -4,11 +4,6 @@
|
|||||||
"value": "none",
|
"value": "none",
|
||||||
"config_file": true,
|
"config_file": true,
|
||||||
"config_web": true
|
"config_web": true
|
||||||
},
|
|
||||||
"ffmpeg_transcode":{
|
|
||||||
"value": "none",
|
|
||||||
"config_file": true,
|
|
||||||
"config_web": true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user