PDA

View Full Version : Gstreamer video receive in Qt



ali.pro
27th February 2014, 12:20
Hi
i'm using Gstreamer for stream my webcam C920 from an arm board to my Pc.
i use H264 compression witch is sported with c920.
streaming code is :

./capture -c 10000 -o | gst-launch-0.10 -v -e filesrc location=/dev/fd/0 ! h264parse ! rtph264pay ! udpsink host=192.168.1.20 port=1234

and for receive in PC:

gst-launch udpsrc port=1234 ! “application/x-rtp, payload=127” ! rtph264depay ! ffdec_h264 ! xvimagesink sync=false

could some one help me to get video in Qt.
I want to use video in my program.

ChrisW67
28th February 2014, 05:07
Let us just assume that "my program" is at the receiving end and that you really want to use the gstreamer pipelines you have constructed.

Start the receiving stream using QProcess and change the endpoint to a filesink writing to /dev/fd/0 (or a named pipe). Then you should be able to read the video stream from the standard output channel of the QProcess instance (or the named pipe). What you do with it then is entirely up to you.