Spaces:
Runtime error
Runtime error
Commit
·
28bb958
1
Parent(s):
d457578
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ result = {}
|
|
50 |
|
51 |
|
52 |
vid_frames = np.random.rand(100, 100, 3)
|
53 |
-
out = cv2.VideoWriter("static/test_video.mp4", cv2.VideoWriter_fourcc(*'
|
54 |
for j, frame in enumerate(vid_frames):
|
55 |
out.write(frame)
|
56 |
out.release()
|
|
|
50 |
|
51 |
|
52 |
vid_frames = np.random.rand(100, 100, 3)
|
53 |
+
out = cv2.VideoWriter("static/test_video.mp4", cv2.VideoWriter_fourcc(*'mp4v'), 10, [ 100, 100 ] )
|
54 |
for j, frame in enumerate(vid_frames):
|
55 |
out.write(frame)
|
56 |
out.release()
|