当前位置:网站首页>Key structure of ffmpeg - avformatcontext
Key structure of ffmpeg - avformatcontext
2022-07-06 00:01:00 【Chen Xiaoshuai HH】
One 、AVFormatContext Structure
AVFormatContext It is a structure that stores the information contained in the audio and video packaging format , It's also FFmpeg The structure that dominates the overall situation , Encapsulation of documents 、 The coding operation starts from here .
The definition of a structure lies in libavformat Medium avformat.h
Two 、 Common variables
struct AVInputFormat *iformat;// Encapsulation format of input data . Only for unpacking , from avformat_open_input() Set up .
struct AVOutputFormat *oformat;// Encapsulation format of output data . For packaging only , The caller is avformat_write_header() Set before .
AVIOContext *pb;// I/O Context .
decapsulation : By user on avformat_open_input() Set before ( Then the user must turn it off manually ) Or through avformat_open_input() Set up .
encapsulation : By user on avformat_write_header() Set before . The caller must pay attention to closing / Release IO Context .
unsigned int nb_streams;//AVFormatContext.streams The number of elements in .
AVStream **streams;// List of all streams in the file .
char filename[1024];// Input / output file name .
int64_t start_time;// The position of the first frame .
int64_t duration;// Duration of flow
int64_t bit_rate;// Total stream bit rate (bit / s), If not available 0.
int64_t probesize;
// The maximum size of the data read from the input to determine the format of the input container .
For packaging only , By the caller at avformat_open_input() Set before .
AVDictionary *metadata;// Metadata
AVCodec *video_codec;// Video codec
AVCodec *audio_codec;// Audio codec
AVCodec *subtitle_codec;// Letter codec
AVCodec *data_codec;// Data codec
int (*io_open)(struct AVFormatContext *s, AVIOContext **pb, const char *url, int flags, AVDictionary **options);
// open IO stream Callback function for .
void (*io_close)(struct AVFormatContext *s, AVIOContext *pb);
// Turn off use AVFormatContext.io_open() Callback function of the open stream .
边栏推荐
- Online yaml to CSV tool
- My colleagues quietly told me that flying Book notification can still play like this
- 多普勒效應(多普勒頻移)
- 亲测可用fiddler手机抓包配置代理后没有网络
- 传输层协议------UDP协议
- Use CAS instead of synchronized
- CAS and synchronized knowledge
- 18.(arcgis api for js篇)arcgis api for js点采集(SketchViewModel)
- wx.getLocation(Object object)申请方法,最新版
- 15 MySQL stored procedures and functions
猜你喜欢

【NOI模拟赛】Anaid 的树(莫比乌斯反演,指数型生成函数,埃氏筛,虚树)

China Jinmao online electronic signature, accelerating the digitization of real estate business

零犀科技携手集智俱乐部:“因果派”论坛成功举办,“因果革命”带来下一代可信AI

PV static creation and dynamic creation

数据库遇到的问题

多普勒效應(多普勒頻移)

FFMPEG关键结构体——AVFormatContext

MySQL之函数

软件测试工程师必会的银行存款业务,你了解多少?

Fiddler Everywhere 3.2.1 Crack
随机推荐
Chapter 16 oauth2authorizationrequestredirectwebfilter source code analysis
2022.7.5-----leetcode.729
QT QPushButton details
5. Logistic regression
Redis high availability - master-slave replication, sentinel mode, cluster
时区的区别及go语言的time库
Senparc. Weixin. Sample. MP source code analysis
GD32F4xx uIP协议栈移植记录
【luogu CF487E】Tourists(圆方树)(树链剖分)(线段树)
PV static creation and dynamic creation
Learn PWN from CTF wiki - ret2libc1
N1 # if you work on a metauniverse product [metauniverse · interdisciplinary] Season 2 S2
Spire. PDF for NET 8.7.2
[Luogu p3295] mengmengda (parallel search) (double)
【EF Core】EF Core与C# 数据类型映射关系
15 MySQL stored procedures and functions
Bao Yan notebook IV software engineering and calculation volume II (Chapter 8-12)
shardingsphere源码解析
After summarizing more than 800 kubectl aliases, I'm no longer afraid that I can't remember commands!
wx. Getlocation (object object) application method, latest version