- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using the multi_camera_multi_target python demo based on a the docker image
openvino/ubuntu18_runtime:2021.1
The GStreamer opencv backend is used (contrary to using the toolbox in Windows where the ffmpeg was used). Is it possible to set the opencv backend to ffmpeg when using the docker image (I would like to understand if there are differences in performance)? I tried cap = cv.VideoCapture(video_path, cv.CAP_FFMPEG) but this didn't work. Is the GStreamer backend recommended? Is there a performance comparison?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This container does not have FFmpeg libraries preinstalled. It has only GStreamer as part of OpenVINO (DL Streamer). You can install FFmpeg in your container, add the following line to your Dockerfile: "RUN apt update && apt install -y ffmpeg".
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This container does not have FFmpeg libraries preinstalled. It has only GStreamer as part of OpenVINO (DL Streamer). You can install FFmpeg in your container, add the following line to your Dockerfile: "RUN apt update && apt install -y ffmpeg".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Zvi,
Are you able to run using Maksim suggestion?
There were some benchmark in this video capture and write benchmark.
Regards,
Rizal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes- excellent response. The default is ffmpeg so once I added this to the docker my solution used ffmpeg (seems faster)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Zvi,
Intel will no longer monitor this thread since this issue has been resolved. If you need any additional information from Intel, please submit a new question.
Regards,
Rizal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just another question - why do we need to install ffmpeg if it is part of the installation (we see it is compiled in OpenCV)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
FFmpeg is not part of the installation, OpenCV is built with FFmpeg support - it has ability to read and write videos with the help of this library.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am still missing something. When I use a compiled OpenCV version in Windows that has ffmpeg, I don't need to install ffmpeg itself (there is a ffmpeg dll), why is this different using Linux? Another question is if the version that OpenCV is built with (here from opencv) avcodec: YES (57.107.100),avformat: YES (57.83.100),avutil: YES (55.78.100),swscale: YES (4.8.100),avresample: YES (3.7.0)
How can I ensure that the ffmpeg via the apt install will be the matching version?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When you build OpenCV on Windows the configuration script will automatically download a plugin with FFmpeg. As I understand, this was made to simplify build process due to complexity of building and using FFmpeg on Windows.
On Linux systems FFmpeg packages from official repositories can be used. OpenVINO installer contains OpenCV binaries compatible with Ubuntu 18 and 20.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks - I am just looking from a production perspective . "OpenVINO installer contains OpenCV binaries compatible with Ubuntu 18 and 20" - "On Linux systems FFmpeg packages from official repositories can be used. " how can we be sure these will be the same version? The apt install -y ffmpeg takes the latest version.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Zvi wrote:
The apt install -y ffmpeg takes the latest version.
Not actually so. Stable Debian and Ubuntu releases have fixed versions of packages and can only add security patches or minor fixes to them (see [3]). This is true unless you have 3rdparty repositories added to your apt config.
What you mentioned can be met in rolling releases (or distributions, see [1] and [2]), To use OpenVINO in these you might need to build some components from sources for your specific configuration and be careful when upgrading packages.
Some links:
![](/skins/images/91F5C79BC69312EC7F389BB9532EE3D4/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page