AnsweredAssumed Answered

IMX7 VideoCapture OpenCV

Question asked by on Jul 22, 2020
Latest reply on Jul 27, 2020 by



i try to read a Video with openCV.

This is the relevant Code:

#include <stdio.h>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
#include <opencv2/videoio.hpp>


using namespace cv;
using std::string;


int main()
string filename = "testvideo.mp4";
VideoCapture capture(filename);


I am using the imx7 dual sabre board with the following image specs:

Kernel: L4.14.98

Distro: FSL-IMX-Wayland


GCC-Compiler (7.3.0)


I get the following response:

====== AIUR: 4.4.5 build on Apr 24 2020 03:18:56. ======
Core: MPEG4PARSER_06.16.01 build on Dec 11 2018 03:04:05
file: /usr/lib/imx-mm/parser/
Track 00 [video_0] Enabled
Duration: 0:00:20.360000000
Language: und
video/x-h264, parsed=(boolean)true, alignment=(string)au,
stream-format=(string)avc, width=(int)1920, height=(int)1080,
framerate=( fraction)25/1,
------------------------ ------------------------
Track 01 [audio_0] Enabled
Duration: 0:00:20.436666000
Language: und
audio/mpeg, mpegversion=(int)4, channels=(int)2,
rate=(int)48000, bitrate=(int)0, stream-format=(string)raw,
codec_data=(buffer)119 0 ------------------------ ====== BEEP: 4.4.5
build on Apr 24 2020 03:19:03. ======
Core: AAC decoder Wrapper build on Dec 7 2017 18:13:49
file: /usr/lib/imx-mm/audio-codec/wrap/
CODEC: BLN_MAD-MMCODECS_AACD_ARM_03.09.00_CORTEX-A8 build on Sep 20 2017

At this point the program is stuck. 

I have already found some similar problems with the imx6.
However, I could not yet apply a meaningful solution.

In case this is an audio-only problem: Only video is relevant for the use case, audio is not needed. Is there a way to ignore this?



Best Regards