Skip to content Skip to sidebar Skip to footer

Could Not Open Codec 'libopenh264': Unspecified Error

I am using OpenCV to process videos for my research. I have Python 2.7 and OpenCV 3.2 versions installed on Windows 10. When I do background subtraction on a video in Python using

Solution 1:

The error message you are getting says that openCV can't load the H264 codec. H264 doesn't come by default with the default installation of openCV.

To add the H264 codec download 'openh264-1.6.0-win64msvc.dll.bz2' from https://github.com/cisco/openh264/releases/tag/v1.6.0.

Extract the file and move the extracted DLL to the same directory as your python file. OpenCV should now be able to find the DLL and load the H264 codec.

Note that in your error message, openCV is looking for the openh264-1.6.0-win64msvc.dll (failed to load: openh264-1.6.0-win64msvc.dll.bz2) which is what we have now provided.


Post a Comment for "Could Not Open Codec 'libopenh264': Unspecified Error"