AVFormatContext
来源:互联网 发布:java程序培训学校 编辑:程序博客网 时间:2024/06/07 21:21
这是个结构体,描述了一个媒体文件或媒体流的结构和基本信息;
这是ffmpeg中最为基本的一个结构,是其他所有结构的根,是一个多媒体文件或流的根本抽象;
它是FFMPEG解封装(flv,mp4,rmvb,avi)功能的结构体;
下面看几个主要变量的作用(在这里考虑解码的情况)
AVIOContext *pb:输入数据的缓存
unsigned int nb_streams:视音频流的个数
AVStream **streams:视音频流
char filename[1024]:文件名
int64_t duration:时长(单位:微秒us,转换为秒需要除以1000000)
int bit_rate:比特率(单位bps,转换为kbps需要除以1000)
AVDictionary *metadata:元数据
视频的原数据(metadata)信息可以通过AVDictionary获取。元数据存储在AVDictionaryEntry结构体中,如下所示
typedef struct AVDictionaryEntry
{
char *key;
char*value
}AVDictionaryEntry;
在ffmpeg中通过av_dict_get()函数获得视频的原数据
0 0
- AVFormatContext
- AVFormatContext
- AVFormatContext
- AVFormatContext
- ffmpeg数据结构-AVFormatContext
- FFMPEG-AVFormatContext结构详解
- AVFormatContext结构体
- AVFormatContext结构体
- FFmpeg之AVFormatContext
- FFMPEG-数据结构(AVCodecContext,AVStream,AVFormatContext)
- FFmpeg中结构体AVFormatContext
- FFMPEG结构体分析:AVFormatContext
- 动态识别AVInputFormat 与 AVFormatContext
- FFMPEG结构体分析:AVFormatContext
- FFMPEG结构体分析:AVFormatContext
- FFMPEG结构体分析:AVFormatContext
- FFMPEG结构体分析 AVFormatContext
- FFMPEG结构体分析:AVFormatContext
- 《将博客搬至CSDN》
- 使用atos和错误堆栈内存地址定位崩溃代码位置
- myeclipse导出Java项目(含外部jar包)
- 数据库连接池优化配置(druid,dbcp,c3p0)
- Error:No such property: POM_ARTIFACT_ID for class: org.gradle.api.publication.maven.internal.deploye
- AVFormatContext
- 面向对象设计原则之迪米特原则
- 分支界限法
- zabbix之日志文件监控
- Java服务器端+Android端(验证用户登录)
- react native Text 使用详解
- Android报错:Caused by: java.lang.IllegalArgumentException: Service Intent must be explicit: Intent
- 南阳理工ACM 题目252 01串
- 使用内置的Camera应用程序捕获图像