Skip to content

Commit

Permalink
change fourcc to h264
Browse files Browse the repository at this point in the history
  • Loading branch information
almazgimaev authored Jun 26, 2024
1 parent 4a2238e commit c3410d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c3410d4

Please sign in to comment.