Issue with acquiring frames from IP camera RTSP stream using OpenCV and GStreamer on NVIDIA Jetson Nano

Hello,

I am currently working on NVIDIA Jetson Nano with JetPack Version 4.6.2. I need to acquire frames from an IP camera RTSP stream using OpenCV and GStreamer.

I am using the following software versions:

  • GStreamer Core Library: 1.14.5
  • OpenCV: 4.1.1

To acquire frames, I have constructed the following GStreamer pipeline string:

rtspsrc location=<stream_uri> latency=200 ! application/x-rtp, encoding-name=H265 ! rtph265depay ! h265parse ! nvv4l2decoder ! nvvidconv ! video/x-raw, format=BGRx ! videoconvert ! video/x-raw, format=BGR ! appsink drop=1

The pipeline generally works well, but I am encountering the following error approximately twice a minute:

NVPARSER: HEVC: Seeking is not performed on IRAP picture.

This error is affecting the smooth acquisition of frames from the RTSP stream. I have tried investigating this issue on my own, but I haven’t been able to find a solution yet.

Additional information:

  • NVIDIA Jetson Nano running JetPack Version 4.6.2
  • GStreamer Core Library version: 1.14.5
  • OpenCV version: 4.1.1

Thank you in advance for your help!

Hi,
The print shows additional data is out in h265 stream and parser cannot deal with it. We would suggest check if the IP camera has parameters for configuring the bitstream. May try different settings or try h264 encoding.

Hi,
thank you for the answer.

We tried the h264 encoding but the problem seems to remain the same.
Could you please tell me which parameters should we try change about the bitrate?

Thank you!

Hi,
Pee the webpage:
HEVC Picture Types | High Efficiency Video Coding

IRAP looks to be a more complicated GOP structure. We would suggest encode in simple IDR P P P P P … structure.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.