Hello!
I need help with cv::VideoCapture (OpenCV) configuration (for example web-camera Logitech c920 - FullHD, usb 2.0) for hardware-accelerated video codec (Jetson/H264 Codec - eLinux.org)
All experiments were carried out at the Jetson TK1 in performance mode Jetson/Performance - eLinux.org
In the console with 1080p we also have 30 fps ( Jetson/H264 Codec - eLinux.org ):
gst-launch -e v4l2src device=/dev/video0 ! ‘video/x-raw-yuv,width=1920,height=1080,framerate=30/1’ ! nv_omx_h264enc quality-level=2 ! mp4mux ! filesink location=test.mp4
Thank you for reporting this issue.
To do the further investigation, would you please provide your test code for your 3 use cases?
We need to reproduce the issue first, then can help to find where might be wrong.
My camera - “Logitech c920 - FullHD, USB 2.0”.
Command “v4l2-ctl --list-formats” show 3 supported formats:
ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: 'YUYV'
Name : YUV 4:2:2 (YUYV)
Index : 1
Type : Video Capture
Pixel Format: 'H264' (compressed)
Name : H.264
Index : 2
Type : Video Capture
Pixel Format: 'MJPG' (compressed)
Name : MJPEG
Maybe instead of “video/x-raw” is better to use “video/x-h264”?
For gstreamer warning there might be setup issue. Please check on fresh setup. We are observing around 27 fps at our end.
My camera - “Logitech c920 - FullHD, USB 2.0”, maybe instead of “video/x-raw” is better to use >“video/x-h264”?
It depends on the use case. For lower CPU utilization you can use video/x-h264 format.
This comment by Andrey1984 was accidentally removed, I’m reposting it as I cannot restore it:
Could you help estimate on how to acquire left and right from stereo camera separately pressuming the only way to acquire both at once is luvcview -d /dev/video0 -f MJPG -S 1280x480 output?
if using /dev/vide0 or cap(0) it returns just a single sensor image
Can there be used a trick like above mentioned ar the following like: