Nicolaj
Nicolaj

Reputation: 11

Gstreamer tutorial gives distorted/warped video

I am running Ubuntu (18.04.01 LTS) on a virtual machine (VMware Fusion 11.0.0) and I want to go through the first basic GStreamer tutorial. This example should play a short video from the internet using the playbin element. However, when I compile and run the code, the resulting video is distorted/warped. When I download the file and play it directly from the desktop, everything looks fine. Same problem with other video files.

I have successfully followed the instructions how to install GStreamer (gstreamer-1.0, version 1.14.1) on Ubuntu and all the required additional plugins:

sudo apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools

The same problem occurs when I play the video using gst-launch-1.0 directly in the terminal:

gst-launch-1.0 playbin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm

Anybody has an idea what's going on here?

Thanks in advance.

Upvotes: 0

Views: 835

Answers (1)

Nicolaj
Nicolaj

Reputation: 11

As Florian pointed out in the comments: Use another renderer instead. For me, it was xvimagesink which caused the troubles.

Either

gst-launch-1.0 playbin video-sink=ximagesink uri=...

or

gst-launch-1.0 playbin video-sink=glimagesink uri=...

worked fine.

Upvotes: 1

Related Questions