Skip to content

Commit 3c3448f

Browse files
committed
Fix OpenCV: FFMPEG: tag 0x5634504d/'MP4V' is not supported with codec id 12 and format 'mp4 / MP4 (MPEG-4 Part 14)' warning
1 parent 258fb80 commit 3c3448f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/simulate_pendulum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def draw_robot(
101101
print("sol.ys =\n", sol.ys)
102102

103103
# create video
104-
fourcc = cv2.VideoWriter_fourcc(*"MP4V")
104+
fourcc = cv2.VideoWriter_fourcc(*"mp4v")
105105
video_path.parent.mkdir(parents=True, exist_ok=True)
106106
video = cv2.VideoWriter(
107107
str(video_path),

examples/simulate_planar_pcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def draw_robot(
158158
plt.show()
159159

160160
# create video
161-
fourcc = cv2.VideoWriter_fourcc(*"MP4V")
161+
fourcc = cv2.VideoWriter_fourcc(*"mp4v")
162162
video_path.parent.mkdir(parents=True, exist_ok=True)
163163
video = cv2.VideoWriter(
164164
str(video_path),

src/jsrm/rendering/planar_hsa/opencv_renderer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def animate_robot(
235235
video_height: video height
236236
"""
237237
# create video
238-
fourcc = cv2.VideoWriter_fourcc(*"MP4V")
238+
fourcc = cv2.VideoWriter_fourcc(*"mp4v")
239239
filepath.parent.mkdir(parents=True, exist_ok=True)
240240
video_dt = jnp.mean(video_ts[1:] - video_ts[:-1]).item()
241241
print(f"Rendering video with dt={video_dt} and {video_ts.shape[0]} frames")

0 commit comments

Comments
 (0)