Rtsp stream crashing on main but not substream

koenie248

n3wb
Mar 20, 2022
9
0
Rotterdam
Hi all,
I have an issue with the rtsp stream crashing

H265
1920x1080
10 fps
Cbr
Bitrate 1500-2000-3000-4000 tried all of it

The interesting thing is that exactly the same settings on substream 2 keep a stable rtsp in vlc but also in my software application.

The mainstream stays longer stable if there is no movement but will crash without movement after about 60 seconds.
If there is movement it’s 10 seconds.

The web gui shows the main stream perfectly and forever without crashing.

Anyone knows why the same resolution and settings work in the substream but not in the main stream?
 
Have you tried H.264 ?
 
Last edited:
Sorry, nothing jumps out at me.
Although I'd say the bit rate seems too low at 1585 kb/s. For the same resolution I am running 10240 kb/s (but at 20 frames/s & H264). I run most cameras at 10 frames/s but I just happened to check one set up for 20.
Otherwise I don't see anything notably different from my info.

On edit: I was checking the primary stream. I never use substream 1 and always use substream 2 instead. Here are my stream settings
1718632249716.png1718632249716.png
 
Last edited:
Have you performed a hard reset on the camera then reconfigured ?
If not, do that then try these for main stream:
  • Encoding strategy: General (or Smart Codec: Off)
  • Encode mode: H264
  • Bitrate type: CBR
  • Bit rate: 8192
  • Frame rate: 15 FPS
  • Frame interval: 15
 
What happens when your SW crashes?
Are you catching/handling exceptions?
Do you get a debug trace?
Have you tried debugging?
Since you're crashing with both main & sub streams you should look for your implementation bug(s) first.
 
Last edited:
Have you performed a hard reset on the camera then reconfigured ?
If not, do that then try these for main stream:
  • Encoding strategy: General (or Smart Codec: Off)
  • Encode mode: H264
  • Bitrate type: CBR
  • Bit rate: 8192
  • Frame rate: 15 FPS
  • Frame interval: 15
I tried what you suggested and the same keeps on happening
 
This could be out of the blue, but what kind of hardware is used to decode rtsp stream?

Also is it really necessary to use 10mbit/s CBR on 1080p?

Cheers