简体   繁体   English

在OpenCV中播放视频时,libiconv-2.dll错误

[英]libiconv-2.dll error while playing video in OpenCV

I tried to play a video using OpenCV-2.4.7 in Visual Studio 2010, Win 7 我尝试在Visual Studio 2010 Win 7中使用OpenCV-2.4.7播放视频

Code is as follow- 代码如下

#include<opencv\cv.h>
#include <opencv\highgui.h>

using namespace cv;

int main( int argc, char** argv ) {
    cvNamedWindow( "Window", CV_WINDOW_AUTOSIZE );
    CvCapture* capture = cvCreateFileCapture( "C:/Users/17/Desktop/Wildlife.avi" );
    IplImage* frame;

    while(1) {
        frame = cvQueryFrame( capture );
        if( !frame ) break;
        cvShowImage( "Window", frame );
        char c = cvWaitKey(33);
        if( c == 27 ) break;
    }
    cvReleaseCapture( &capture );
    cvDestroyWindow( "Window" );
}

Debugs is fine but on running, a waring window opens saying "The program can't start because libiconv-2.dll is missing from your computer" . 调试很好,但是在运行时,会打开一个警告窗口,显示“该程序无法启动,因为您的计算机缺少libiconv-2.dll”

I tried to download libiconv-2.dll into system package then it showed the error "C:\\Windows\\System32\\libiconv-2.dll', Binary was not built with debug information". 我尝试将libiconv-2.dll下载到系统软件包中,然后显示错误“ C:\\ Windows \\ System32 \\ libiconv-2.dll',二进制文件未使用调试信息构建”。

Is there any possible missing setting?? 是否有可能缺少任何设置? what should be done to run this code? 如何执行此代码?

It's an issue with opencv_ffmpeg247.dll in the latest release (2.4.7) as described here 这是最新版本(2.4.7)中opencv_ffmpeg247.dll的问题,如此处所述

I'm having the same issue, though with the fix earmarked for 2.4.8 I'd suggest either installing an earlier version (2.4.6) or using the latest copy from the repo here 我遇到了同样的问题,尽管已将修复指定为2.4.8,但我建议您安装早期版本(2.4.6)或在此处使用仓库中的最新副本

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

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