Hi,
I've a Yocto image (imx-image-full) for the iMX8 board. OpenCV 4.4 is included in the image, which uses gstreamer as the backend. When testing a video app, some of the OpenCV properties are not supported. e.g.
property 6 = CAP_PROP_FOURCC
property 46 = CAP_PROP_CODEC_PIXEL_FORMAT
I am trying to add FFMPEG support to the OpenCV by adding the following lines in conf/local.conf
IMAGE_INSTALL_append = " ffmpeg"
LICENSE_FLAGS_WHITELIST = "commercial"
With this FFMPEG pkgs were compiled successfully. However, the building failed at opencv do_install:
ERROR: opencv-4.4.0.imx-r0 do_install: Execution of '/home/xxx/xxx/build-imx8qmmek-xwayland/tmp/work/cortexa72-cortexa53-crypto-mx8-poky-linux/opencv/4.4.0.imx-r0/temp/run.do_install.3025' failed with exit code 1:
abort()ing pseudo client by server request. See https://wiki.yoctoproject.org/wiki/Pseudo_Abort for more details on this.
Child aborted
CMake Error: Generator: execution of make failed. Make command was: ninja -v -j 12 install &&
WARNING: exit code 1 from a shell command.
I also tried removing gstreamer in PACKAGECONFIG in the opencv recipe file, but still got the same error.
Any insights or solution for this issue is appreciated!
Thanks,
Lijun
Solved! Go to Solution.
 Zhiming_Liu
		
			Zhiming_Liu
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		After removing PACKAGECONFIG[gstreamer], you need add PACKAGECONFIG[ffmpeg]="-DWITH_FFMPEG=ON,-DWITH_FFMPEG=OFF,XXXX"
 Zhiming_Liu
		
			Zhiming_Liu
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		After removing PACKAGECONFIG[gstreamer], you need add PACKAGECONFIG[ffmpeg]="-DWITH_FFMPEG=ON,-DWITH_FFMPEG=OFF,XXXX"
Thanks for the reply.
Actually after I did a clean and re-build for opencv, it worked with ffmpeg and gstreamer together.
I am not if ffmpeg and gstreamer can get along together for OpenCV, or I have to choose one of them?
Thanks,
Lijun
