Skip to content

Commit 723e2a2

Browse files
Merge pull request #213 from fastlabel/fix-support-codec
fix: support h264 that was previously determined to be avc1
2 parents 133957d + 5552cc6 commit 723e2a2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

fastlabel/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ def create_video_task(
12671267
)
12681268
if not utils.is_video_supported_codec(file_path):
12691269
raise FastLabelInvalidException(
1270-
"Supported video encoding for registration through the SDK is only H.264.",
1270+
"Supported video encoding for registration through the SDK is only AVC/H.264",
12711271
422,
12721272
)
12731273

@@ -1336,7 +1336,7 @@ def create_video_classification_task(
13361336
)
13371337
if not utils.is_video_supported_codec(file_path):
13381338
raise FastLabelInvalidException(
1339-
"Supported video encoding for registration through the SDK is only H.264.",
1339+
"Supported video encoding for registration through the SDK is only AVC/H.264",
13401340
422,
13411341
)
13421342

fastlabel/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@
223223
SUPPORTED_OBJECT_SIZE = 250 * math.pow(1024, 2)
224224

225225
# Only 'avc1' and 'H264' are supported for video task creation.
226-
SUPPORTED_FOURCC = ["avc1"]
226+
SUPPORTED_FOURCC = ["avc1", "h264"]
227227

228228

229229
SUPPORTED_INFERENCE_IMAGE_SIZE = 6 * math.pow(1024, 2)

0 commit comments

Comments
 (0)