Jetson Nano gstreamer pipeline

Hi!
I’m capturing video from IP camera using this pipeline:

gst-launch-1.0 rtspsrc location=rtsp://... latency=200 drop-on-latency=true ! queue ! rtph264depay ! h264parse ! omxh264dec ! videoconvert ! queue ! xvimagesink

and everything works fine. But when I run in my Python code pipeline, that looks exactly the same:

gst-launch-1.0 rtspsrc location=rtsp://... latency=200 drop-on-latency=true ! queue ! rtph264depay ! h264parse ! omxh264dec ! videoconvert ! queue ! appsink

I get poor quality stream. Any ideas how to fix this?

Thanks in advance.

Hi,
Please try

gst-launch-1.0 rtspsrc location=rtsp://... latency=200 ! queue ! rtph264depay ! h264parse ! omxh264dec ! nvvidconv ! video/x-raw,format=BGRx ! videoconvert ! video/x-raw,format=BGR ! queue ! appsink

And execute ‘sudo jetson_clocks’

Now everything works fine. Thank you!