From c29d42be639935393e2127bb596ef26dc5da27d2 Mon Sep 17 00:00:00 2001 From: David Humphrey Date: Sun, 22 Oct 2023 20:36:50 -0400 Subject: [PATCH] Fix ffmpeg options for better video encoding support --- src/clip_manager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/clip_manager.py b/src/clip_manager.py index 8885ae9..897d32a 100644 --- a/src/clip_manager.py +++ b/src/clip_manager.py @@ -159,6 +159,8 @@ def create_clip_process(self, queue, stop_event): "libx264", # use H.264 for video codec to maximize compatibility "-c:a", "aac", # use Advanced Audio Coding (AAC) for audio compatibility + "-pix_fmt", # use YUV planar color space with 4:2:0 chroma subsampling (QuickTime) + "yuv420p", # see https://trac.ffmpeg.org/wiki/Encode/H.264#Encodingfordumbplayers clip_filename, ] )