This topic describes the error codes of the short video SDK, which are categorized by feature.
General
Error code | Description |
0 | Logs are uploaded to Simple Log Service. |
-1 | The request failed. |
-2 | The parameter is invalid. |
-3 | An unknown error occurred. |
-4 | A status error occurred. |
Video muxer
Error code | Description |
-10001001 | The remuxing context failed to be created. |
-10001002 | The audio remuxing context failed to be created. |
-10001003 | The remuxing stream failed to be created. |
-10001004 | The video remuxing context failed to be created. |
-10001005 | The remuxing data package failed to be created. |
-10001006 | An exception occurred when you configured the parameters of the audio and video streams. |
-10001007 | A remuxing status error occurred. |
-10001008 | The remuxing file header failed to be written. |
-10001009 | The remuxing file trailer failed to be written. |
-10001010 | One or more parameters that you specified are invalid. For example, you specified an empty value for the input path, output path, audio sample rate, number of audio channels, or resolution. |
-10001011 | The specified encoder type for remuxing cannot be found. |
-10001012 | The remuxing stream failed to be created. |
-10001013 | The remuxing context failed to be created. |
-10001014 | The remuxing I/O context failed to be created. |
Video demuxer
Error code | Description |
-10002001 | The file failed to be parsed. |
-10002002 | The file is being parsed repeatedly. |
-10002003 | The file failed to be opened. |
-10002004 | The file stream was not found. |
-10002005 | An error occurred when the file parsing was complete. |
Video encoder
Error code | Description |
-10003001 | The video encoder failed to be created because the parameters are invalid. |
-10003002 | The video encoder failed to be created because it does not meet the requirements of the encoding scenario. |
-10003003 | The video encoding component does not work properly because no output data receiver is configured for the component. |
-10003004 | The video encoder was interrupted because an error was reported when the video encoder runs. |
-10003005 | The video hardware encoder failed to be created due to an incorrect system version. |
-10003006 | The video encoder failed to start. |
-10003007 | The input data of the video frame is invalid. |
-10003008 | The internal cache of the video encoder is full. Wait for a few seconds and try again. |
-10003009 | An error occurred in the session for iOS video hardware encoding. |
-10003010 | The presentation timestamp (PTS) of the input data does not meet the encoding requirements. |
-10003011 | The video encoder is paused and awaits wake-up. |
-10003012 | The video encoder is paused and awaits wake-up. |
-10003013 | The video encoder returned empty data and the encoding failed. |
-10003101 | OpenH264 initialization failed. |
-10003102 | The input data of OpenH264 is invalid. |
-10003103 | The OpenH264 encoder failed to be initialized. |
-10003104 | The format is not supported for OpenH264. |
-10003105 | OpenH264 encoding failed. |
-10003106 | OpenH264 encoding generates no output. |
-10003107 | The sequence parameter set (SPS) failed to be parsed during OpenH264 encoding. |
-10003201 | A MediaCodec status error occurred. |
-10003202 | A MediaCodec buffer error occurred. |
-10003203 | A MediaCodec error of other types occurred. |
-10003204 | The input is NULL during encoding on Android. |
-10003205 | The output handler is NULL during encoding on Android. |
-10003206 | The feat is not supported for encoding on Android. |
-10003207 | The format is not supported for encoding on Android. |
-10003208 | Initialization failed during encoding on Android. |
-10003209 | The output frame failed to be obtained during encoding on Android. |
-10003210 | The bitrate failed to be updated during encoding on Android because the bitrate is out of range. |
-10003211 | The bitrate failed to be updated during encoding on Android because the encoder is released. |
-10003212 | The bitrate failed to be updated during encoding on Android due to other reasons. |
-10003213 | The bitrate failed to be updated during encoding on Android because the width of the video exceeds 4,096 pixels. |
-10003301 | The creation failed when you use FFmpeg. |
-10003302 | FFmpeg could not find the encoder. |
-10003303 | FFmpeg encoding failed. |
-10003304 | FFmpeg encoding failed. |
-10003401 | Initialization failed during mixed encoding. |
-10003402 | Hardware encoding initialization failed during mixed encoding. |
-10003403 | Decoding failed to start during mixed encoding. |
-10003404 | Software encoding initialization failed during mixed encoding. |
-10003405 | The software encoding service failed to start during mixed encoding. |
Video decoder
Error code | Description |
-10004001 | No SPS exists. |
-10004002 | The H.264 decoding task failed to be created. |
-10004003 | The high-efficiency video coding (HEVC) decoding task failed to be created. |
-10004004 | The decoding task failed to be created. |
-10004005 | A decoding status error occurred. |
-10004006 | The decoding task failed to be created. |
-10004007 | The cache for decoding is insufficient. |
-10004008 | Decoding was interrupted. |
-10004009 | The SPS data failed to be decoded. |
-10004010 | The resources failed to be decoded. |
-10004011 | The decoding failed. |
-10004101 | The OES output format is not supported for software decoding. |
-10004102 | The corresponding decoder for the codec could not be found during software decoding. |
-10004103 | The context could not be found during software decoding. |
-10004104 | The context failed to be created during software decoding. |
-10004105 | The software decoder failed to be opened. |
-10004106 | One frame failed during software decoding. |
-10004107 | An unknown output format was found during software decoding. |
-10004108 | An unknown type of input frame was found during software decoding. |
-10004109 | Flushing failed during software decoding. |
-10004201 | The object is not supported for hardware decoding on Android because the object is in the blacklist. |
-10004202 | The encoding type is not supported for hardware decoding on Android. |
-10004203 | SurfaceTexture failed to be created during hardware decoding on Android. |
-10004204 | MediaCodec initialization failed during hardware decoding on Android. |
-10004205 | The configure operation of MediaCodec failed during hardware decoding on Android. |
-10004206 | An unknown type of input frame was found during hardware decoding on Android. |
-10004207 | The queueInput method of MediaCodec failed during hardware decoding on Android. |
-10004208 | The start method of MediaCodec failed during hardware decoding on Android. |
-10004209 | The dequeueInput method of MediaCodec failed during hardware decoding on Android. |
-10004210 | The dequeueInput method of MediaCodec failed during hardware decoding on Android. |
-10004211 | The dequeueOut method of MediaCodec failed during hardware decoding on Android. |
-10004212 | The queueIn method of MediaCodec failed during hardware decoding on Android. |
-10004213 | The queueIn method of MediaCodec failed during hardware decoding on Android. |
-10004214 | The queueIn method of MediaCodec failed during hardware decoding on Android. |
-10004215 | The flush method of MediaCodec failed during hardware decoding on Android. |
-10004216 | The flush method timed out during hardware decoding on Android. |
-10004217 | The flush method was interrupted during hardware decoding on Android. |
-10004302 | A too low version causes HEVC failures during hardware decoding on iOS. |
-10004303 | The hardware is not supported for hardware decoding on iOS. |
-10004304 | The hardware decoding on iOS does not support the decoding type. |
-10004305 | The input frame is invalid during hardware decoding on iOS. |
-10004306 | The input frame failed to be parsed during hardware decoding on iOS. |
-10004308 | A compilation platform error occurred during hardware decoding on iOS. |
-10004309 | The createSession method failed during hardware decoding on iOS. |
-10004310 | The createBuffer method failed during hardware decoding on iOS. |
-10004311 | The createSampleBuffer method failed during hardware decoding on iOS. |
-10004312 | The kVTInvalidSessionErr error occurred during hardware decoding on iOS. |
-10004313 | The hardware decoding on iOS failed. |
-10004314 | A decoding callback error occurred during hardware decoding on iOS. |
-10004315 | The format failed to be created during hardware decoding on iOS. |
-10004316 | No video format is available during hardware decoding on iOS. |
Audio encoder
Error code | Description |
-10005001 | The audio encoder failed to be created because the parameters are invalid. |
-10005002 | The status of the audio encoding component is invalid. |
-10005003 | The input data of the audio frame is invalid. |
-10005004 | The audio encoder was interrupted and could not continue to work. |
-10005005 | The audio encoding component does not work properly because no output data receiver is configured for the component. |
-10005006 | No encoder that meets the requirements of the encoding scenario is available. |
-10005007 | The open method failed. |
-10005008 | The set bitrate method failed. |
-10005009 | The set sample rate method failed. |
-10005010 | The set aot method failed. |
-10005011 | The set transmux method failed. |
-10005012 | The set singlemode method failed. |
-10005013 | The set channel method failed. |
-10005014 | The set channelloader method failed. |
-10005015 | The set afterburner method failed. |
-10005016 | The get info method failed. |
-10005017 | No encoder exists. |
-10005018 | The input configuration for audio initialization is invalid. |
-10005019 | The initialization is repeated. |
-10005020 | The encoder failed to be created. |
-10005021 | No encoder that meets the requirements of the encoding scenario is available. |
-10005022 | No encoder instance exists. |
Audio decoder
Error code | Description |
-10006001 | The audio decoder failed to be created because the parameters are invalid. |
-10006002 | The status of the audio decoding component is invalid and repeated creation or destruction occurs. |
-10006003 | The audio packet data that is input is invalid. |
-10006004 | The internal cache of the audio decoder is full. Wait for a few seconds and try again. |
-10006005 | The audio decoder failed to be opened. |
-10006006 | The audio decoding type is not supported. |
-10006007 | One frame failed to be decoded by the audio decoder. |
-10006008 | The audio decoder cannot be created due to insufficient memory. |
-10006009 | The decoder already exists. |
-10006010 | The audio decoder failed to be created because the parameters are invalid. |
-10006011 | The decoder already exists. |
-10006012 | The decoder already exists. |
-10006013 | The decoder failed to be created. |
-10006014 | The input data of the decoder is incorrect. |
-10006015 | The cookie data failed to be configured for the decoder. |
Rendering
Error code | Description |
-10007001 | The first frame has been rendered. |
-10007002 | An EGL error occurred. |
-10007003 | A GL error occurred. |
-10007004 | The data that you want to render is invalid. |
-10007006 | The size of the render window is invalid. |
-10007007 | An orchestration exception occurred on the render node. |
-10007008 | An exception occurred when the parameters were configured for the render node. |
-10007009 | An exception occurred in render orchestration and building. |
-10007010 | An exception occurred when the parameters of the frame animation were passed. |
-10007011 | The GL context failed to be created. |
-10007013 | eglSwapBuffers failed. |
Data pool
Error code | Description |
-10008001 | The status of the data pool is invalid. |
-10008002 | The data pool processing failed. |
-10008003 | The disk space is insufficient. |
-10008004 | An error occurred when the group of pictures (GOP) of videos in the data pool was parsed. |
-10008005 | The audio streams in the data pool failed to be initialized. |
-10008006 | The video streams in the data pool failed to be initialized. |
-10008007 | A buffer overflow occurred in the data pool. |
-10008008 | The media stream does not exist in the data pool. |
Audio processing
Error code | Description |
-10009001 | A creation failure occurred. |
-10009002 | Repeated creation occurred. |
-10009003 | A destruction failure occurred. |
-10009004 | Repeated destruction occurred. |
-10009005 | The stream failed to be configured. |
-10009006 | The attribute failed to be configured. |
-10009007 | The algorithm module failed. |
-10009008 | The memory is full. |
-10009009 | The application failed to be configured. |
-10009010 | A dragging failure occurred. |
-10009011 | An unknown configuration was found. |
-10009012 | Empty data was pushed. |
-10010001 | The kernel failed to be created. |
-10010002 | The audio rendering task already exists. |
-10010003 | The volume failed to be muted. |
License
Error code | Description |
-10011001 | The license is invalid because the license has expired or you are not authorized to use the license. |
-10011002 | A license verification exception occurred because you do not have music video (MV) permissions. |
-10011003 | A license verification exception occurred because you do not have permissions on the animated stickers or subtitles. |
-10011004 | A license verification exception occurred because you do not have the cropping permissions. |
-20001001 | The license is invalid. |
Short videos
Error code | Description |
-20001002 | You have not paid for the effect. |
-20001003 | The effect resources do not exist. |
-20001004 | The effect cannot overwrite existing effects. |
-20001005 | The effect failed to be used. |
-20001006 | You do not have Android device permissions, such as audio collection, file read/write, camera use, and network access. |
-20001007 | The parameters that you specified for background music are invalid. For example, the path of the background music and time parameters are invalid. |
-20001008 | The format of the background music that you specified is not supported. |
TRES
Error code | Description |
-20002001 | The player was not ready. |
-20002002 | An exception occurred during multiple calls. |
-20002003 | An error occurred on the input audio stream. |
-20002004 | A video rendering exception occurred. |
-20002005 | The effect is already added. |
-20002006 | The status is invalid. |
Parameters
Error code | Description |
-20003001 | A parameter exception occurred. |
-20003002 | The parameter is invalid. |
-20003003 | The input path is empty. |
-20003004 | The input video path is empty. |
-20003005 | The file does not exist. |
-20003006 | The clip index is invalid because the maximum number of clips in the list is exceeded or the index is invalid. |
-20003007 | The clip is invalid because the clip is NULL. |
-20003008 | No clip exists in the list and you cannot perform the deletion operation. |
-20003009 | The size specified for the video is invalid. |
-20003010 | An exception occurred when you specified the duration of the video or audio. |
-20003011 | An animation path exception occurred. |
-20003012 | A resource parsing exception occurred. |
-20003013 | An image path exception occurred. |
-20003014 | A filter path exception occurred. |
-20003015 | The PictureSize parameter is invalid. |
-20003016 | The watermark object is empty. |
-20003017 | The doodles are invalid. |
-20003018 | The periods of time to which the effects apply conflict. For example, the periods of time of two animated filters overlap. |
-20003019 | The project is empty. |
-20003020 | The media file failed to be added. |
-20003021 | The output path is invalid. |
-20003022 | An MV path exception occurred. |
Media
Error code | Description |
-20004001 | The video format is not supported. |
-20004002 | The audio format is not supported. |
-20004003 | The image format is not supported. |
-20004004 | The media type is not supported. |
-20004005 | An internal error occurred in the video encoder. |
-20004006 | An internal error occurred in the audio encoder. |
-20004007 | The image failed to be cropped. |
-20004008 | An internal error occurred in the video decoder. |
-20004009 | A parameter error occurred in the video encoder. |
-20004010 | A parameter error occurred in the audio encoder. |
-20004011 | An internal error occurred in the audio decoder. |
-20004012 | The pixel format is not supported. |
-20004013 | An internal error occurred in the player. |
-20004014 | The pixel format is not supported. |
-20004015 | The encoding component failed to be initialized. |
-20004016 | The input file failed to be parsed. |
-20004017 | The video queue is empty. |
-20004018 | The audio queue is empty. |
-20004019 | More than two input streams exist. A maximum of two input streams are supported during audio processing. |
-20004020 | Audio processing initialization failed. |
-20004021 | The MV configuration file failed to be parsed. |
I/O
Error code | Description |
-20005001 | The preview failed to be enabled. |
-20005002 | The camera failed to be enabled. |
-20005003 | Camera switching failed. |
-20005004 | The temporary recording file failed to be created. |
-20005005 | Audio recording failed. |
-20005006 | The camera parameters that you specified are invalid. |
-20005007 | The camera was disabled. |
-20005008 | The camera type is not supported. |
Video recording
Error code | Description |
-20008001 | The video input handle is set to NULL. |
-20008002 | The video input handle is set to NULL. |
-20008003 | The audio input handle is set to NULL. |
-20008004 | Recording failed to end. |
-20008005 | Recording failed to stop. |
-20008006 | The recording encoder failed to be initialized. |
-20008007 | Recording was not ready. |
-20008008 | The maximum recording duration is reached. |
-20008009 | The recording service failed to be created. |
-20008010 | The recording proxy failed to be created. |
-20008011 | The status of the recording service is invalid. |
-20008012 | The data collected from recording is not supported. |
-20008013 | The information about the SurfaceTexture class could not be found. |
-20009001 | The rendering layout for duet recording failed. |
Video editing
Error code | Description |
-20011001 | A system error, such as codec error, occurred in the editing module. |
-20011002 | An error occurred when you prepared for editing. |
-20011003 | An error occurred when you started editing, for example, when you started to play or produce a video. |
-20011004 | An error occurred when you stopped editing, for example, when you stopped playing or producing a video. |
-20011005 | An error occurred when you paused editing, for example, when you paused video playback or production. |
-20011006 | An error occurred when you continued editing, for example, when you continued to play or produce a video. |
-20011007 | An error occurred when you fast-forwarded a video during editing. |
-20011008 | The multi-clip video does not support time effects during editing, including looping and reverse playback. |
-20011009 | Editing initialization failed. |
-20011010 | The component of a mode failed before de-initialization when you switched modes during editing. |
-20011011 | The corresponding display output settings were not found when you set the mode during editing. |
-20011012 | The interval between fast-forwards is too short. |
-20011013 | The display parameters failed to be configured during editing. |
-20011014 | The corresponding file cannot be found during editing. |
-20011015 | The effect resources failed to be parsed. |
-20011016 | The type of the image effect is not supported. |
-20011017 | The demuxer failed to parse the file. |
-20011018 | A production status error occurred. |
-20011019 | An editing status error occurred. |
-20011020 | The production is invalid because the required parameters are empty. |
-20011021 | The production initialization failed. |
-20011022 | The transition duration is invalid. |
-20011023 | The components which are required for production are empty, usually because the components are in an incorrect status. |
-20011024 | Editing initialization has not been performed. |
Video upload
Error code | Description |
-20012001 | An upload failure occurred. |
-20012002 | The upload parameters are empty. |
-20012003 | The upload status is invalid. |
Others
Error code | Description |
-20006001 | The recording failed due to an incoming call. |
-20006002 | An error occurred when the application was switched to the background. |
-20007001 | The internal logic of the thumbnail is invalid. |
-20007002 | The color space conversion for thumbnails failed to be initialized. |
-20007003 | The color space conversion for thumbnails failed. |
-20007004 | An internal error occurred in the thumbnail decoder. |
-20007005 | An error occurred during thumbnail stream parsing. |
-20007007 | Thumbnails failed to be prepared. |
-20010001 | The transcoding status is invalid. |
-20010002 | The transcoding parameters are invalid. |
-20010003 | An error occurred when the application was switched to the background during transcoding. |
-20010004 | The parameters for transcoding initialization are invalid. |