上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页
摘要: 关键函数 /** * Find a registered encoder with a matching codec ID. * 利用编码器ID查找编码器(AVCodec.id) * @param id AVCodecID of the requested encoder * @return An 阅读全文
posted @ 2021-12-10 00:14 flxx 阅读(1157) 评论(0) 推荐(0) 编辑
摘要: 1. 获取编码器AVCodec avcodec_find_encoder avcodec_find_encoder_by_name 2. 分配编码上下文AVCodecContext avcodec_alloc_context3 3. 设置编码参数 3.1 音频 ctx->codec_id = AV_ 阅读全文
posted @ 2021-12-09 23:39 flxx 阅读(301) 评论(0) 推荐(1) 编辑
摘要: 存储方式差异 音视频都有packed和planar两种存储方式 packed方式为多个声道交错存储,比如双声道data[0] = LRLRLR… planar方式为多个声道独立存储,比如双声道data[0] = LLL… data[1] = RRR… 图示yuv444p与yuv444 对于plana 阅读全文
posted @ 2021-12-07 23:17 flxx 阅读(1318) 评论(0) 推荐(1) 编辑
摘要: 通道布局与通用函数 类型和枚举说明 channel_masks Audio channel masks通道掩码 #define AV_CH_FRONT_LEFT 0x00000001 #define AV_CH_FRONT_RIGHT 0x00000002 #define AV_CH_FRONT_C 阅读全文
posted @ 2021-12-04 15:01 flxx 阅读(1394) 评论(0) 推荐(0) 编辑
摘要: 音频量化格式和相关的工具函数 类型说明 AVSampleFormat /** * Audio sample formats * * - The data described by the sample format is always in native-endian order. * Sample 阅读全文
posted @ 2021-12-04 01:11 flxx 阅读(566) 评论(0) 推荐(0) 编辑
摘要: 用于存储压缩编码后的相关数据信息的结构体 结构体说明 /** * This structure stores compressed data. It is typically exported by demuxers * and then passed as input to decoders, o 阅读全文
posted @ 2021-12-03 00:15 flxx 阅读(604) 评论(0) 推荐(0) 编辑
摘要: 结构体说明 原始数据的相关信息结构体 /** * This structure describes decoded (raw) audio or video data. * 此结构描述解码后的(未编码前的)原始音频或者视频数据 * AVFrame must be allocated using av 阅读全文
posted @ 2021-12-03 00:15 flxx 阅读(430) 评论(0) 推荐(0) 编辑
摘要: [toc] ## `AVFormatContext` 表示一个媒体文件或者媒体流的封装格式文件信息 ==重要信息== 1. 封装格式信息 2. 媒体数据信息 3. 编码信息 ```c /** * Format I/O context. * New fields can be added to the 阅读全文
posted @ 2021-12-03 00:10 flxx 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 整体结构 模块 AVUtil:==核心工具库==,该模块是最基础的模块,许多其他的模块都会依赖该库做一些基本的音视频处理。 AVFormat:==文件格式和协议库==,该模块是最重要的模块之一,封装了Protocol层和Demuxer,Muxer层,使得协议和格式对于开发者来说是透明的。 AVCod 阅读全文
posted @ 2021-12-02 00:34 flxx 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 目录容器/文件媒体流数据帧/数据包编解码器常用视频压缩算法常见音频压缩算法音频声波三要素数字音频PCM描述视频1. 分辨率2. 码率:kb/s3. 帧率:fps4. IPB帧音视频同步 容器/文件 封装格式(也叫做容器)就是将已经编码压缩好的视频流,音频流及字幕按照一定的方案放到一个文件中,便于播放 阅读全文
posted @ 2021-11-30 23:55 flxx 阅读(480) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页