API Error codes
Status code 400
The request was unacceptable, often due to an invalid JSON syntax or missing parameters and the video could not be created.
Check for the message
property in the JSON response for details.
API Error messages
Movie duration cannot be zero
This error occurs if the calculated duration of the movie is shorter than a second. This may have multiple origins:
- You have one or multiple images in a scene and any of them have an explicit duration, AND the scene or movie does not have a duration
- The elements or scenes in the movie are too short (less than a second)
- The movie has no elements or scenes
If you are part of the No-code Architects community, please check this video fixing this issue.
The URL provided is not a [video/audio/image] file and cannot be used as a source for a [video/audio/image] element
This error occurs if the element type (video, audio or image) and the file type provided in the "src" property are not compatible.
To fix this issue, make sure that the file URL you are passing in the "src" property matches with the element type.
Accepted codecs per element type:
- video: "h264", "hevc", "mpeg4", "wmv3", "vp8", "vp9", "mpeg2video", "av1", "theora"
- audio: "aac", "flac", "mp3", "opus", "vorbis", "h264", "mpeg4", "wmv3", "vp8", "vp9", "mpeg2video", "av1", "theora"
- image: "png", "jpg", "jpeg", "gif", "mjpeg", "bmp", "tiff", "webp"
MP4 and MKV videos usually use the "h264" codec.