繁体   English   中英

FFmpeg编译作品错误

[英]FFmpeg compile opus error

我正在按照本教程使用Microsoft的编译器静态构建FFmpeg(不需要DLL): http : //cristobaldobranco.github.io/blog/2015/01/20/compiling-ffmpeg-with-windows-tools/

但是,在尝试编译此代码时遇到了麻烦:

#pragma comment (lib, "libavformat.a")
#define __STDC_CONSTANT_MACROS

extern "C" {
    #include <libavformat/avformat.h>
}

int main() {
    av_register_all();
    return 0;
}

它似乎能够找到头文件和库文件,但是我收到关于opus的奇怪错误:

作品错误

这是我的MSYS命令:

cd C:/Libs/ffmpeg
./configure --toolchain=msvc --arch=x86 --prefix=build/ --disable-network
make
make install

如何摆脱这些错误?

Opus使用一些重采样功能,因此在链接到libavcodec.a(在libavformat.a中使用)时,需要链接到libswresample.a。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM