This commit is contained in:
deathbybandaid 2021-02-04 10:01:41 -05:00
parent bed6ce13fb
commit 1082db0413

View File

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