GUI Guider video in MCU flash memory

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

GUI Guider video in MCU flash memory

跳至解决方案
886 次查看
KaiW
Contributor II

Hello there!

 

At the moment, I am working on a user interface with the RT595 MCU and the lvgl library. The GUI Guider is really helping in that regard and I was able to put together a lot of stuff thanks to that.

Now, that the basic stuff is almost ready, we want to have some stuff that is a little bit more fancy and are thinking about using short videos for transitions etc.

I am able to play a video in the corresponding widget in GUI Guider, but there does not seem to be convenient option to port videos to c files like you can do with images. The main idea in the demos and documentation seems to be that you have a filesystem with external flash and write some wrappers for basic file operations to use the video files.

As we have no filesystem in place right now and would have enough internal flash to hold some short videos, we would like to just store and use the videos just like we do with simple images.

Is there a convenient way to do this?

I already thought of Animation images, but the compression would be much worse there.

 

Best Regards,

Kai.

 

 

0 项奖励
回复
1 解答
867 次查看
WenbinYuan
NXP Employee
NXP Employee

Hi @KaiW,

You can quickly convert videos to image groups within GUI Guider and then import them as the source for animation image widget.

convert_video.png
In my testing, after selecting the appropriate resolution, frame rate, and animation image configuration, there was no significant loss in quality.

If the results from this processing still do not meet your needs, you may need to integrate video processing yourself. Refer to: FFmpeg Support

Hope this helps.

Best Regards,
Wenbin

在原帖中查看解决方案

3 回复数
850 次查看
KaiW
Contributor II

Hi Wenbin,

 

thank you for the quick answer.

 

Unfortunately, when I try to use the convert video button on a .h264 file, then it gets stuck in the process and is looping forever.

I was able to reproduce this with my own video as well as the demo.h264 from the video player demo in GUI Guider and different settings for the frame rate and size of the video. The same behavior occurs on my Ubuntu environment and a colleagues Windows 11.

Screenshot from 2026-04-08 12-20-49.png

I waited for a reasonable amount of time in this screen and also observed no unusual CPU or GPU load while this was running, so I am pretty sure its just stuck.

Any idea, what could be the problem here?

 

Best regards,

Kai.

 

P.S.: My colleague and me are using the most recent version of GUI Guider (1.10.1-GA)

0 项奖励
回复
813 次查看
WenbinYuan
NXP Employee
NXP Employee

Hi @KaiW,

I apologize for not providing specific details about the video processing. The video converter in the GUI Guider currently only supports the mp4 format, which is different from using the video widget directly, which needs h264 file.

In the future, we will clearly indicate these limitations in the tools.


Best Regards,

Wenbin

868 次查看
WenbinYuan
NXP Employee
NXP Employee

Hi @KaiW,

You can quickly convert videos to image groups within GUI Guider and then import them as the source for animation image widget.

convert_video.png
In my testing, after selecting the appropriate resolution, frame rate, and animation image configuration, there was no significant loss in quality.

If the results from this processing still do not meet your needs, you may need to integrate video processing yourself. Refer to: FFmpeg Support

Hope this helps.

Best Regards,
Wenbin

