Skip to content

Commit

Permalink
Merge pull request #20 from humphrem/mp4-quicktime-bug
Browse files Browse the repository at this point in the history
Fix ffmpeg options for better video encoding support
  • Loading branch information
humphrem authored Oct 23, 2023
2 parents 272d7d6 + c29d42b commit 6b41eac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/clip_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]
)
Expand Down

0 comments on commit 6b41eac

Please sign in to comment.