Hi all,
I want to do decoding multi-stream RTSP using h264 hardware decoder of jetson nano, but When I use nvv4l2decoder for decoding, Doesn’t work, but omxh264dec is work correctly.
I want to use drop-frame-interval options of nvv4l2decoder, but this option isn’t exist in omxh264dec,
my jetson nano system :
cuda 10.0
jetpack 4.2.2
opencv 3.4.6 and cuda support and gstreamer support (build from source)
The below code is work correctly, but when I put nvv4l2decoder instead of omxh264dec, the decoder doesn’t work.
gstream_elemets = (
'rtspsrc location=rtsp latency=300 !'
'rtph264depay ! h264parse !'
'queue max-size-buffers=10 !'
'omxh264dec enable-max-performance=1 enable-low-outbuffer=1 !'
'video/x-raw(memory:NVMM),format=(string)NV12 !'
'nvvidconv ! video/x-raw format=(string)BGRx !'
'queue max-size-buffers=10 !'
'videoconvert ! '
'appsink')
cv2.VideoCapture(gstream_elemets, cv2.CAP_GSTREAMER)
I also this work for filesrc but don’t work for rtspsrc, why?
gst_str = ('filesrc location=file_path latency=300 ! '
'qtdemux ! h264parse ! nvv4l2decoder ! '
'nvvidconv ! '
'video/x-raw, '
'format=(string)NV12 ! '
'videoconvert !'
'appsink ')
cv2.VideoCapture(gst_str, cv2.CAP_GSTREAMER)