Greetings!
I’ve encountered a bug with LI-IMX490 camera on nvidia Jetson Orin.
If I capture the frames via OpenCV:
char Gstring[256];
sprintf(Gstring,
"v4l2src device=%s ! video/x-raw, width=%d, height=%d, format=UYVY ! "
"queue ! appsink",
params.device.c_str(), params.width, params.height);
cv::VideoCapture cap(Gstring, cv::CAP_GSTREAMER);
Everything is OK and camera works perfectly with almost 30 FPS.
But if I try to capture it via pure gstreamer using GPU hardware acc. :
GError *error = NULL;
const std::string launchStr{
"nvv4l2camerasrc do-timestamp=1 name=src device=" + info.device +
" ! video/x-raw(memory:NVMM), width=" + std::to_string(info.width) +
", height=" + std::to_string(info.height) +
", framerate=" + std::to_string(info.frame_rate) + "/1 ! nvvidconv " +
" ! appsink name=sink max-buffers=2 sync=0 caps=video/x-raw,format=BGRx"};
pipeline = gst_parse_launch(launchStr.c_str(), &error);
I get the broken frames:
But FPS still is OK
Could you help me please to figure out what’s the problem?
lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 20.04.6 LTS
Release: 20.04
Codename: focal
cat /etc/nv_tegra_release
# R35 (release), REVISION: 3.1, GCID: 32827747, BOARD: t186ref, EABI: aarch64, DATE: Sun Mar 19 15:19:21 UTC 2023