Skip to content Skip to sidebar Skip to footer

Grab The Frame From Gst Pipeline To Opencv With Python

I'm using OpenCV and GStreamer 0.10. I use this pipeline to receive the MPEG ts packets over UDP with a custom socket sockfd provided by python and display it with xvimagesink, an

Solution 1:

Thanks, I have tried to use rtph264pay to broadcast the live video steam to udpsink. Following commend line is for the gst pipeline:

PIPELINE_DEF = 
"udpsrc name=src !" \               
"mpegtsdemux !" \       
"queue !" \               
"h264parse !" \ 
"rtph264pay !" \   
"udpsink host=127.0.0.1 port=5000"

And I built a sdp file to make it can be received by opencv likes videocapture("123.sdp") 123.sdp, following content is for this sdp file:

c=IN IP4 127.0.0.1m=video 5000 RTP/AVP 96a=rtpmap:96 H264/90000

It worked well now, just need to delete "blocksize=1316 closefd=false buffer-size=5600" to release the limitation.

Post a Comment for "Grab The Frame From Gst Pipeline To Opencv With Python"