首页 > 其他 > 详细

ffmpeg.转换示例_处理流程

时间:2020-01-21 13:42:11      阅读:81      评论:0      收藏:0      [点我收藏+]

1、示例的代码:SH:E:\Project_VS17\ffmpeg_test_vc2017\ffmpeg_test_vc2017\4_x\4x_convert_test.cpp 和 4x_convert_test.h (已上传git)

函数				API

			av_register_all();
			avfilter_register_all();


open_input_file
			avformat_open_input
			avformat_find_stream_info
			av_mallocz_array

			for
				avcodec_find_decoder
				avcodec_alloc_context3
				avcodec_parameters_to_context
				avcodec_open2

			av_dump_format


open_output_file
			avformat_alloc_output_context2
			for
				avformat_new_stream
				avcodec_find_encoder
				avcodec_alloc_context3
				av_inv_q

				av_get_channel_layout_nb_channels

				avcodec_open2
				avcodec_parameters_from_context

				avcodec_parameters_copy

			av_dump_format

			avio_open

			avformat_write_header


init_filters
			av_malloc_array

			init_filter
					avfilter_inout_alloc
					avfilter_graph_alloc

					avfilter_get_by_name
					avfilter_graph_create_filter
					av_opt_set_bin

					avfilter_get_by_name
					av_get_default_channel_layout
					avfilter_graph_create_filter
					av_opt_set_bin

					avfilter_graph_parse_ptr
					avfilter_graph_config

					avfilter_inout_free


while
	av_read_frame
	av_frame_alloc
	av_packet_rescale_ts
	dec_func
	av_frame_free

	av_packet_rescale_ts
	av_interleaved_write_frame

	av_packet_unref

for
	filter_encode_write_frame
	flush_encoder

av_write_trailer



av_packet_unref
av_frame_free
for
	avcodec_free_context
	avfilter_graph_free

av_free
avformat_close_input
avio_closep
avformat_free_context

 

2、

3、

4、

5、

ffmpeg.转换示例_处理流程

原文:https://www.cnblogs.com/cppskill/p/12221036.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!