2025-04-10 6:31 AM
Hi,
I'm currently working with the STM32N6570-DK and the VENC_RTSP_Server Application from the STM32CubeN6 package.
I'm trying to evaluate the VENC peripheral h264 performance.
By default, the example application runs at 20 fps, I would like to take it to 30 fps. VENC, DCMIPP and IMX335 camera should support it.
My question is : What do I need to modify in the example code to be able to achieve 30 fps ?
(appart from the obvious "#define ...")
Here is what I've already tried :
52: #define FRAMERATE 30
109: IMX335_SetFramerate(Camera_CompObj, 30);
This gives the problem I have at 30 fps (no problem at 25 fps), the video cuts and distorts like this :
line 346: PeriphClkInit.ICSelection[RCC_IC17].ClockDivider = 4;
line 373: csiconf.PHYBitrate = DCMIPP_CSI_PHY_BT_2000;
IMX335_SetFrequency(Camera_CompObj, IMX335_INCK_24MHZ);
Nothing I've tried so far solves the problem.
To display the video stream I use ffplay with the following command :
ffplay -fflags nobuffer -max_delay 0 -flags low_delay -vf "drawtext=fontfile=C\\:/Windows/fonts/consola.ttf:fontsize=72:fontcolor='white':timecode='00\:00\:00\:00':rate=25:text='TCR\:':boxcolor=0x000000AA:box=1:x=480-text_w/2:y=720-text_h" rtsp://192.168.0.2:554
I also tried with my colleague's gstreamer pipeline but it produces the same result.
Any suggestions ?
Thank you in advance for your help.
Maxime.