From d6312fa0d9febca0793f93657aca4a48a61f3494 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 4 Feb 2021 09:30:18 -0500 Subject: [PATCH] test --- stream/__init__.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/stream/__init__.py b/stream/__init__.py index e44ffad..ce3616b 100644 --- a/stream/__init__.py +++ b/stream/__init__.py @@ -164,6 +164,7 @@ class Plugin_OBJ(): def transcode_profiles(self, stream_args): ffmpeg_command = [] + # ffmpeg_command = ["-vcodec", "libx264", "-pix_fmt", "yuv420p"] if not stream_args["transcode_quality"] or stream_args["transcode_quality"] == "heavy": ffmpeg_command.extend([ @@ -173,7 +174,8 @@ class Plugin_OBJ(): elif stream_args["transcode_quality"] == "mobile": ffmpeg_command.extend([ - "-c", "copy", + "-c:v", "libx264", + "-c:a", "copy", "-s", "1280X720", "-b:v", "500k", "-b:a", "128k", @@ -182,7 +184,8 @@ class Plugin_OBJ(): elif stream_args["transcode_quality"] == "internet720": ffmpeg_command.extend([ - "-c", "copy", + "-c:v", "libx264", + "-c:a", "copy", "-s", "1280X720", "-b:v", "1000k", "-b:a", "196k", @@ -191,7 +194,8 @@ class Plugin_OBJ(): elif stream_args["transcode_quality"] == "internet480": ffmpeg_command.extend([ - "-c", "copy", + "-c:v", "libx264", + "-c:a", "copy", "-s", "848X480", "-b:v", "400k", "-b:a", "128k", @@ -200,7 +204,8 @@ class Plugin_OBJ(): elif stream_args["transcode_quality"] == "internet360": ffmpeg_command.extend([ - "-c", "copy", + "-c:v", "libx264", + "-c:a", "copy", "-s", "640X360", "-b:v", "250k", "-b:a", "96k", @@ -209,7 +214,8 @@ class Plugin_OBJ(): elif stream_args["transcode_quality"] == "internet240": ffmpeg_command.extend([ - "-c", "copy", + "-c:v", "libx264", + "-c:a", "copy", "-s", "432X240", "-b:v", "250k", "-b:a", "96k",