首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >GCC -如何编译FFMpeg与FLV1 (又名H.263),MP3 (格式和编解码)和FLV (容器格式)?

GCC -如何编译FFMpeg与FLV1 (又名H.263),MP3 (格式和编解码)和FLV (容器格式)?
EN

Stack Overflow用户
提问于 2011-06-10 11:07:58
回答 1查看 968关注 0票数 1

因此,我希望编译FFMpeg C库(作为静态库),并不是在其完全默认的荣耀中,而是为了我的目的--这样它将包含:

  • 2种编解码格式MP3和FLV1 (H.263)
  • 2文件(容器)格式MP3和FLV

当然,我只想限制格式和编解码器的范围。不是FFmpeg的函数。

怎么做这样的事?

我的主要观点是:

让这样的人建立当我调用函数时

代码语言:javascript
运行
复制
multiplexer::multiplexer(std::string container)
{
        av_register_all();

        this->format_context = avformat_alloc_context();
        if (this->format_context == NULL)
        {
                std::cout << "Multiplexer: format context is empty." << std::endl;
                throw internal_exception();
        }

        this->format_context->oformat = av_guess_format(container.c_str(), NULL, NULL);
        if (this->format_context->oformat == NULL)
        {
                std::cout << "Multiplexer: invalid container format (" << container << ")." << std::endl;
                throw internal_exception();
        }
}

我只限于FLV

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-06-10 11:44:00

configure脚本有一个选项列表。运行./configure --help来查看它们。我不知道选项堆栈是如何实现的,但是您可以尝试使用--disable-everything,然后是--enable-demuxer=flv等等。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/6305488

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档