native_avmuxer.h

Overview

The native_avmuxer.h file declares native APIs used for audio and video encapsulation.

Since

10

Related Modules

AVMuxer

Summary

Functions

Name Description
*OH_AVMuxer_Create (int32_t fd, OH_AVOutputFormat format) Creates an OH_AVMuxer instance by using the file descriptor and encapsulation format.
OH_AVMuxer_SetRotation (OH_AVMuxer *muxer, int32_t rotation) Sets the rotation angle (clockwise) of an output video.
OH_AVMuxer_AddTrack (OH_AVMuxer *muxer, int32_t *trackIndex, OH_AVFormat *trackFormat) Adds a media track to the muxer.
OH_AVMuxer_Start (OH_AVMuxer *muxer) Starts encapsulation.
OH_AVMuxer_WriteSample (OH_AVMuxer *muxer, uint32_t trackIndex, OH_AVMemory *sample, OH_AVCodecBufferAttr info) Writes data to the muxer.
OH_AVMuxer_Stop (OH_AVMuxer *muxer) Stops encapsulation.
OH_AVMuxer_Destroy (OH_AVMuxer *muxer) Clears internal resources and destroys an OH_AVMuxer instance.