Resolution of the output window

luke skywal_l at hotmail.com
Wed Jul 15 20:30:18 UTC 2020


I am streaming my desktop through UDP with a 264 encoding using ximagesrc (linux).

gst-launch-1.0 ximagesrc startx=0 use-damage=0 ! videoconvert ! x264enc ! rtph264pay ! udpsink host=127.0.0.1 port=9002

On the client side I display that stream this way:

gst-launch-1.0 udpsrc port=9002 caps='application/x-rtp' ! rtph264depay ! avdec_h264 ! autovideosink

My desktop resolution is 1920x1080. In the servers logs, I can see the broadcasted resolution is correct:

/GstPipeline:pipeline0/GstUDPSink:udpsink0.GstPad:sink: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, packetization-mode=(string)1, profile-level-id=(string)f40028, sprop-parameter-sets=(string)"Z/QAKJGbKA8ARPxOAtQEBAUAAAMAAQAAAwAyjxgxlg\=\=\,aOvsRIA\=", payload=(int)96, ssrc=(uint)3203890180, timestamp-offset=(uint)1357659365, seqnum-offset=(uint)3799, a-framerate=(string)25

On the client, the resolution logged seems correct too:

/GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0.GstGhostPad:sink: caps = video/x-raw, format=(string)Y444, width=(int)1920, height=(int)1080, interlace-mode=(string)progressive, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2, colorimetry=(string)bt709, framerate=(fraction)25/1

However the window displayed is very small and the resolution is poor. I can always set the window on fullscreen but the resolution is still terrible due to the interpolation applied. I am quite a newbie at gstreamer, so they are many variables I don't quite understand, but I really don't see what controls the output window resolution here which is clearly not 1920x1080. Any idea ?

Thanks for your help.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200715/73fb1a1e/attachment.htm>


More information about the gstreamer-devel mailing list