OpenCV video write Help on Nano

Hi,
A general solution is to run gstreamer pipelines in cv2.VideoCapture() and cv2.VideoWriter(). Please take a look at
Displaying to the screen with OpenCV and GStreamer - #9 by DaneLLL

See if you can run it successfully and customize it to run your use-case.