Hello there,
I want to build an application that will read from a camera, process the frames and save all frames in a video.
I wrote a simple python script to do this but I am always missing the first 30 frames in the video.
Any idea why this is? I have uploaded my script.
pihd_gstreamer.py (4.3 KB) This is my pipeline that is use to create an cv2.VideoWriter.
def gstreamer_video_encoding_pipeline(fileName):
return ("appsrc ! "
"video/x-raw, format=BGR ! "
"queue ! "
"videoconvert ! "
"video/x-raw, format=RGBA ! "
"nvvidconv ! "
"omxh264enc ! "
"video/x-h264, stream-format=byte-stream ! "
"h264parse ! "
"qtmux ! "
“filesink location=%s” % (fileName))
Thanks