Kenny Low
Kenny Low

Reputation: 33

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 https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c 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.

Upvotes: 3

Views: 16510

Answers (1)

Luke L
Luke L

Reputation: 104

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 !

Upvotes: 8

Related Questions