GCC-如何使用FLV1(又名H.263)、MP3(格式和编解码器)和FLV(容器格式)编译FFMpeg
GCC - how to compile FFMpeg with FLV1 (aka H.263), MP3 (format and codec) and FLV (container format) only?
所以我想编译FFMpeg C库(作为静态库),而不是完全默认的荣耀,只是为了我的目的-这样它就会包含:
- 2种编解码器格式MP3和FLV1(H.263)
- 2个文件(容器)格式MP3和FLV
当然,我只想限制格式和编解码器的范围。不是FFmpeg的功能。
怎么做这样的事?
我的主要观点是什么:
当我调用这样的函数时,要构建这样的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
configure
脚本有一个选项列表。运行./configure --help
查看它们。我不确定选项是如何堆叠的,但你可以先尝试--disable-everything
,然后再尝试--enable-demuxer=flv
等。
相关文章:
- 如何在openssl-ecc中获取十六进制格式的私钥
- 将"打开的CV图像"中的"颜色"转换为整数格式
- FFmpeg:制作一个应用程序比直接使用ffmepg更好吗
- TDateTime格式在C++Builder中不会更改
- 如何防止clang格式在流运算符调用之间添加换行符<<
- 检查不带转换的扫描格式
- 当我尝试使用 sstream 和分面将 Boost Time_duration转换为字符串时,我没有得到所需的格式
- 是否可以从格式字符串中检索"width"
- 使用FFMPEG将RGB图像序列保存到.mp4时出现问题
- clang格式:宏的缩进
- clang格式:禁用排序包含
- 在用于格式4的arm模拟器中实现功能时的一个问题
- 将RGB图像保存为PPM格式
- OpenCV:FFMPEG:编解码器 ID 12 和格式 'mp4 / MP4 不支持标记
- 使用C++解码为ffmpeg中的特定像素格式
- C OPENCV 3.4 / FFMPEG 3.4.1 VIDEOWRITER和MP4输出文件格式
- FFMpeg与OpenCV的格式转换/简单转换
- ffmpeg avcodec_open2更改了AVCodecContext中的音频格式
- 获取ffmpeg格式的帧时间
- GCC-如何使用FLV1(又名H.263)、MP3(格式和编解码器)和FLV(容器格式)编译FFMpeg