I'm trying to stream some images form opencv using gstreamer and I got ome issues with the pipeline. I'm new to gstreamer and opencv in general. I compiled opencv 3.2 with gstreamer for python3 on a raspberry pi 3. I have a little bash script that I use with raspivid
I wanted to translate this pipeline in order to use it from opencv and feed into it images that my algorithm manipulates. I did some research and figured that I can use videoWriter with appsrc instead of fdsrc but I get the following error
GStreamer Plugin: Embedded video playback halted; module appsrc0 reported: Internal data flow error.
The python script that I came up with is the following by the way
ret, frame = cap.read()
frame = cv2.flip(frame, 0)
# write the flipped frame
if cv2.waitKey(1) & 0xFF == ord('q'):
# Release everything if job is finished
Is there any error in the pipeline? I don't understand the error. I already have a Python client that can read from the bash pipeline and the result are pretty good from the latency perspective and consumed resources .