windowsstreaminggstreamergst-launch

Streaming windows desktop using gstreamer


I have an customized i.MX6 Board which has a LCD Display connected to it. We have been streaming videos over IP using gstreamer udpsrc/udpsink pipelines..

Pipeline at PC:

C:\gstreamer\1.0\x86_64\bin\gst-launch-1.0.exe -v filesrc location=C:\\gstreamer\\1.0\\x86_64\\bin\\hash.h264 ! h264parse config-interval=-1 ! rtph264pay pt=96 config-interval=-1 ! udpsink host=<ip address> port=5004 sync=true

Pipeline on i.MX6:

gst-launch -v udpsrc port=5004 ! application/x-rtp, payload=96 ! rtph264depay ! vpudec low-latency=true ! imxv4l2sink sync=false

Is there any way I modify the PC pipeline to get the windows desktop streamed to embedded board display or what are the steps required to stream the windows desktop using gstreamer


Solution

  • The winscreencap plugin (https://github.com/agx/gst-plugins-bad/tree/master/sys/winscreencap) includes two elements for capturing windows desktops - dx9screencapsrc and gdiscreencapsrc.