AVFormatContext
2017-02-06 17:06:54 0 举报
AI智能生成
AVFormatContext是FFmpeg中用于封装多媒体数据的容器,它包含了多媒体文件的格式信息、流信息以及解码所需的相关信息。通过AVFormatContext可以对多媒体数据进行读取、解封装等操作。在使用FFmpeg处理多媒体数据时,首先需要创建一个AVFormatContext对象,然后通过该对象打开多媒体文件,获取文件的格式信息和流信息,最后对流进行解码和处理。AVFormatContext是一个非常重要的数据结构,它是FFmpeg中其他模块的基础,也是实现多媒体数据处理的关键。
作者其他创作
大纲/内容
AVInputFormat
AVIOContext
int nb_streams
AVStream **streams
fileName
start_time
duration
bit_rate
AVDictionary *metadata
start_time_realtime
name
long_name
flag
extensions
index
AVCodecContext *codec
AVRational time_base
int64_t start_time
int64_t duration
int64_t nb_frames
AVCodec *avcodec
name
long name
AVRational avg_frame_rate
AVMediaType codec_type
int bit_rate
uint8_t *extradata;int extradata_size
AVRational time_base
int width, height
int refs
int sample_rate
int channels
AVSampleFormat sample_fmt
AVMediaType codec_type
AVCodecId id
AVRational *supported_framerates
AVPixelFormat pix_fmts
int *supported_samplerates
AVSampleFormat *sample_fmts
uint64_t *channel_layout
int pro_data_size
unsigned char* buffer
int buffer_size
unsigned char *buf_ptr
unsigned char* but_end
void *opaque
AVFrame
uint8_t *data
int linesize
int width, height
int nb_samples
int format
int key_frame
AVPictureType pict_type
AVRational sample_aspect_ration
int64_t pts
int coded_picture_number
int display_picture_number
AVPacket
uint8_t *data
int size
int64_t pts
int64_t dts
int stream_index
0 条评论
下一页