autovideosink not displaying

Michael Gruner michael.gruner at ridgerun.com
Thu Aug 11 16:40:12 UTC 2022


A shot in the dark here, but are you for a chance starting the receiver from a SSH session? If that is the case, autovideosink will not be able to find a functioning display, unless you set  the DISPLAY variable accordingly (export DISPLAY=:0, for example).

BTW, this all this only applies if the receiver is running an X server.

> On 11 Aug 2022, at 09:52, Lane via gstreamer-devel <gstreamer-devel at lists.freedesktop.org> wrote:
> 
> Hi,
> 
> I'm sending a gstreamer videotestsrc from one host to an autovideosink
> on another host within a VPN. With the use of a VPN, the sender and
> receiver are on the same subnet. The problem is, even though I can see
> packets arriving from the remote host via the VPN, as shown by
> wireshark, nothing is displaying on the receiving side. However, it
> works just fine on localhost or on a local subnet from one machine to
> another.
> 
> I send with the following:
>    $ gst-launch-1.0 -v videotestsrc ! video/x-raw,framerate=20/1 !
> videoscale ! videoconvert ! x264enc tune=zerolatency bitrate=500
> speed-preset=superfast ! rtph264pay ! udpsink host=$HOST port=$PORT
> 
> And receive with:
>    $ gst-launch-1.0 -v udpsrc port=$PORT caps = "application/x-rtp,
> media=(string)video, clock-rate=(int)90000,
> encoding-name=(string)H264, payload=(int)96" ! rtph264depay !
> decodebin ! videoconvert ! autovideosink
> 
> Any thoughts as to why this isn't working over a VPN?



More information about the gstreamer-devel mailing list