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: GstSystemClockI would expect to be able to see the video test source minimally.
111 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-vaapiTo 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