Cómo Puedo desplegar un video en el iMX6UL?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Cómo Puedo desplegar un video en el iMX6UL?

334 次查看
PaulVelasquez
Contributor I

Alguien sabe como, o que debo instalar para reproducir un video con el IMX6UL? Tengo Yocto Krogoth.

Gracias.

标签 (1)
0 项奖励
1 回复

272 次查看
Carlos_Musich
NXP Employee
NXP Employee

Hola Paul,

pondre al respuesta en ingles para que pueda ayudarle al mayor numero de gente.

You can play a video using cpp code with opencv. You need to add the opencv and the sdk packages to the image, the simplest way may be to add to the end of your build/conf/local.conf file:


IMAGE_INSTALL-append += "\
opencv \
opencv-samples \
packagegroup-sdk-target \
"

Then build fsl-image-gui. Once you deploy the image in the sdcard you need to copy the attached .cpp file into your sdcard image and build it in the terminal using the following command:


arm-poky-linux-gnueabi-g++ inputFileName.cpp -lopencv_core -lopencv_highgui -lopencv_imgproc -I/usr/include/opencv -o outputFileName and run the executable file generated.

Please note that in this example you need to edit the sourcefile to put the name of the video you want to play. You must also be sure that you have the necessary codec.


Regards,
Carlos

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励