ffmpeg包含问题-缺少一些功能
ffmpeg include issue - some functions are missing
由于FFMPEG,我尝试遵循并调整此示例以转换视频,但似乎缺少一些功能,如:
int avcodec_open ( AVCodecContext * avctx, AVCodec * codec)
当我进入文档查看它的来源时,我会在文件libavcodec/avcodec.h
中找到它,该文件包含在我的程序#include "libavcodec/avcodec.h"
中(在我的.h
文件的顶部)。
鉴于此,我不明白为什么Qt会给我这个错误:
../../Dev/Joker/libs/PhVideo/PhVideoEncoder.cpp:360:6: error: use of undeclared identifier 'avcodec_open'
if (avcodec_open(c, codec) < 0) {
avcodec_open
已被弃用,并在较新版本的FFMPEG中被avcodec_open2
取代。
请参阅最新文档,此处和此处
相关文章:
- C 函数调用包装器包含类成员功能作为模板参数
- 传递多个参数的功能,该函数将类包含到其他函数
- 如何构建包含CUDA功能和C 模板功能的代码
- 我如何在TMB .CPP文件中包含更多目标功能
- 静态初始化包含功能指针的对象的constexpr std ::数组
- 调用C 功能,其中包含来自C的STL数据类型
- 如何将我的C 程序分为包含普通代码行的文件,不一定功能
- 包含开关的功能在C 中不扩展内联
- 调用包含C#功能指针的DLL函数
- enable_if有条件地包含成员功能
- 为什么在操纵函数名称中包含C 功能模板实例的返回类型
- 如何对包含 pair<int,int> 元素的向量进行排序?排序是根据比较功能完成的
- 二叉搜索树包含功能
- CLion IDE包含ReSharper C++在Visual Studio下提供的所有功能吗
- 包含的功能在以后的范围内不可用
- C++ 使用包含不同类型功能对象的基和派生类的 Reactor
- ffmpeg包含问题-缺少一些功能
- "Undefined symbols for architecture x86_64"尝试包含另一个文件中的功能
- 在c++中包含c头文件,同时保持功能
- 如何找出哪个.dylib文件包含某个boost功能?