- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm on windows 10 (64 bit) and finally got OpenVino installed and working correctly using the windows installation tool. I had to run the "setupvars.bat" batch program and then see the resulting environment variables to set manually at the system level for it to work. I also installed Python 3.8.10. Before i started i removed anything remotely connected to prior OpenCV installations.
when i try to create a VideoWriter object using....
fourcc = cv2.VideoWriter_fourcc( 'M', 'J', 'P', 'G')
out = cv2.VideoWriter('Videos\driveway.avi', fourcc, 20.0, (640, 480))
MFX: Can't initialize session
[ERROR:0] global C:\jenkins\workspace\OpenCV\OpenVINO\2021.4\build\windows\opencv\modules\videoio\src\cap.cpp (589) cv::VideoWriter::open VIDEOIO(CV_IMAGES): raised OpenCV exception:
OpenCV(4.5.3-openvino) C:\jenkins\workspace\OpenCV\OpenVINO\2021.4\build\windows\opencv\modules\videoio\src\cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find
starting number (in the name of file): Videos\driveway.avi in function 'cv::icvExtractPattern'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
** SOLVED **
For whatever reason the OpenVino windows installed failed to install a few dlls/libs. From the opencv folder there is a POWERSHELL script called ffmpeg-download.ps1 that needs to be run that will install the missing files. Not sure why there is a script to do this and maybe that script wasn't executed during the install?
Regardless run that script and you'll get past this problem...
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
** SOLVED **
For whatever reason the OpenVino windows installed failed to install a few dlls/libs. From the opencv folder there is a POWERSHELL script called ffmpeg-download.ps1 that needs to be run that will install the missing files. Not sure why there is a script to do this and maybe that script wasn't executed during the install?
Regardless run that script and you'll get past this problem...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello David Rosner,
Thank you for reaching out to us.
Have you installed FFmpeg on your Windows 10? Here is the quickstep to install it:
- Go to this directory: C:\Program Files (x86)\Intel\openvino_2021.4.582\opencv
- Right-click on ffmpeg-download.ps1
- Click on Run with PowerShell
- Reboot your PC once the installation is done.
Please let us know whether the above method resolves the issue or not.
Sincerely,
Zulkifli
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi - Yes i eventually figured out i needed to do that and discovered that script. Solve that problem! You should ask the team who owns the windows installer product to add that to the step.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello David Rosner,
Thank you for your feedback. We will inform the developer of this matter.
Sincerely,
Zulkifli
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello DaveInPA,
The step to install the FFmpeg can be found in the demos documentation such as:
- 3D Human Pose Estimation Python* Demo
- Action Recognition Python* Demo
Sincerely,
Zulkifli
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello DavelnPA,
This thread will no longer be monitored since this issue has been resolved. If you need any additional information from Intel, please submit a new question.
Sincerely,
Zulkifli
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page