warning old api log:
“ warning: ‘AVStream::codec’ is deprecated (declared at /usr/local/ffmpeg/include/libavformat/avformat.h:880) [-Wdeprecated-declarations]
对比图标
av_bitstream_filter_init("h264_mp4toannexb") | av_bsf_get_by_name("h264_mp4toannexb"); |
av_bitstream_filter_filter | av_bsf_send_packet,av_bsf_receive_packet |
avcodec_copy_context | avcodec_parameters_to_context和avcodec_parameters_from_context所替代 |
下面是api 作用说明和使用:
avformat_ 开头是文件相关操作;avcodec_开头是codec操作.
件和codec操作方法类似,先open,然后操作context.
avformat_open_input 打开各种文件或者流媒体协议;
avformat_new_stream