From 2efa4cdcb08fc1e214a0dc7d5659f8b22cc3c693 Mon Sep 17 00:00:00 2001 From: rikai Date: Fri, 9 Sep 2016 22:13:34 -0700 Subject: [PATCH] Encoding settings compatibility updates Using AAC, yuv420p & an mp4 container should provide much increased compatibility with hardware players as well as youtube. --- video_thread.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/video_thread.py b/video_thread.py index ed2af84..25b3b46 100644 --- a/video_thread.py +++ b/video_thread.py @@ -41,11 +41,12 @@ class Worker(QtCore.QObject): '-i', '-', # The input comes from a pipe '-an', '-i', inputFile, - '-acodec', "libmp3lame", # output audio codec + '-acodec', "libfdk_aac", # output audio codec + '-b:a', "192k", '-vcodec', "libx264", - '-pix_fmt', "yuv444p", + '-pix_fmt', "yuv420p", '-preset', "medium", - '-f', "matroska", + '-f', "mp4", outputFile], stdin=sp.PIPE,stdout=sys.stdout, stderr=sys.stdout)