the fuction cvCreateFileCapture return 0 on Opencv 2.4.9 (Bug #4078)


Added by 若然 陈 about 10 years ago. Updated over 9 years ago.


Status:New Start date:2014-12-19
Priority:Low Due date:
Assignee:- % Done:

0%

Category:highgui-video
Target version:-
Affected version:2.4.9 (latest release) Operating System:Windows
Difficulty: HW Platform:x64
Pull request:

Description

The function failed and cannot play video when I was opening the AVI File, So I Stepped into the function by VS2010 debugger,and found out that it just called the cvCreateFileCapture_FFMPEG_proxy funtion return 0(failed). then it called cvCreateFileCapture_Images this function,What a pity is that cvCreateFileCapture_Images also failed.Especially,if the filename contains chinese character ,the icvExtractPattern would crash in Debug mode.

But, The function succeed and play video sucessfully if I was using Opencv 2.4.6 version.

Is it a Bug of opencv?


main.cpp - Test sapmle (1.4 kB) 若然 陈, 2014-12-19 11:07 am


History

Updated by Artur Wieczorek about 10 years ago

From what you've described it seems that your library is built with HAVE_VFW and HAVE_MSMF options disabled.
Please try to enable these options when building the library and check if this helps.
If not, please provide a link to the sample avi file causing the problem (or attach the smallest possible part of it).

Updated by Vadim Pisarevsky almost 10 years ago

  • Priority changed from Normal to Low
  • Category set to highgui-video

Updated by Maksim Shabunin over 9 years ago

Issue has been transferred to GitHub: https://github.com/Itseez/opencv/issues/4888

Also available in: Atom PDF