美文网首页
ffmpeg中比较方便的函数

ffmpeg中比较方便的函数

作者: 技术笔记 | 来源:发表于2019-11-05 09:57 被阅读0次

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);

相关文章

网友评论

      本文标题:ffmpeg中比较方便的函数

      本文链接:https://www.haomeiwen.com/subject/eifsbctx.html