Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6392 Discussions

What version of FFMPEG is supported by OpenVino-OpenCv?

DaveInPA
New Contributor I
1,498 Views

I have a simple Python script that writes video frames from a USB camera plugged into a RasberryPi. When I run without OpenVino-OpenCV build its fine. When I run with my full OpenVino environment the colors on the saved file are all off.

I turned on full debugging on OpenCV and see that FFMPEG is not being used and GStreamer is used as the backend instead:

 

[ INFO:0] global ../opencv/modules/core/src/utils/plugin_loader.impl.hpp (67) libraryLoad load /opt/intel/openvino/opencv/lib/libopencv_videoio_ffmpeg.so => FAILED
[ WARN:0] global ../opencv/modules/videoio/src/cap.cpp (609) open VIDEOIO(FFMPEG): backend is not available (plugin is missing, or can't be loaded due dependencies or it is not compatible)

 

I have FFMPEG installed and just did a full compile from the codebase. So i'm wondering if OpenVIno isn't compatible with the latest version of FFMEG? The following is my FFMPEG version:

 

ffmpeg version 4.1.8-0+deb10u1+rpt1 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 8 (Raspbian 8.3.0-6+rpi1)
0 Kudos
1 Solution
DaveInPA
New Contributor I
1,432 Views

Hi Peh - Your help is much appreciated and your confirmation that you are not getting the error pointed me to something in my environment. When i checked my FFMPEG version i noticed i was getting some errors about libraries being mismatched - basically something wrong with my FFMPEG installation. I tried 10 different ways to reinstall FFMEG but only until i followed this full compile of FFMPEG did i get rid of those errors and the problem went away. 

 

Lesson here for others who may come across similar problems is to track down the errors from the underlying libraries and components if you are getting the wrong behavior.

 

This one can be closed as a solution - much appreciated!

 

https://pimylifeup.com/compiling-ffmpeg-raspberry-pi/

View solution in original post

5 Replies
Peh_Intel
Moderator
1,469 Views

Hi Davel,

 

I just noticed that you still having issue when saving video with OpenCV-4.5.3-openvino.

 

Just to confirm that you’re using Raspbian Buster, 32-bit in your Raspberry Pi 4B and also install OpenVINO™ Toolkit from this Raspbian OS Package: l_openvino_toolkit_runtime_raspbian_p_2021.4.752.tgz

 

Regarding the FFMPEG supported with OpenVINO, you can check through cv2.getBuildInformation().

Below is the FFMPEG info using OpenCV-4.5.3-openvino:

FFMPEG.JPG

 

On a separate note, which Video Player you’re using in the Raspberry Pi? I am using VLC on my side.

 

 

Regards,

Peh

 

0 Kudos
DaveInPA
New Contributor I
1,447 Views

Hi - i am using Buster version 10 and my openVIno build is from less than a month ago so i believe i have the latest.

 

I ran  cv2.getBuildInformation() but it did not return any messages with FFMPEG listed anywhere. Here is what i get when i run FFMPEG --version:

 

libavutil      56. 22.100 / 56. 22.100
libavcodec     58. 35.100 / 58. 35.100
libavformat    58. 20.100 / 58. 20.100
libavdevice    58.  5.100 / 58.  5.100
libavfilter     7. 40.101 /  7. 40.101
libavresample   4.  0.  0 /  4.  0.  0
libswscale      5.  3.100 /  5.  3.100
libswresample   3.  3.100 /  3.  3.100
libpostproc    55.  3.100 / 55.  3.100

 

I'm guessing some of my libs are more recent than yours?  

0 Kudos
Peh_Intel
Moderator
1,439 Views

Hi Davel,


Does it mean you build Open Source OpenVINO™ ?

 

I also able to get good output video on another Raspberry Pi 4 that built Open Source OpenVINO™.


Try to check OpenCV info again:

python3

import cv2

print(cv2.getBuildInformation())

 

 

Regards,

Peh


0 Kudos
DaveInPA
New Contributor I
1,433 Views

Hi Peh - Your help is much appreciated and your confirmation that you are not getting the error pointed me to something in my environment. When i checked my FFMPEG version i noticed i was getting some errors about libraries being mismatched - basically something wrong with my FFMPEG installation. I tried 10 different ways to reinstall FFMEG but only until i followed this full compile of FFMPEG did i get rid of those errors and the problem went away. 

 

Lesson here for others who may come across similar problems is to track down the errors from the underlying libraries and components if you are getting the wrong behavior.

 

This one can be closed as a solution - much appreciated!

 

https://pimylifeup.com/compiling-ffmpeg-raspberry-pi/

Peh_Intel
Moderator
1,399 Views

Hi Davel,


Thanks for confirming your issue is resolved and sharing the tutorial on the proper way to compile ffmpeg on Raspberry Pi.

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. 



Regards,

Peh


0 Kudos
Reply