2025-03-10 9:23 AM
Hi,
We have STM32N6570-DK and are testing camera input, video encode and write to SD card
We have not been able to make the "VENC_SDCard_Appli" example work, the SD card just contains zeros.
The "VENC_SDCard_ThreadX" example does work however, resulting in an 800x480 video.
Are there any examples on encoding at 1080p resolution? Changing the encoder parameters and level results in memory allocation failures in EncAsicMemAlloc_V2.
Many thanks
2025-03-11 1:02 AM
Hello @therealnerd2
Can you provide details about the reading of the SD card for the VENC_SDCard_Appli demo? Did you follow all the recommendations in the Readme.html of this project below:
Best regards
Romain,
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-03-11 3:54 AM
2025-03-11 4:04 AM
If I step through the example, I can see that "encoder_prepare" is actually failing, but the error is not being checked.
The error comes from EWLmalloc, which is not able to allocate any memory.
2025-03-11 4:07 AM
I see this is https://github.com/STMicroelectronics/STM32CubeN6/issues/1. With that patch, the example now runs and the SDcard is now readable.
2025-03-11 5:46 AM
Can you please:
1) confirm if the patch in that issue is valid
2) explain how to increase the recording resolution to 1080p
2025-03-12 2:41 AM
Hello @therealnerd2 ,
Unfortunately, increasing the resolution to 1080p within VENC_SDCard_ThreadX requires a bit of work. The fact is that 1080p won't fit into the internal memory as in the original application. Camera and encoder buffer allocation requires some rework to be placed in external memory.
Best regards,
Daniel
2025-03-12 4:21 AM
Hi Daniel,
Thanks for the reply, this makes sense with what we are seeing.
Is such an example using external memory planned? It's a shame for a chip advertised as 1080p capable that we cannot easily prove this working and test power usage.
Many thanks.
2025-03-13 1:16 AM
Hi therealnerd2,
I understand your frustration.
We will strive to provide a 'ready-to-use' 1080p example in upcoming releases
Best regards,
Daniel
2025-03-13 2:02 AM
Great, thank you