Skip to content

Commit

Permalink
Fix `OpenCV: FFMPEG: tag 0x5634504d/'MP4V' is not supported with code…
Browse files Browse the repository at this point in the history
…c id 12 and format 'mp4 / MP4 (MPEG-4 Part 14)'` warning
  • Loading branch information
mstoelzle committed Sep 7, 2024
1 parent 258fb80 commit 3c3448f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/simulate_pendulum.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def draw_robot(
print("sol.ys =\n", sol.ys)

# create video
fourcc = cv2.VideoWriter_fourcc(*"MP4V")
fourcc = cv2.VideoWriter_fourcc(*"mp4v")
video_path.parent.mkdir(parents=True, exist_ok=True)
video = cv2.VideoWriter(
str(video_path),
Expand Down
2 changes: 1 addition & 1 deletion examples/simulate_planar_pcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def draw_robot(
plt.show()

# create video
fourcc = cv2.VideoWriter_fourcc(*"MP4V")
fourcc = cv2.VideoWriter_fourcc(*"mp4v")
video_path.parent.mkdir(parents=True, exist_ok=True)
video = cv2.VideoWriter(
str(video_path),
Expand Down
2 changes: 1 addition & 1 deletion src/jsrm/rendering/planar_hsa/opencv_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def animate_robot(
video_height: video height
"""
# create video
fourcc = cv2.VideoWriter_fourcc(*"MP4V")
fourcc = cv2.VideoWriter_fourcc(*"mp4v")
filepath.parent.mkdir(parents=True, exist_ok=True)
video_dt = jnp.mean(video_ts[1:] - video_ts[:-1]).item()
print(f"Rendering video with dt={video_dt} and {video_ts.shape[0]} frames")
Expand Down

0 comments on commit 3c3448f

Please sign in to comment.