From 342811c1ef9b7475224dd5f18d2a0b752e3ff9a0 Mon Sep 17 00:00:00 2001 From: hukurou0 Date: Thu, 6 Jun 2024 15:14:51 +0900 Subject: [PATCH 1/2] add h264 --- fastlabel/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastlabel/const.py b/fastlabel/const.py index f505bbc..b62da99 100644 --- a/fastlabel/const.py +++ b/fastlabel/const.py @@ -223,7 +223,7 @@ SUPPORTED_OBJECT_SIZE = 250 * math.pow(1024, 2) # Only 'avc1' and 'H264' are supported for video task creation. -SUPPORTED_FOURCC = ["avc1"] +SUPPORTED_FOURCC = ["avc1", "h264"] SUPPORTED_INFERENCE_IMAGE_SIZE = 6 * math.pow(1024, 2) From 5552cc6b54f885352ffae120d1bef0df5f3a6aeb Mon Sep 17 00:00:00 2001 From: hukurou0 Date: Tue, 11 Jun 2024 15:18:36 +0900 Subject: [PATCH 2/2] fix error message --- fastlabel/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastlabel/__init__.py b/fastlabel/__init__.py index ee4fee5..1fbf558 100644 --- a/fastlabel/__init__.py +++ b/fastlabel/__init__.py @@ -1267,7 +1267,7 @@ def create_video_task( ) if not utils.is_video_supported_codec(file_path): raise FastLabelInvalidException( - "Supported video encoding for registration through the SDK is only H.264.", + "Supported video encoding for registration through the SDK is only AVC/H.264", 422, ) @@ -1336,7 +1336,7 @@ def create_video_classification_task( ) if not utils.is_video_supported_codec(file_path): raise FastLabelInvalidException( - "Supported video encoding for registration through the SDK is only H.264.", + "Supported video encoding for registration through the SDK is only AVC/H.264", 422, )