2025-04-29 11:03 AM
Hello folks,
I am investigating the Video Encoder on the STM32N6 and have been working through the reference project (VENC_SDCard_ThreadX).
The user manual (RM0486) is very vague on detailing the Video Encoder, and lists over 100 pages of registers which appear to be referencing other Software Registers (VENC_SWREGx):
There are approximately 500 of registers like these, and it doesn't really say much.
Looking through the `asicRegisterDesc[]` structure in the Middleware has been useful to try and see what the registers are used for, but still is nowhere near the amount of detail that is needed.
Any further info would be greatly appreciated.
Kindest regards,
Solved! Go to Solution.
2025-05-07 6:46 AM
Hello @exarian;
I reported the description issue in the reference manual internally.
I advise you to look at Hantro.VC8000NanoE.V50x.SW.Integration.Guide-v1.02-20200708.pdf document may help you.
I recommend you to run an example like VENC_JPEG_Encoding can help you to understand the VENC.
Internal ticket number: 209269 (This is an internal tracking number and is not accessible or usable by customers)
Thank you.
Kaouthar
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-05-07 6:46 AM
Hello @exarian;
I reported the description issue in the reference manual internally.
I advise you to look at Hantro.VC8000NanoE.V50x.SW.Integration.Guide-v1.02-20200708.pdf document may help you.
I recommend you to run an example like VENC_JPEG_Encoding can help you to understand the VENC.
Internal ticket number: 209269 (This is an internal tracking number and is not accessible or usable by customers)
Thank you.
Kaouthar
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-05-07 7:01 AM
Thank you @KDJEM.1
That is a great reference to understand the EWL better, I appreciate it.
I have been working with the VENC_SDCard_ThreadX demo, and have managed to encode a video stream, using a test pattern sequence as well as the DCMI.
2025-10-18 7:26 AM
Hi Kaouthar @KDJEM.1 and @exarian ,
Thank you very much for this conversation and the link to the H264 encoder documentation and example.
We're planning a new open source wildlife camera system for conservation of Europe's most endangered dormouse, bat and squirrel species which combines the STM32N6 series MCUs and ST image sensors so it's very valuable for us to learn more about the H264 encoder on the STM32N6 series.
>I reported the description issue in the reference manual internally.
>Internal ticket number: 209269 (This is an internal tracking number and is not accessible or usable by customers)
I was wondering if there was any update on this?
Thank you very much,
Will
2025-10-19 11:31 PM
Hello @Will_Robertson ,
The 209269 ticket is under investigation.
I recommend you to look at these resources may help you:
Introduction to Hardware Video Encoding with STM32 - stm32mcu
H264 Hardware Handshake encoding - stm32mcu
H264 power consumption setup - stm32mcu
Thank you.
Kaouthar
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-10-19 11:54 PM
Hi @Will_Robertson ,
At the outset when I started the VENC was a mystery, as the N6 datasheet is basically referring another document, and does not really give any value.
Getting into the development however was not a pain, and the ST reference was a great starting point to test the H264. I thankfully didn't need to dive into the register level to debug, as things just worked quite well.
To test the H264 independently, I would just generate a test pattern. Firstly a coloured frame, then something more dynamic like a moving coloured box to see what the H264 does. I was very impressed when I went through that testing.
I started with the VENC_SDCard example and worked from there.
Based on your resolution, camera and compression needed you may need to tweak the H264 settings such as the Encoder Level.
I wish you luck on your development. I am guessing you'll eventually be including some AI in your project, to detect dormouse versus bat, that is when the true fun will start!
Thank you @KDJEM.1 for the further assistance and help.