This commit is contained in:
deathbybandaid 2021-02-04 10:08:58 -05:00
parent f4b2d8d6b1
commit ae9272b990

View File

@ -164,62 +164,10 @@ class Plugin_OBJ():
def transcode_profiles(self, stream_args):
ffmpeg_command = []
if not stream_args["transcode_quality"] or stream_args["transcode_quality"] == "heavy":
ffmpeg_command.extend([
"-c:v", "libvpx",
"-c:a", "libvorbis",
"-f", "webm"
])
elif stream_args["transcode_quality"] == "mobile":
ffmpeg_command.extend([
"-c:v", "libvpx",
"-c:a", "libvorbis",
"-s", "1280X720",
"-b:v", "500k",
"-b:a", "128k",
"-f", "webm"
])
elif stream_args["transcode_quality"] == "internet720":
ffmpeg_command.extend([
"-c:v", "libvpx",
"-c:a", "libvorbis",
"-s", "1280X720",
"-b:v", "1000k",
"-b:a", "196k",
"-f", "webm"
])
elif stream_args["transcode_quality"] == "internet480":
ffmpeg_command.extend([
"-c:v", "libvpx",
"-c:a", "libvorbis",
"-s", "848X480",
"-b:v", "400k",
"-b:a", "128k",
"-f", "webm"
])
elif stream_args["transcode_quality"] == "internet360":
ffmpeg_command.extend([
"-c:v", "libvpx",
"-c:a", "libvorbis",
"-s", "640X360",
"-b:v", "250k",
"-b:a", "96k",
"-f", "webm"
])
elif stream_args["transcode_quality"] == "internet240":
ffmpeg_command.extend([
"-c:v", "libvpx",
"-c:a", "libvorbis",
"-s", "432X240",
"-b:v", "250k",
"-b:a", "96k",
"-f", "webm"
])
ffmpeg_command.extend([
"-c:v", "libvpx",
"-c:a", "libvorbis",
"-f", "webm"
])
return ffmpeg_command