%3CLINGO-SUB%20id%3D%22lingo-sub-2346509%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EMCU%20%E9%97%AA%E5%AD%98%E4%B8%AD%E7%9A%84%E5%9B%BE%E5%BD%A2%E7%94%A8%E6%88%B7%E7%95%8C%E9%9D%A2%E5%BC%95%E5%AF%BC%E8%A7%86%E9%A2%91%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2346509%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E4%BB%AC%E5%A5%BD%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E7%9B%AE%E5%89%8D%EF%BC%8C%E6%88%91%E6%AD%A3%E5%9C%A8%E5%88%A9%E7%94%A8%20RT595%20MCU%20%E5%92%8C%20lvgl%20%E5%BA%93%E5%BC%80%E5%8F%91%E4%B8%80%E4%B8%AA%E7%94%A8%E6%88%B7%E7%95%8C%E9%9D%A2%E3%80%82%E5%9C%A8%E8%BF%99%E6%96%B9%E9%9D%A2%EF%BC%8CGUI%20Guider%20%E7%A1%AE%E5%AE%9E%E5%B8%AE%E4%BA%86%E5%A4%A7%E5%BF%99%EF%BC%8C%E5%A4%9A%E4%BA%8F%E4%BA%86%E5%AE%83%EF%BC%8C%E6%88%91%E6%89%8D%E8%83%BD%E6%8A%8A%E5%BE%88%E5%A4%9A%E4%B8%9C%E8%A5%BF%E6%95%B4%E5%90%88%E5%9C%A8%E4%B8%80%E8%B5%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20%2F%3E%3CP%3E%E9%A1%BA%E7%A5%9D%E5%95%86%E7%A5%BA%EF%BC%81%3C%2FP%3E%3CP%3E%E5%87%AF%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2346657%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%20GUI%20Guider%20video%20in%20MCU%20flash%20memory%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2346657%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F260953%22%20target%3D%22_blank%22%3E%40KaiW%3C%2FA%3E%E3%80%81%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3E%E6%82%A8%E5%8F%AF%E4%BB%A5%E5%9C%A8%20GUI%20Guider%20%E4%B8%AD%E5%BF%AB%E9%80%9F%E5%B0%86%E8%A7%86%E9%A2%91%E8%BD%AC%E6%8D%A2%E4%B8%BA%E5%9B%BE%E5%83%8F%E7%BB%84%EF%BC%8C%E7%84%B6%E5%90%8E%E5%AF%BC%E5%85%A5%E5%AE%83%E4%BB%AC%E4%BD%9C%E4%B8%BA%E5%8A%A8%E7%94%BB%E5%9B%BE%E5%83%8F%20widget%20%E7%9A%84%E6%BA%90%E6%96%87%E4%BB%B6%E3%80%82%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22convert_video.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22convert_video.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22convert_video.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F381505i3EF9D982C0E465E8%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22convert_video.png%22%20alt%3D%22convert_video.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%E5%9C%A8%E6%88%91%E7%9A%84%E6%B5%8B%E8%AF%95%E4%B8%AD%EF%BC%8C%E9%80%89%E6%8B%A9%E9%80%82%E5%BD%93%E7%9A%84%E5%88%86%E8%BE%A8%E7%8E%87%E3%80%81%E5%B8%A7%E9%80%9F%E7%8E%87%E5%92%8C%E5%8A%A8%E7%94%BB%E5%9B%BE%E5%83%8F%E9%85%8D%E7%BD%AE%E5%90%8E%EF%BC%8C%E8%B4%A8%E9%87%8F%E6%B2%A1%E6%9C%89%E6%98%8E%E6%98%BE%E4%B8%8B%E9%99%8D%E3%80%82%3C%2FP%3E%0A%3CP%3E%E5%A6%82%E6%9E%9C%E6%AD%A4%E5%A4%84%E7%90%86%E7%9A%84%E7%BB%93%E6%9E%9C%E4%BB%8D%E7%84%B6%E6%97%A0%E6%B3%95%E6%BB%A1%E8%B6%B3%E6%82%A8%E7%9A%84%E9%9C%80%E6%B1%82%EF%BC%8C%E5%88%99%E5%8F%AF%E8%83%BD%E9%9C%80%E8%A6%81%E8%87%AA%E5%B7%B1%E9%9B%86%E6%88%90%E8%A7%86%E9%A2%91%E5%A4%84%E7%90%86%E3%80%82%E8%AF%B7%E5%8F%82%E9%98%85%EF%BC%9A%3CA%20href%3D%22https%3A%2F%2Fdocs.lvgl.io%2F9.3%2Fdetails%2Flibs%2Fffmpeg.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EFFmpeg%20%E6%94%AF%E6%8C%81%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%E5%B8%8C%E6%9C%9B%E5%AF%B9%E6%82%A8%E6%9C%89%E6%89%80%E5%B8%AE%E5%8A%A9%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%E6%95%AC%E4%B8%8A%EF%BC%8C%3CBR%20%2F%3EWenbin%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2347036%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20GUI%20Guider%20video%20in%20MCU%20flash%20memory%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2347036%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%97%A8%EF%BC%8C%E6%96%87%E6%96%8C%E3%80%81%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E6%84%9F%E8%B0%A2%E6%82%A8%E7%9A%84%E5%BF%AB%E9%80%9F%E5%9B%9E%E5%A4%8D%E3%80%82%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E4%B8%8D%E5%B9%B8%E7%9A%84%E6%98%AF%EF%BC%8C%E5%BD%93%E6%88%91%E5%B0%9D%E8%AF%95%E5%9C%A8%20.h264%20%E8%A7%86%E9%A2%91%E6%96%87%E4%BB%B6%E4%B8%8A%E4%BD%BF%E7%94%A8%E8%BD%AC%E6%8D%A2%E8%A7%86%E9%A2%91%E6%8C%89%E9%92%AE%E6%97%B6%EF%BC%8C%E5%8D%B4%E5%87%BA%E7%8E%B0%E4%BA%86%E4%BB%A5%E4%B8%8B%E9%97%AE%E9%A2%98%E3%80%82%E6%96%87%E4%BB%B6%EF%BC%8C%E7%84%B6%E5%90%8E%E5%B0%B1%E4%BC%9A%E5%8D%A1%E5%9C%A8%E8%BF%9B%E7%A8%8B%E4%B8%AD%EF%BC%8C%E6%B0%B8%E8%BF%9C%E5%BE%AA%E7%8E%AF%E4%B8%8B%E5%8E%BB%E3%80%82%3C%2FP%3E%3CP%3E%E6%88%91%E7%94%A8%E8%87%AA%E5%B7%B1%E7%9A%84%E8%A7%86%E9%A2%91%E4%BB%A5%E5%8F%8A%20GUI%20Guider%20%E8%A7%86%E9%A2%91%E6%92%AD%E6%94%BE%E5%99%A8%E6%BC%94%E7%A4%BA%E4%B8%AD%E7%9A%84%20demo.h264%EF%BC%8C%E5%B9%B6%E5%AF%B9%E8%A7%86%E9%A2%91%E7%9A%84%E5%B8%A7%E9%A2%91%E5%92%8C%E5%A4%A7%E5%B0%8F%E8%BF%9B%E8%A1%8C%E4%BA%86%E4%B8%8D%E5%90%8C%E7%9A%84%E8%AE%BE%E7%BD%AE%EF%BC%8C%E5%B0%B1%E8%83%BD%E9%87%8D%E7%8E%B0%E8%BF%99%E4%B8%AA%E9%97%AE%E9%A2%98%E3%80%82%E6%88%91%E7%9A%84%20Ubuntu%20%E7%8E%AF%E5%A2%83%E5%92%8C%E5%90%8C%E4%BA%8B%E7%9A%84%20Windows%2011%20%E4%B9%9F%E5%87%BA%E7%8E%B0%E4%BA%86%E5%90%8C%E6%A0%B7%E7%9A%84%E6%83%85%E5%86%B5%E3%80%82%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%20from%202026-04-08%2012-20-49.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%20from%202026-04-08%2012-20-49.png%22%20style%3D%22width%3A%20379px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F381563i6720AAFBE408ECDB%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Screenshot%20from%202026-04-08%2012-20-49.png%22%20alt%3D%22Screenshot%20from%202026-04-08%2012-20-49.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E6%88%91%E5%9C%A8%E8%BF%99%E4%B8%AA%E5%B1%8F%E5%B9%95%E4%B8%8A%E7%AD%89%E5%BE%85%E4%BA%86%E5%90%88%E7%90%86%E7%9A%84%E6%97%B6%E9%97%B4%EF%BC%8C%E4%B9%9F%E6%B2%A1%E6%9C%89%E8%A7%82%E5%AF%9F%E5%88%B0%E8%BF%90%E8%A1%8C%E6%97%B6%20CPU%20%E6%88%96%20GPU%20%E8%B4%9F%E8%BD%BD%E6%9C%89%E4%BB%BB%E4%BD%95%E5%BC%82%E5%B8%B8%EF%BC%8C%E6%89%80%E4%BB%A5%E6%88%91%E5%BE%88%E7%A1%AE%E5%AE%9A%E5%AE%83%E5%8F%AA%E6%98%AF%E5%8D%A1%E4%BD%8F%E4%BA%86%E3%80%82%3C%2FP%3E%3CP%3E%E6%82%A8%E7%9F%A5%E9%81%93%E9%97%AE%E9%A2%98%E5%87%BA%E5%9C%A8%E5%93%AA%E9%87%8C%E5%90%97%EF%BC%9F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E9%A1%BA%E7%A5%9D%E5%95%86%E7%A5%BA%EF%BC%81%3C%2FP%3E%3CP%3E%E5%87%AF%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%E9%99%84%E6%B3%A8%EF%BC%9A%E6%88%91%E5%92%8C%E6%88%91%E7%9A%84%E5%90%8C%E4%BA%8B%E4%BD%BF%E7%94%A8%E7%9A%84%E6%98%AF%E6%9C%80%E6%96%B0%E7%89%88%E6%9C%AC%E7%9A%84%20GUI%20Guider%20(1.10.1-GA)%3C%2FP%3E%3C%2FLINGO-BODY%3E