因此,我希望编译FFMpeg C库(作为静态库),并不是在其完全默认的荣耀中,而是为了我的目的--这样它将包含:
当然,我只想限制格式和编解码器的范围。不是FFmpeg的函数。
怎么做这样的事?
我的主要观点是:
让这样的人建立当我调用函数时
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
发布于 2011-06-10 11:44:00
configure
脚本有一个选项列表。运行./configure --help
来查看它们。我不知道选项堆栈是如何实现的,但是您可以尝试使用--disable-everything
,然后是--enable-demuxer=flv
等等。
https://stackoverflow.com/questions/6305488
复制相似问题