Rtsp stream crashing on main but not substream

koenie248

n3wb
Joined
Mar 20, 2022
Messages
9
Reaction score
0
Location
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?
 

TheOtherMike

Getting the hang of it
Joined
Dec 28, 2022
Messages
60
Reaction score
32
Location
Midwest
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:

TonyR

IPCT Contributor
Joined
Jul 15, 2014
Messages
18,536
Reaction score
43,610
Location
Alabama
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
 

TheOtherMike

Getting the hang of it
Joined
Dec 28, 2022
Messages
60
Reaction score
32
Location
Midwest
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:

koenie248

n3wb
Joined
Mar 20, 2022
Messages
9
Reaction score
0
Location
Rotterdam
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
 

trempa92

Getting comfortable
Joined
Mar 26, 2020
Messages
979
Reaction score
308
Location
Croatia,Zagreb
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
 
Top