detrout / qt-gstreamer

Qt Gstreamer 1.0: this is my staging area to send patches to freedesktop
http://cgit.freedesktop.org/gstreamer/qt-gstreamer/
GNU Lesser General Public License v2.1
15 stars 16 forks source link

Examples not working #2

Open hei5enbrg opened 9 years ago

hei5enbrg commented 9 years ago

gstreamer-1.4.5 gst-plugins-base-1.4.5 installed from tarballs then, installed qt-gstreamer-1.2.0 : $ mkdir build && cd build $ cmake .. -DQTGSTREAMER_EXAMPLES=[ON] -DCMAKE_INSTALL_PREFIX=/path/to/installation/prefix $ make $ make install

the examples are built successfully, but there is no video playback when runnig

detrout commented 9 years ago

Since its been a while. I wanted to say I saw your report I just haven't had a chance to investigate.

detrout commented 9 years ago

I had a chance to look. The examples run in the build tree. Do they work for you in the build tree?

vdehors commented 9 years ago

As examples for player (player & qmlplayer) uses playbin element, you need all elements required to decode your video, which can be provided by others packages than gst-plugins-base-1.4.5 (depending on your video). Having the element "playbin" may not be enough to decode it.

Does the playback works using gst-launch ?

hei5enbrg commented 9 years ago

@detrout : Nope, It didn't work in the build tree. I might missed some dependency?? Thank you for your help. I will try again. @vdehors : I didn't aware of gst-launch. what should I do to make this work with gst-launch ? I assume apt-get install gstreamer-tools will provide gst-launch. Or should I compile it from source ? Thank you very much.

vdehors commented 9 years ago

I think gst-launch is provided by your tarball of gstreamer1.0. To check the playback of your video, you can launch :

gst-launch-1.0 playbin uri="file://[path to your video]"

Note that if you give an absolute path, there is three '/' after "file:". Ex: file:///home/user/video.avi.

If the playback failed because of a gstreamer element missing, you should have an error. If the playback works, it may be a issue related to qtgstreamer.

detrout commented 9 years ago

Also abhi94, what OS are your running? Did you try both qmlplayer and player? Did you build against Qt4 or Qt5?