Hi all,
1- I used the below gstreamer element for using HW Decoder of jetson nano for RTSP stream:
gstream_elemets = ( 'rtspsrc location={rtps} latency=300 !' 'rtph264depay ! h264parse !' 'queue max-size-buffers=100, leaky=2 !' 'omxh264dec enable-max-performance=1 enable-low-outbuffer=1 !' 'video/x-raw(memory:NVMM),format=(string)NV12 !' 'nvvidconv ! video/x-raw , format=(string)BGRx !' 'videoconvert ! ' 'appsink'). cv2.VideoCapture(gstream_elemets, cv2.CAP_GSTREAMER)
and this part is corrctly work and use NVDEC. I capture the frames and do some processing on frames and then I want to save the frames in video file in disk using HW Encoder of jetson nano, How I can do this with gstremaer + opencv using python code?
2- If I have video file in disk and I want to open with opencv python and then using HW decoder for decoding the frames, How do I can like the above RTSP for source file?