|
|
@@ -64,7 +64,7 @@ def run_openpose_for_npy_and_video(video_uuid, callback: Callable):
|
|
|
cv2.imwrite(UPLOAD_DIR + "result/" + video_uuid + "." + str(c) + ".jpg", canvas)
|
|
|
|
|
|
if out is None:
|
|
|
- out = cv2.VideoWriter(UPLOAD_DIR + "result/" + video_uuid + ".result.mp4", cv2.VideoWriter_fourcc(*"mp4v"), FPS,
|
|
|
+ out = cv2.VideoWriter(UPLOAD_DIR + "result/" + video_uuid + ".result.mp4", cv2.VideoWriter_fourcc(*"H264"), FPS,
|
|
|
(canvas.shape[1], canvas.shape[0])) # So fucking stupid
|
|
|
out.write(canvas)
|
|
|
|