From 3d9c6cbadec4eff8f039e959eab64827709ac9de Mon Sep 17 00:00:00 2001 From: cswimr Date: Fri, 22 Nov 2024 10:15:16 -0500 Subject: [PATCH] use `.webm` instead of `.mp4` for spectacle videos --- scripts/spectacle-screenshot.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/spectacle-screenshot.py b/scripts/spectacle-screenshot.py index 9673761..7cd5972 100755 --- a/scripts/spectacle-screenshot.py +++ b/scripts/spectacle-screenshot.py @@ -24,10 +24,8 @@ def spectacle_screenshot( ) if not file_path: - # Spectacle actually defaults to .webm for video recordings, - # but Zipline doesn't behave well with .webm files so we use .mp4 instead. use_temp_file = True - suffix = ".mp4" if record else ".png" + suffix = ".webm" if record else ".png" temp_file = tempfile.NamedTemporaryFile(delete=False, suffix=suffix) file_path = temp_file.name temp_file.close()