Any Update?
Have you re-tried after my last correction ?
gst_str = "v4l2src device=/dev/video0 io-mode=2 ! image/jpeg,width=1920,height=1080,framerate=30/1,format=MJPG ! nvv4l2decoder mjpeg=1 ! nvvidconv ! video/x-raw,format=BGRx ! videoconvert ! video/x-raw,format=BGR ! appsink drop=1"
Above Command in python code returning following error.
Opening in BLOCKING MODE
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 277
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 277
[ WARN:0] global /home/nvidia/opencv/modules/videoio/src/cap_gstreamer.cpp (1081) open OpenCV | GStreamer warning: Cannot query video position: status=1, value=9, duration=-1
There is no error.
Just a warning saying that it cannot get position, which is normal for a live source having no duration.
But at the same time, I cant able to achieve 30 FPS
You may further explain how you measured that.
Also be aware that imshow is slow with Jetson for high pixel rates. You may try this.
I am Measuring Loop Frequency, and also i am not using imshow.
Hi,
Please run Nano at max performance more and try again:
$ sudo nvpmodel -m 0
$ sudo jetson_clocks
If you still cannot get target frame rate, please run sudo tegrastats and check if CPU usage is at max loading. CPU capability of Jetson Nano may cap the performance.