Frame resolution settings in gstreamer pipeline

Mohammad, Jamal M MohammadJamal.Mohiuddin at ncr.com
Fri Feb 2 04:37:10 UTC 2018


Hi Guys,

I am streaming my laptop screen on my IP based display using gstreamer.
Here is the pipeline on both ends:

Laptop:
C:\gstreamer\1.0\x86_64\bin\gst-launch-1.0.exe -v dx9screencapsrc ! queue ! videoconvert ! x264enc ! "video/x-h264,profile=baseline" ! h264parse config-interval=-1 ! rtph264pay pt=96 config-interval=-1 ! udpsink host=<ipaddr> port=5004 sync=true

IP Display:

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

The problem is IP Display resolution is 1024x768 but the source plugin is generating 1920x1080, which is my laptop resolution..

I need to convert this to the resolution of IP Display, I modified the pipeline on the laptop to following:
C:\gstreamer\1.0\x86_64\bin\gst-launch-1.0.exe -v dx9screencapsrc  ! video/x-raw, width=1024,height=768,framerate=30/1 !queue ! videoconvert  ! x264enc  ! "video/x-h264,profile=baseline" ! h264parse config-interval=-1 ! rtph264pay pt=96 config-interval=-1 ! udpsink host=<IPAddress> port=5004 sync=true

It fails with the following error:
WARNING: erroneous pipeline: could not link dx9screencapsrc0 to queue0, dx9screencapsrc0 can't handle caps video/x-raw, width=(int)1024, height=(int)768, framerate=(fraction)30/1

Looking at the caps of dx9screencapsrc using gst-inspect-1.0, it has cap for width and height.
How can I acheive my requirement of capturing the whole screen but converting it to 1024x768

Thanks,
Mohammad Jamal Mohiuddin
Software Engineer, Retail Hosp/HW
NCR Corporation India Pvt Ltd.
MohammadJamal.Mohiuddin at ncr.com<mailto:MohammadJamal.Mohiuddin at ncr.com> | www.ncr.com<http://www.ncr.com>
 << OLE Object: Picture (Device Independent Bitmap) >>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180202/2ddada53/attachment-0001.html>


More information about the gstreamer-devel mailing list