Generated on Sat 12:01:05 for OpenCV by 1.8.13. The final image format should be cv::Mat. Then we need to decode it as YUV after you get raw stream H.264, then transfer to RGB24. First task is to to import raw H.264 data from network camera is completed.
GStreamer pipeline Here is the gstreamer pipeline we are using for cv2.VideoWriter: appsrc ! videoconvert ! omxh264enc profile=2 preset-level=1 control-rate=2 bitrate=10000000 ! video/x-h264, streamformat=(string)byte-stream ! h264parse ! qtmux ! filesink location=test.mp4 Python code: