ffmpeg dlls shipped with v2.4.7 incompatible with python module (Bug #3395)


Added by Daniel Sturm over 11 years ago. Updated over 11 years ago.


Status:Done Start date:2013-11-25
Priority:Normal Due date:
Assignee:Victor Kocheganov % Done:

100%

Category:build/install
Target version:-
Affected version:2.4.7 (latest release) Operating System:Windows
Difficulty: HW Platform:x64
Pull request:

Description

System information:
Windows 7 x64 SP1
Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32
opencv 32bit 2.4.7

Steps to reproduce:
copy build/python/x86/cv2.pyd to PYTHON/lib/site-packages
set environment path to include opencv_ffmpeg247.dll (tried both vc10, vc11 versions in build directory, as well as the one in sources/3rdparty/ffmpeg; also tried all conceivable naming schemes to be on the safe side too, i.e. ffmpeg.dll, ffmpeg247.dll, opencv_ffmpeg.dll, opencv_ffmpeg247.dll for all those dlls)

Expect the following program
capture = cv2.VideoCapture("cube4.avi") # or path to any other avi
print capture.isOpened()
to return true.

Actual Result: False. Unencoded raw files on the other hand work fine as expected.

The same steps work fine under OpenCV 2.4.5 so I assume the dlls included are for one reason or the other incompatible with the compiled python module.


History

Updated by Roman Donchenko over 11 years ago

The 32-bit FFmpeg DLL shipped with 2.4.7 has a broken dependency, unfortunately, so it won't load. Try to replace it with the one we have in the repo right now: https://github.com/Itseez/opencv/blob/2.4/3rdparty/ffmpeg/opencv_ffmpeg.dll.

Updated by Victor Kocheganov over 11 years ago

  • Assignee set to Daniel Sturm
  • Category set to build/install

Updated by Steven Puttemans over 11 years ago

Hi Viktor,

Since the correct dll is supplied in the current 2.4 branch, this can be closed right?
Reopen if i am not correct about this :)

  • % Done changed from 0 to 100
  • Assignee changed from Daniel Sturm to Victor Kocheganov
  • Status changed from New to Done

Also available in: Atom PDF