现在的位置: 首页 > 综合 > 正文

ffmpeg开发手册

2013年08月31日 ⁄ 综合 ⁄ 共 1126字 ⁄ 字号 评论关闭

ffmpeg初始化

av_register_all();

说明:注册全部的文件格式和编码器;

 

avcodec_open();

打开可以选择的编码器和解码器

 

avcodec_close();

av_open_input_file();

av_find_input_format();

av_find_stream_info();

av_close_input_file();

 

ffmpeg之文件操作:

说明:从视频流中读取一帧数据;文件中包含视频流和音频流,它们以包的形式存在。

 

 

av_write_frame();

dump_format();

 

ffmpeg之音视频解码器

与ffmpeg音视频处理相关的主要函数:

avcodec_find_decoder();

avcodec_alloc_frame();

avpicture_get_size();

avpicture_fill();

img_convert();

avcodec_alloc_context();

avcodec_decode_audio();

avcodec_decode_video();

av_free_packet();

av_free();

 

ffmpeg之其他函数参考:

avpicture_deinterlace();

 

ffmpeg之重要数据结构参考:

AVFormatContext

这个结构体会记录有关Format的许多信息,在面向文件格式的时候,这是一个主要的结构体。

AVFormatParameters

AVCodecContext

AVCodec

AVFrame

AVPacket

AVPicture

AVStream

 

ffmpeg之其他数据结构参考

其它相关的比较重要的数据结构:

ImgReSampleContext

 

抱歉!评论已关闭.