Skip to content

Commit 02ab51e

Browse files
koki.murasawakoki.murasawa
authored andcommitted
Fixed error messages and updated README
1 parent 7dc8a3c commit 02ab51e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,8 @@ task_id = client.create_video_task(
767767
##### Limitation
768768

769769
- You can upload up to a size of 250 MB.
770+
- You can upload only videos with H.264 encoding.
771+
- You can upload only MP4 file format.
770772

771773
#### Find Task
772774

fastlabel/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,7 @@ def create_video_task(
12541254
)
12551255
if not utils.is_video_supported_codec(file_path):
12561256
raise FastLabelInvalidException(
1257-
"Supported codec is H.264.", 422
1257+
"Supported video encoding for registration through the SDK is only H.264.", 422
12581258
)
12591259

12601260
file = utils.base64_encode(file_path)
@@ -1322,7 +1322,7 @@ def create_video_classification_task(
13221322
)
13231323
if not utils.is_video_supported_codec(file_path):
13241324
raise FastLabelInvalidException(
1325-
"Supported codec is H.264.", 422
1325+
"Supported video encoding for registration through the SDK is only H.264.", 422
13261326
)
13271327

13281328
file = utils.base64_encode(file_path)

0 commit comments

Comments
 (0)