Hello,
I have this setup:
Jetson Xavier
Jetpack R32 2.1
Camera: e-Con Systems e-CAM130_CUXVR (UYVY format)
I need to capture the camera stream with V4L2 and save it on video in H264 at 30 FPS in the SSD storage. In 4K resolution, it was not possible to capture video at 30 FPS using GStreamer, since frames are lost, and e-Con support suggest to use Multimedia APIs.
For that porpouse, I’m trying to make work this application: https://devtalk.nvidia.com/default/topic/999493/jetson-tx1/nvidia-multimedia-apis-with-uyvy-sensor/post/5117049/#5117049
(Note: The original example in /usr/src/tegra_multimedia_api/samples/12_camera_v4l2_cuda works fine)
When I run the application with these parameters: ./camera_v4l2_cuda -d /dev/video0 -s 1920x1080 -f UYVY -n 10
I get this output:
libv4l2_nvvidconv (0):(802) (INFO) : Allocating (4) OUTPUT PLANE BUFFERS Layout=0
libv4l2_nvvidconv (0):(818) (INFO) : Allocating (4) CAPTURE PLANE BUFFERS Layout=0
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
875967048
842091865
H264: Profile = 100, Level = 50
encoded frame size 9797
[ERROR] (/media/interactive/SSD/projects/common/classes/NvV4l2ElementPlane.cpp:256) <enc0> Output Plane:Error while Qing buffer: Device or resource busy
ERROR: conv_capture_dqbuf_thread_callback(): (line:638) Failed to queue buffer on ENC output plane
[ERROR] (/media/interactive/SSD/projects/common/classes/NvV4l2ElementPlane.cpp:178) <enc0> Capture Plane:Error while DQing buffer: Broken pipe
encoded frame size 9797
[ERROR] (/media/interactive/SSD/projects/common/classes/NvV4l2ElementPlane.cpp:178) <enc0> Capture Plane:Error while DQing buffer: Broken pipe
encoded frame size 9797
[ERROR] (/media/interactive/SSD/projects/common/classes/NvV4l2ElementPlane.cpp:256) <enc0> Capture Plane:Error while Qing buffer: Device or resource busy
ERROR: enc_capture_dqbuf_thread_callback(): (line:666) Failed to queue buffer on ENC capture plane
Please, could someone guide me on how to solve this problem?
Thank you very much in advance