当前位置:网站首页>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 .
边栏推荐
- QT QPushButton details
- QT a simple word document editor
- 软件测试工程师必会的银行存款业务,你了解多少?
- 2022.7.5-----leetcode.729
- Tips for using pads router
- JS can really prohibit constant modification this time!
- Make a short video clip number of we media film and television. Where can I download the material?
- 从底层结构开始学习FPGA----FIFO IP核及其关键参数介绍
- 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?
- Mathematical model Lotka Volterra
猜你喜欢

FFMPEG关键结构体——AVFormatContext

Bao Yan notebook IV software engineering and calculation volume II (Chapter 8-12)

Permission problem: source bash_ profile permission denied

同事悄悄告诉我,飞书通知还能这样玩

权限问题:source .bash_profile permission denied

认识提取与显示梅尔谱图的小实验(观察不同y_axis和x_axis的区别)

wx. Getlocation (object object) application method, latest version

PV static creation and dynamic creation
![N1 # if you work on a metauniverse product [metauniverse · interdisciplinary] Season 2 S2](/img/f3/8e237296f5948dd0488441aa625182.jpg)
N1 # if you work on a metauniverse product [metauniverse · interdisciplinary] Season 2 S2

Detailed explanation of APP functions of door-to-door appointment service
随机推荐
Fiddler Everywhere 3.2.1 Crack
JS can really prohibit constant modification this time!
FFMPEG关键结构体——AVCodecContext
Teach you to run uni app with simulator on hbuilderx, conscience teaching!!!
7.5 simulation summary
【二叉搜索树】增删改查功能代码实现
【luogu CF487E】Tourists(圆方树)(树链剖分)(线段树)
Zhongjun group launched electronic contracts to accelerate the digital development of real estate enterprises
从底层结构开始学习FPGA----FIFO IP核及其关键参数介绍
关于结构体所占内存大小知识
QT a simple word document editor
15 MySQL-存储过程与函数
18.(arcgis api for js篇)arcgis api for js点采集(SketchViewModel)
My colleagues quietly told me that flying Book notification can still play like this
C# 反射与Type
【EF Core】EF Core与C# 数据类型映射关系
DEJA_VU3D - Cesium功能集 之 055-国内外各厂商地图服务地址汇总说明
什么叫做信息安全?包含哪些内容?与网络安全有什么区别?
PV静态创建和动态创建
Add noise randomly to open3d point cloud