It’s can work.
Thanks.
But I try nvv4l2h264enc
open perfomace mode
Set property maxperf-enable=1
Can’t open camera
How can I fix it?
Thanks!
Display theese errors:
(python3:89676): GStreamer-CRITICAL **: 09:51:57.498: gst_caps_get_structure: assertion 'GST_IS_CAPS (caps)' failed
(python3:89676): GStreamer-CRITICAL **: 09:51:57.498: gst_structure_get_int: assertion 'structure != NULL' failed
[ WARN:0] global /home/ubuntu/build_opencv/opencv/modules/videoio/src/cap_gstreamer.cpp (1079) open OpenCV | GStreamer warning: cannot query video width/height
(python3:89676): GStreamer-CRITICAL **: 09:51:57.498: gst_structure_get_fraction: assertion 'structure != NULL' failed
[ WARN:0] global /home/ubuntu/build_opencv/opencv/modules/videoio/src/cap_gstreamer.cpp (1085) open OpenCV | GStreamer warning: cannot query video fps
[ WARN:0] global /home/ubuntu/build_opencv/opencv/modules/videoio/src/cap_gstreamer.cpp (1100) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1
(python3:89677): GStreamer-CRITICAL **: 09:51:57.507: gst_caps_get_structure: assertion 'GST_IS_CAPS (caps)' failed
(python3:89677): GStreamer-CRITICAL **: 09:51:57.507: gst_structure_get_int: assertion 'structure != NULL' failed
[ WARN:0] global /home/ubuntu/build_opencv/opencv/modules/videoio/src/cap_gstreamer.cpp (1079) open OpenCV | GStreamer warning: cannot query video width/height
(python3:89677): GStreamer-CRITICAL **: 09:51:57.507: gst_structure_get_fraction: assertion 'structure != NULL' failed
[ WARN:0] global /home/ubuntu/build_opencv/opencv/modules/videoio/src/cap_gstreamer.cpp (1085) open OpenCV | GStreamer warning: cannot query video fps
[ WARN:0] global /home/ubuntu/build_opencv/opencv/modules/videoio/src/cap_gstreamer.cpp (1100) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1
(python3:89678): GStreamer-CRITICAL **: 09:51:57.512: gst_caps_get_structure: assertion 'GST_IS_CAPS (caps)' failed
(python3:89678): GStreamer-CRITICAL **: 09:51:57.512: gst_structure_get_int: assertion 'structure != NULL' failed
[ WARN:0] global /home/ubuntu/build_opencv/opencv/modules/videoio/src/cap_gstreamer.cpp (1079) open OpenCV | GStreamer warning: cannot query video width/height
(python3:89678): GStreamer-CRITICAL **: 09:51:57.512: gst_structure_get_fraction: assertion 'structure != NULL' failed
[ WARN:0] global /home/ubuntu/build_opencv/opencv/modules/videoio/src/cap_gstreamer.cpp (1085) open OpenCV | GStreamer warning: cannot query video fps
[ WARN:0] global /home/ubuntu/build_opencv/opencv/modules/videoio/src/cap_gstreamer.cpp (1100) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1
(python3:89679): GStreamer-CRITICAL **: 09:51:57.523: gst_caps_get_structure: assertion 'GST_IS_CAPS (caps)' failed
(python3:89679): GStreamer-CRITICAL **: 09:51:57.523: gst_structure_get_int: assertion 'structure != NULL' failed
[ WARN:0] global /home/ubuntu/build_opencv/opencv/modules/videoio/src/cap_gstreamer.cpp (1079) open OpenCV | GStreamer warning: cannot query video width/height
(python3:89679): GStreamer-CRITICAL **: 09:51:57.523: gst_structure_get_fraction: assertion 'structure != NULL' failed
[ WARN:0] global /home/ubuntu/build_opencv/opencv/modules/videoio/src/cap_gstreamer.cpp (1085) open OpenCV | GStreamer warning: cannot query video fps
[ WARN:0] global /home/ubuntu/build_opencv/opencv/modules/videoio/src/cap_gstreamer.cpp (1100) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 4
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
[12/13/2024-09:51:58] [TRT] [I] Loaded engine size: 11 MiB
[12/13/2024-09:51:58] [TRT] [W] Using an engine plan file across different models of devices is not recommended and is likely to affect performance or even cause errors.
[12/13/2024-09:51:58] [TRT] [I] Loaded engine size: 11 MiB
[12/13/2024-09:51:58] [TRT] [I] Loaded engine size: 11 MiB
[12/13/2024-09:51:58] [TRT] [W] Using an engine plan file across different models of devices is not recommended and is likely to affect performance or even cause errors.
[12/13/2024-09:51:58] [TRT] [I] Loaded engine size: 11 MiB
[12/13/2024-09:51:58] [TRT] [W] Using an engine plan file across different models of devices is not recommended and is likely to affect performance or even cause errors.
[12/13/2024-09:51:58] [TRT] [W] Using an engine plan file across different models of devices is not recommended and is likely to affect performance or even cause errors.
[12/13/2024-09:51:59] [TRT] [I] [MemUsageChange] Init cuDNN: CPU +616, GPU +2273, now: CPU 1011, GPU 13196 (MiB)
[12/13/2024-09:51:59] [TRT] [I] [MemUsageChange] Init cuDNN: CPU +616, GPU +2395, now: CPU 1011, GPU 13198 (MiB)
[12/13/2024-09:51:59] [TRT] [I] [MemUsageChange] TensorRT-managed allocation in engine deserialization: CPU +0, GPU +10, now: CPU 0, GPU 10 (MiB)
[12/13/2024-09:51:59] [TRT] [I] [MemUsageChange] Init cuDNN: CPU +1, GPU +1, now: CPU 1000, GPU 13188 (MiB)
[12/13/2024-09:51:59] [TRT] [I] [MemUsageChange] TensorRT-managed allocation in engine deserialization: CPU +0, GPU +10, now: CPU 0, GPU 10 (MiB)
[12/13/2024-09:51:59] [TRT] [I] [MemUsageChange] Init cuDNN: CPU +0, GPU +4, now: CPU 1000, GPU 13184 (MiB)
[12/13/2024-09:51:59] [TRT] [I] [MemUsageChange] Init cuDNN: CPU +617, GPU +2199, now: CPU 1012, GPU 13199 (MiB)
[12/13/2024-09:51:59] [TRT] [I] [MemUsageChange] TensorRT-managed allocation in IExecutionContext creation: CPU +0, GPU +18, now: CPU 0, GPU 28 (MiB)
[12/13/2024-09:51:59] [TRT] [I] [MemUsageChange] TensorRT-managed allocation in engine deserialization: CPU +0, GPU +10, now: CPU 0, GPU 10 (MiB)
[12/13/2024-09:51:59] [TRT] [I] [MemUsageChange] Init cuDNN: CPU +0, GPU +3, now: CPU 999, GPU 13195 (MiB)
[12/13/2024-09:51:59] [TRT] [I] [MemUsageChange] TensorRT-managed allocation in IExecutionContext creation: CPU +0, GPU +18, now: CPU 0, GPU 28 (MiB)
[12/13/2024-09:51:59] [TRT] [I] [MemUsageChange] Init cuDNN: CPU +617, GPU +2244, now: CPU 1011, GPU 13205 (MiB)
[12/13/2024-09:51:59] [TRT] [I] [MemUsageChange] TensorRT-managed allocation in engine deserialization: CPU +0, GPU +10, now: CPU 0, GPU 10 (MiB)
[12/13/2024-09:51:59] [TRT] [I] [MemUsageChange] Init cuDNN: CPU +0, GPU +4, now: CPU 1000, GPU 13206 (MiB)
[12/13/2024-09:51:59] [TRT] [I] [MemUsageChange] TensorRT-managed allocation in IExecutionContext creation: CPU +0, GPU +18, now: CPU 0, GPU 28 (MiB)
[12/13/2024-09:51:59] [TRT] [I] [MemUsageChange] TensorRT-managed allocation in IExecutionContext creation: CPU +0, GPU +18, now: CPU 0, GPU 28 (MiB)
H264: Profile = 66, Level = 0
H264: Profile = 66, Level = 0
NVMEDIA: Need to set EMC bandwidth : 21000
NVMEDIA: Need to set EMC bandwidth : 21000
NVMEDIA_ENC: bBlitMode is set to TRUE
NVMEDIA_ENC: bBlitMode is set to TRUE
NvHostHost1xChannelSetModuleClockRate: NvError_IoctlFailed with error code 22
H264: Profile = 66, Level = 0
NvHostHost1xChannelSetModuleClockRate: NvError_IoctlFailed with error code 22
NVMEDIA: Need to set EMC bandwidth : 21000
NvHostHost1xChannelSetModuleBandwidth: NvError_IoctlFailed with error code 22
NVMEDIA_ENC: bBlitMode is set to TRUE
NvHostHost1xChannelSetModuleClockRate: NvError_IoctlFailed with error code 22
H264: Profile = 66, Level = 0
NVMEDIA: Need to set EMC bandwidth : 21000
NvHostHost1xChannelSetModuleBandwidth: NvError_IoctlFailed with error code 22
NVMEDIA_ENC: bBlitMode is set to TRUE
NvHostHost1xChannelSetModuleClockRate: NvError_IoctlFailed with error code 22