重要结构体
AVFormatContext
AVCodecContext
0.公共部分
av_register_all();
avfilter_register_all();
avformat_network_init();
avdevice_register_all();
av_log_set_level(AV_LOG_ERROR);
1.input部分
avformat_alloc_context
av_find_input_format
avformat_open_input
avformat_find_stream_info
avcodec_find_decoder
avcodec_open2
av_read_frame
avcodec_decode_video2
avformat_close_input
2.output部分
avformat_alloc_output_context2
avio_open2
avcodec_find_encoder
avcodec_alloc_context3
avcodec_open2
avformat_new_stream
avcodec_copy_context
avformat_write_header
avcodec_encode_video2
av_interleaved_write_frame
av_write_trailer
avcodec_close
avformat_close_input