Skip to main content
Senior
July 14, 2025
Solved

VENC_RTSP_SERVER code getting stuck

  • July 14, 2025
  • 4 replies
  • 497 views

Hi everyone,

I’m currently trying to deploy the VENC_RTSP_SERVER code, but it's getting stuck during execution. In the UART terminal, I only see the following output before it hangs.

athern27_0-1752485431558.png

After some debugging, I found that the code is getting stuck at line 133 in venc_app.c.

tx_event_flags_get(&venc_app_flags, VIDEO_START_FLAG, TX_AND, &flags, TX_WAIT_FOREVER);

Any help or suggestions would be appreciated.


 

Best answer by DanielS

Hi,

 

Depending on the Ubuntu version, the VLC version from the standard distribution packages might not include the proper set of plugins (typically : live555).

Could you try playback with ffplay?

Just use the following command: ffplay rtsp://10.42.0.158

Regards,

Daniel

4 replies

athern27Author
Senior
July 15, 2025

Can someone move this topic to STM32 MCUs Products forum
I think it's more appropriate there.

ST Employee
July 15, 2025

Hello,

Which FW version and toolchain are you using please ?

Regards,

 

ST Employee
July 15, 2025

Also, Is your board properly connected to an Ethernet network with  DHCP server ?

If this is the case, you should get one trace in terminal :

STM32 IpAdress! xxx.xxx.xxx.xxx

athern27Author
Senior
July 15, 2025

Hi @DanielS , 
Initially, there was an issue with the DHCP connection when I connected the Ethernet cable from my laptop to the STM board. After adjusting some settings, the problem was resolved, and I'm now able to see the output on the UART terminal.

athern27_0-1752603659654.png

But now whenever I try to open RTSP (rtsp://10.42.0.158:554) in VLC. It is giving me Invalid track ID error.

athern27_1-1752604334185.png

Kindly help.

IDE - STM32CubeIDE v1.18.1
OS - Ubuntu 22.04
Firmware - STM32CubeN6 v1.2.0

 

DanielSBest answer
ST Employee
July 16, 2025

Hi,

 

Depending on the Ubuntu version, the VLC version from the standard distribution packages might not include the proper set of plugins (typically : live555).

Could you try playback with ffplay?

Just use the following command: ffplay rtsp://10.42.0.158

Regards,

Daniel

athern27Author
Senior
July 16, 2025

Hi, 
Now its working with 

ffplay rtsp://10.42.0.158:554

Thank you for your help!!