From c3410d4f0e89beda2684fd29cd0b40e11e32f52e Mon Sep 17 00:00:00 2001 From: Almaz <79905215+almazgimaev@users.noreply.github.com> Date: Wed, 26 Jun 2024 16:40:40 +0200 Subject: [PATCH] change fourcc to h264 --- src/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.py b/src/utils.py index 083f95e..2f83014 100644 --- a/src/utils.py +++ b/src/utils.py @@ -442,7 +442,7 @@ def run_videos( fps = int(cap.get(cv2.CAP_PROP_FPS)) width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH)) height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT)) - fourcc = cv2.VideoWriter_fourcc(*"mp4v") + fourcc = cv2.VideoWriter_fourcc(*"h264") out_video_path = os.path.join(g.APP_DATA_DIR, "videos", f"anonymized_{video.name}") out = cv2.VideoWriter( out_video_path,