Parcourir la source

try h264 for chrome compat

lyc8503 il y a 4 ans
Parent
commit
da6aad976e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      backend_refactor/service/video_analyzer.py

+ 1 - 1
backend_refactor/service/video_analyzer.py

@@ -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(*"H264"), FPS,
+                    out = cv2.VideoWriter(UPLOAD_DIR + "result/" + video_uuid + ".result.mp4", cv2.VideoWriter_fourcc(*"avc1"), FPS,
                                           (canvas.shape[1], canvas.shape[0]))  # So fucking stupid
                 out.write(canvas)