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, ) 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)