c - 在 CodeBlocks 中运行 ffmpeg 示例 c 程序时无法识别文件格式

标签 c ffmpeg video-streaming codeblocks

我是ffmpeg新手,目前正在测试ffmepg的编码/解码功能。我打开ffmeg/example/decoding_encoding.c代码块中的文件和链接的相关库。但是构建时却出现错误:

||=== Build: Debug in c_official_ffmepg (compiler: GNU GCC Compiler) ===|

ld cannot find ../../opencv-2.4.10/build/include: File format not recognized

||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|

什么原因导致这个错误?如何解决?

最佳答案

这可能来自于错误的 CodeBlocks 配置,您的问题似乎与此类似 post :

Right-click your header file,
select properties,
choose the Build tab,
and uncheck the "Compile file" and "Link file" options.

Do this for each header file. You should only ever use the Compile option on a header if you specifically want it to be used as a precompiled header, and you should never use the Link option for a header.

关于c - 在 CodeBlocks 中运行 ffmpeg 示例 c 程序时无法识别文件格式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29139374/

相关文章:

c - 如何有效比较两个网络字节序 u16 或 u32

c++ - libvlc 检查媒体位置是否有效

audio - 如何使用 Vapoursynth 将音频发送到 FFMPEG?

c - 如何使用 ffmpeg 库从视频中提取灰度图像?

java - 开发WEB视频 session 应用需要的技术栈?

android - 如何避免 Android 中的 session 超时

c - winapi c - 读/写系统驱动器的 mbr

c - 我的与链表有关的 C 程序出了什么问题?

video - 贿赂之间的 FFmpeg Concat 伪影

html - 移动 HTML5 视频格式、视频大小和 FPS