From ae9272b990dc48ef1f910620d351546fb963e818 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 4 Feb 2021 10:08:58 -0500 Subject: [PATCH] test --- stream/__init__.py | 62 ++++------------------------------------------ 1 file changed, 5 insertions(+), 57 deletions(-) diff --git a/stream/__init__.py b/stream/__init__.py index 09d72f1..eaa8256 100644 --- a/stream/__init__.py +++ b/stream/__init__.py @@ -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