当前位置:网站首页>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 .
边栏推荐
- 用列錶初始化你的vector&&initializer_list簡介
- [online chat] the original wechat applet can also reply to Facebook homepage messages!
- Determinant learning notes (I)
- 传输层协议------UDP协议
- Rsync remote synchronization
- [gym 102832h] [template] combination lock (bipartite game)
- China Jinmao online electronic signature, accelerating the digitization of real estate business
- Make a short video clip number of we media film and television. Where can I download the material?
- PV static creation and dynamic creation
- 14 MySQL-视图
猜你喜欢

Upgrade openssl-1.1.1p for openssl-1.0.2k

What if the C disk is not enough? Let's see how I can clean up 25g of temp disk space after I haven't redone the system for 4 years?
![Choose to pay tribute to the spirit behind continuous struggle -- Dialogue will values [Issue 4]](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
Choose to pay tribute to the spirit behind continuous struggle -- Dialogue will values [Issue 4]

MySql——CRUD

Miaochai Weekly - 8

选择致敬持续奋斗背后的精神——对话威尔价值观【第四期】

Spire. PDF for NET 8.7.2

The difference of time zone and the time library of go language

Research notes I software engineering and calculation volume II (Chapter 1-7)

多普勒效应(多普勒频移)
随机推荐
Transport layer protocol ----- UDP protocol
CloudCompare&PCL 点云随机添加噪声
Zero rhino technology joined hands with the intelligence Club: the "causal faction" forum was successfully held, and the "causal revolution" brought the next generation of trusted AI
What is a humble but profitable sideline?
FFmpeg学习——核心模块
从底层结构开始学习FPGA----FIFO IP核及其关键参数介绍
Wechat applet -- wxml template syntax (with notes)
什么叫做信息安全?包含哪些内容?与网络安全有什么区别?
How to get all the values stored in localstorage
Online yaml to CSV tool
Spire Office 7.5.4 for NET
Make a short video clip number of we media film and television. Where can I download the material?
Shardingsphere source code analysis
QT QPushButton details
What if the C disk is not enough? Let's see how I can clean up 25g of temp disk space after I haven't redone the system for 4 years?
My colleagues quietly told me that flying Book notification can still play like this
【DesignMode】适配器模式(adapter pattern)
Fiddler Everywhere 3.2.1 Crack
【在线聊天】原来微信小程序也能回复Facebook主页消息!
20220703 week race: number of people who know the secret - dynamic rules (problem solution)