gst-launch-1.0 videotestsrc ! autovideosink (does not work for me!)

I am using Ubuntu 18.04.3 LTS, and I followed the guidelines listed on to install gstreamer.

I think my installation has problem as I did not see any test source with this pipeline:

u2@u2:~$ gst-launch-1.0 videotestsrc ! autovideosink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Got context from element 'autovideosink0-actual-sink-vaapi': gst.vaapi.Display=context, gst.vaapi.Display=(GstVaapiDisplay)"\(GstVaapiDisplayDRM\)\ vaapidisplaydrm2";
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

I would expect to be able to see the video test source minimally.

11

1 Answer

Got the same issue with you: autovideosink can play video but doesn't display it in a window. Try:

gst-launch-1.0 videotestsrc ! ximagesink

Also, glimagesink works for us.

Hope to know more working sink elements.

*To play a local .mp4 video, use:

gst-launch-1.0 playbin uri=file:///home/path/to/your/video.mp4 video-sink="ximagesink"

**To make autovideosink works, try:

sudo apt-get remove gstreamer1.0-vaapi

To be honest, above beginner-level gears blocked us for a while, and we had very hard time to resolve such simple questions :)

Hope it is helpful to all gstreamer newbies !

4

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like