Skip to content

Commit fbb7b45

Browse files
authored
fix: save_video encoding should be X264 (#188)
use X264 as the fourcc encoding
1 parent d30253e commit fbb7b45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vision_agent/tools/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ def save_video(
10691069
).name
10701070

10711071
height, width, layers = frames[0].shape if frames else (0, 0, 0)
1072-
fourcc = cv2.VideoWriter_fourcc(*"mp4v") # type: ignore
1072+
fourcc = cv2.VideoWriter_fourcc(*"X264") # type: ignore
10731073
video = cv2.VideoWriter(output_video_path, fourcc, fps, (width, height))
10741074
for frame in frames:
10751075
video.write(cv2.cvtColor(frame, cv2.COLOR_RGB2BGR))

0 commit comments

Comments
 (0)