2022-09-20 07:40 AM
Hello,
I use a custom board based on STM32H750 (as Discovery board) with a 800*480 TFT (24 bit).
I try using the Video widget with the sample_video_1_medium_480*272 but in portait mode it show bad image, not understandable.
Next I try a custom video with 480*320 resolution: now i see the rows and columns are inverted.
For the first video I think there is also a problem with number of rows (272) since is not divisible for 32.
If I change setting in Touchgfx designer with landscape, both 2 video are correct.
I need to work in portait mode: I have to modify something in the program or try to rotate the video before compile?
Thanks.
toma Fabio
2022-09-22 03:12 AM
Hello FToma.1,
This issue is known, the video widget and the portrait mode are not natively compatible with TouchGFX Designer. However, there's an easy workaround for this issue : you'll need to reverse your width and height value in STM32CubeMX.
So in CubeMX, change the value of your width to 480 and your height to 800 at these places as follow :
Regenerate code from STM32CubeMX, and reopen your TouchGFX project : here's the trick, do not open the .touchgfx file, but the .part file instead:
Then you'll see your screen in portrait mode, and video should work fine with this one :)
/Osman
2024-11-27 10:48 PM
Hi Osman,
We tried following that workaround closely and did not succeed. We used the latest 4.24.2 version and we're going to try the 4.20.0 version you were using when you detailed your workaround.
Do you know if this workaround is supposed to still work with the more recent versions of TouchGFX?
Also, considering the workaround seems to be pretty agnostic to the hardware being used, is it safe to assume that it should work with any type of hardware, MCU, etc.?
thank you
PS: We have a ticket open with ST but we haven't heard anything yet. Sorry to revive this post.