Bad results of h264 hardware decoder jetson nano

Hi all,
I used live555 for stream .264 file, and I used 264 hardware decoder of jetson nano, but after a while, the results of decoder is bad specially in the motion parts of frame. why? this is because of incorrect in gstreamer element or live555?

gstream_elemets = (
                    'rtspsrc location={} latency=30 !'
                    'rtph264depay ! h264parse !'
                    'queue max-size-buffers=100, leaky=2 !'
                    'omxh264dec enable-max-performance=1 enable-low-outbuffer=1 !'
                    'video/x-raw(memory:NVMM),format=(string)NV12 !'
                    'nvvidconv ! video/x-raw , format=(string)BGRx !'
                    'videoconvert ! '
                    'appsink').
    cv2.VideoCapture(gstream_elemets, cv2.CAP_GSTREAMER)

original image:
Screenshot from 2020-06-09 17-28-13
decode image:
Screenshot from 2020-06-09 17-27-34

Hi,
It looks to be an issue in the source. You may save the h264 stream by running

$ gst-launch-1.0 rtspsrc ! rtph264depay ! h264parse ! video/x-h264,stream-format=byte-stream ! filesink location=a.h264

And check if the stream is good.

This hasn’t like above problem, but a problem I see with this command, after a while created a pause like in output video, but the second time is going up. why? what’s the my command problem? and what’s the your command?

I save the output with your command .mp4 file for show with vlc not save .h264.

I also tested your command with PC and I also get the same pause like with this.

I found the problem. but I don’t know why this happened .
my input stream has 25 FPS but I want 10 FPS in output.
I used this snippet code for this:

cap = cap.VidepCapture(...)
.....
while cap.isOpend():
      ret, frame = cap.read()
      sleep(1/10)

when I comment the sleep line the problem is solved, why?
How to control frame rate with gstreamer?

Hi,
We suggest set the source to 10fps. If it is not possible, you may configure the property in nvv4l2decoder:

  drop-frame-interval : Interval to drop the frames,ex: value of 5 means every 5th frame will be given by decoder, rest all dropped
                        flags: readable, writable, changeable only in NULL or READY state
                        Unsigned Integer. Range: 0 - 30 Default: 0