- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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?
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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 kopiert
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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".
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Hi Zvi,
Are you able to run using Maksim suggestion?
There were some benchmark in this video capture and write benchmark.
Regards,
Rizal
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Yes- excellent response. The default is ffmpeg so once I added this to the docker my solution used ffmpeg (seems faster)
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Just another question - why do we need to install ffmpeg if it is part of the installation (we see it is compiled in OpenCV)?
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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?
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
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.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
@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:

- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite