ffmpeg中AVCodecContext的codec_id, profile,codec_type可以方便的转换为字符串,在一些地方需要从id到可读性强的string,方便很多。
av_string函数中这三行:
codec_type = av_get_media_type_string(enc->codec_type);
codec_name = avcodec_get_name(enc->codec_id);
profile = avcodec_profile_name(enc->codec_id, enc->profile);














网友评论