From 30f6851ba70bfb4e946e72b879d2d4641ed94bf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=84=9C=EC=9E=A5=EC=9B=90=5FT4105?= Date: Thu, 2 Feb 2023 10:43:06 +0900 Subject: [PATCH] :bug: Fix bug that inferenced video cannot play (#36) --- app/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/server.py b/app/server.py index 8f009310..3877fae7 100644 --- a/app/server.py +++ b/app/server.py @@ -134,7 +134,7 @@ def _inference_video(model_info: ModelInfo, video_filepath: FilePath) -> FilePat visualizer = VISUALIZERS.build(model.cfg.visualizer) visualizer.dataset_meta = model.dataset_meta video_reader = mmcv.VideoReader(str(video_filepath)) - fourcc = cv2.VideoWriter_fourcc(*"mp4v") + fourcc = cv2.VideoWriter_fourcc(*"H264") out_filepath = video_filepath.parent / (f"inferenced_{video_filepath.name}") video_writer = cv2.VideoWriter( str(out_filepath),