If the audio track format is not specified during transcoding, the system converts it to AAC by default.
Currently, only conversion from HDR Vivid to SDR is supported. Other HDR formats are not supported. You can call OH_VideoProcessing_IsColorSpaceConversionSupported to check whether the current device supports this feature. For details, see VPE specifications.
Check whether the target video resolution is below 240p. The width and height of the target video should not exceed those of the source video and should not be odd numbers.
For details about how to set the video resolution, see Setting the Correct Video Width and Height.
If the video bit rate is not specified, the system uses the default target bit rate, which is higher than the bit rate of the source video. This results in a larger file size for the transcoded video.
The source video has a 90° rotation angle. The displayed image accounts for this rotation, making the video appear landscape to the user. Therefore, the target resolution is set with a width greater than height. After transcoding, the resulting video, when accounting for the rotation angle, has a width smaller than its height, therefore appearing portrait. It is recommended that you obtain the video's width and height through metadata and set the target resolution accordingly.
Check whether the current transcoding system supports the video and the target video format settings.
Topics describing the transcoding capabilities: AVTranscoder, AVCodec Supported Formats, VPE specifications
When receiving an error event, the application should send the source video. When receiving a complete event, the application first calls release before performing operations such as sending or uploading the transcoded video.