Skip to content

Commit

Permalink
add .mp4 to the generated video file
Browse files Browse the repository at this point in the history
  • Loading branch information
yzld2002 committed Sep 6, 2024
1 parent 777079c commit 78e62d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vision_agent/tools/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1518,7 +1518,7 @@ def save_video(
raise ValueError(f"fps must be greater than 0 got {fps}")

if output_video_path is None:
output_video_path = tempfile.NamedTemporaryFile(delete=False).name
output_video_path = tempfile.NamedTemporaryFile(delete=False, suffix='.mp4').name

output_video_path = video_writer(frames, fps, output_video_path)
_save_video_to_result(output_video_path)
Expand Down

0 comments on commit 78e62d4

Please sign in to comment.