Post by tftlcdcyg on Sept 26, 2021 12:16:58 GMT -8
To convert video files you can use the EVE Asset Builder tool, the most recent version is v2.1.0.
Depending on the MCU you use, the ones with the best performance are the teensy 3.6, 4 and 4.1, nucleo-F767ZI, F411CE, F429ZI, F407, which can exceed 120 Mhz.
Although videos can be played on the UNO and ESP32, lags and skips may occur.
Over time I have experimented with this possibility that the library for gameduino offers, and I have been able to modify the library so that it is able to work with SdFat on some teensy boards and some STM32.
I have come to the conclusion that it is not only the speed of the MCU, but also the quality of reproduction is improved, using the SdFat library, in addition to that from the beta 2 version, it is capable of accessing microSD memories of more than 32 Gb.
The official STM32 core is not yet capable of using DMA options, so the SdFat library falls short. The alternate core for STM32 created by danieleff, can use DMA, so we can count on extra speed when playing avi video files from an external reader on some STM32 boards.
The best microSD memories that I have been able to experience are the SanDisc Extreme class 3. I have a 32 Gb, but later I will get a 64 Gb or perhaps 128 Gb.
The type of video file that has worked well is mp4.
You have to consider the aspect ratio, you must consider the screen size in which the video is going to be displayed, respecting the original proportions, otherwise the video will not play correctly.
For example a 1920x1080 base video has a ratio of 1080/1920 = 0.5625. For a 5 "screen with an area of 800x480 px, use 799 px as a reference in the horizontal measurement, and calculate the vertical measurement by making 799x0.5625 = 449.4 px.
Then we must convert the 1920x1080 video into a 799x450 avi file, 799x460 or 799x470 could also work, but we must test the resulting videos on the screen, to choose the appropriate proportion
Last Edit: Sept 26, 2021 18:48:56 GMT -8 by tftlcdcyg