Article directory
1. Audio and video decoding process
2.FFmpeg audio and video decoding process
3. Description of key functions
- avcodec_find_decoder: Find the registered decoder based on the specified AVCodecID
- av_parser_init:Initialize AVCodecParserContext
- avcodec_alloc_context3: Create AVCodecContext context
- avcodec_open2: Associate the decoder with the decoder context
- av_parser_parse2: Parse to obtain an AVPacket
- avcodec_send_packer: Send AVPacket compressed data to the decoder
- avcodec_receice_frame: Obtain the decoded AVFrame data
- av_get_bytes_per_sample: Get the byte data in each sample