Audio and video decoding process analysis

1. Audio and video decoding process

Insert image description here
Insert image description here

2.FFmpeg audio and video decoding process

Insert image description here

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

Supongo que te gusta

Origin blog.csdn.net/m0_60565784/article/details/131353812
Recomendado
Clasificación