Poor quality in OBS when using rtspsrc

I need low latency IP-cam input in OBS.

This is the pipeline I’m using now.
rtspsrc location=rtsp://admin:123456@2.2.2.2 latency=0 buffer-mode=auto ! rtph265depay ! h265parse ! nvh265dec ! videoscale ! video/x-raw,width=1920,height=1080 ! video.

It works, but very poor quality, specially when fast image changing occurs.

When I use a “normal” video source in OBS with. “rtsp://admin:123456@2.2.2.2/stream1” the quality is perfect, but very long latency.

I hope someone can help me?
Thanks.

found the solution myself. I was streaming the sub-stream.
For those having the same problem. here is the correct pipeline.:
rtspsrc location=rtsp://admin:123456@2.2.2.2/stream1 latency=0 buffer-mode=auto ! rtph265depay ! h265parse ! nvh265dec ! videoscale ! video/x-raw,width=1920,height=1080 ! video.