Affectiva情感SDK - 无法使用VideoDetector处理webm文件 [英] Affectiva emotion SDK - Unable to process a webm file using VideoDetector
问题描述
我目前正在使用Windows SDK开发一个程序。
I am currently developing a program using the Windows SDK.
我正在尝试将.webm文件提供给SDK,但我得到了以下错误:
I'm trying to feed a ".webm" file into the SDK, but I'm getting the following error:
Encountered an AffdexException Error opening video file: C:\1.webm
Source: __thiscall FileVideoCapture::FileVideoCapture(const class boost::filesystem::path &,const float)(C:\Jenkins\workspace\affdexface-win32\src\modules\utils\FileVideoCapture.cpp LINE 12)
当我使用 .process(path_to_file)$时会发生这种情况c $ c>
VideoDetector
类的方法。
我猜它与OpenCV有关,因为VideoCapture类是OpenCV的一部分。
I'm guessing it has something to do with OpenCV because the VideoCapture class is apart of OpenCV.
任何帮助都将不胜感激!
Any help would be greatly appreciated!
推荐答案
VideoDetector
类使用FFmpeg来访问视频编解码器。
The VideoDetector
class uses FFmpeg in order to access video codecs.
请确保应用程序可以加载 opencv_ffmpeg.dll
,方法是将其复制到应用程序二进制文件夹或将其添加到应用程序二进制文件夹中您的 PATH
环境变量。
Please make sure that the opencv_ffmpeg.dll
is loadable by your application either by copying it to your application binary folder or by adding it’s location to your PATH
environment variable.
dll包含在bin目录下的sdk存档中。
The dll is included in the sdk archive under the bin directory.
这篇关于Affectiva情感SDK - 无法使用VideoDetector处理webm文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!