Hey all,
I’m trying to open up in the fastest and efficient way a v4l2src YV12 60FPS camera using JETSON TX2.
Right now i’m using:
cap.open("v4l2src device=/dev/video0 ! video/x-raw, width=1280, height=720, framerate=
(fraction)60/1, format=(string)YV12 ! videoconvert ! video/x-raw, width=1280, height=720, framerate=
(fraction)60/1, format=(string)I420 ! appsink sync=false async=false emit_signals=true drop=true
max-buffers=1");
and then:
cvtColor(img, img, CV_YUV2BGR_I420);
This thing gives me 42 FPS top and I’m looking a way to run faster if possible.
That way i’m getting 30 FPS:
cap.open("v4l2src device=/dev/video0 ! video/x-raw, width=1280, height=720, framerate=
(fraction)60/1, format=(string)YV12 ! videoconvert ! video/x-raw, width=1280, height=720, framerate=
(fraction)60/1, format=(string)BGR ! appsink sync=false async=false emit_signals=true drop=true max-
buffers=1");
And i’m trying to do:
cap.open("v4l2src device=/dev/video0 ! video/x-raw, width=1280, height=720, framerate=
(fraction)60/1, format=(string)YV12 ! videoconvert ! video/x-raw, width=1280, height=720, framerate=
(fraction)60/1, format=(string)I420 ! nvvidconv ! video/x-raw, width=1280, height=720, framerate=
(fraction)60/1, format=(string)BGR ! appsink sync=false async=false emit_signals=true drop=true max-
buffers=1");
but it failed.
what am I doing wrong?