diff --git a/auto_editor/render/video.py b/auto_editor/render/video.py index 8b473e29a..fd36afec0 100644 --- a/auto_editor/render/video.py +++ b/auto_editor/render/video.py @@ -3,6 +3,7 @@ import os.path from dataclasses import dataclass from subprocess import DEVNULL, PIPE +from sys import platform from typing import TYPE_CHECKING import av @@ -111,7 +112,6 @@ def make_image_cache(tl: v3) -> dict[tuple[FileInfo, int], np.ndarray]: format="rgb24" ) break - return img_cache @@ -198,6 +198,10 @@ def render_av( target_pix_fmt, ] + if platform == "darwin": + # Fix videotoolbox issue with legacy macs + cmd += ["-allow_sw", "1"] + if apply_video_later: cmd += ["-c:v", "mpeg4", "-qscale:v", "1"] else: