Error Code Description
- 0: no error
- -1: Unknown error. The audio frame pts is abnormal or the library function call of ffmpeg fails, for example, the av_seek_frame call fails.
- -2: Memory exception error
- -3: Abnormal resource error, such as ffmpeg object resource apply failure.
- -4: I/O error
- -5: encoding error
- -6: frame data conversion error
- -7: Write video frame error
- -8: Error writing audio frame
- -9: Write filter frame error, special effect addition failed.
- -10: Write video frame error, the number of video frame writing exceeds the limit.