[Qt-interest] Kubuntu 8.10 Qt 4.4.3 phonon gstreamer mess :-(

Bart van Deenen bvandeenen at infologic.nl
Thu Dec 11 16:10:03 CET 2008


Hi all

I'm struggling to get phonon working well on my Kubuntu 8.10 box.

I'm having the following troubles:

The qt-x11-opensource-src-4.4.3 I have built has configure options
-phonon and -phonon-backend. I've managed to build qt with both of them,
it correctly recognizes gstreamer, and installs
in /usr/local/Trolltech/Qt-4.4.3/

The documentation mentions 
#include <Phonon>
for pretty much all examples, but

there is no such thing inside that directory:
kubu:/usr/local/Trolltech/Qt-4.4.3$ find . -name Phonon

kubu:/usr/local/Trolltech/Qt-4.4.3$ find . | grep -wi mediaobject
./doc/html/phonon-mediaobject-members.html
./doc/html/phonon-mediaobject.html
./include/phonon/mediaobject.h
./include/Qt/mediaobject.h

kubu:~$ env | grep QT
QTDIR=/usr/local/Trolltech/Qt-4.4.3
QT=/usr/local/Trolltech/Qt-4.4.3/

kubu:~/workspace/Qt-jds6/movie-sequence-test$ qmake -version
QMake version 2.01a
Using Qt version 4.4.3 in /usr/local/Trolltech/Qt-4.4.3/lib

So I've cobbled together a Phonon file that just includes all those
other includes.

I manage to compile an application which shows some videos:

    media = new Phonon::MediaObject(this);
    Phonon::VideoWidget *vwidget = new Phonon::VideoWidget(this);
    Phonon::createPath(media, vwidget);
    gridLayout->addWidget(vwidget);

    QList<Phonon::MediaSource> media_list;
    media_list.append(Phonon::MediaSource(QString("file.mpg")));

    media->setQueue(media_list);
    media->play();

for some of the files I'm trying there is absolutely nothing showing in
the widget, and others work fine (all of type mpg). The stupid thing is
that the same files work fine in totem which also uses gstreamer as a
backend.
It gets worse: just building my application without playing any files,
causes a QFileDialog::getOpenFileName to crash. I've verified this by
just not instantiating any of the Phonon:: objects.

I have pretty much all gstreamer packages installed (see end of
posting).

So how can the phonon application not show the same movie that totem
does show?

So which phonon version should I use, the one that is from Qt or the one
from KDE?

And why doesn't the Qt configure notice the xine development files that
I have installed? Xine seems to me more mature, and without so much
trouble as the gstreamer stuff.

kubu:~$ apt-cache search phonon-backend-xine --names-only --installed -q
phonon-backend-xine - Phonon Xine 1.1.x backend


So what do people on this list use to develop Qt+phonon? I have been
struggling with this stuff for two days now.

Thanks

Bart van Deenen

P.S. sorry for the irritated tone of this posting, but It's driving me
nuts!

kubu:~$ apt-cache search gstreamer --names-only --installed -q | \
awk '{print $1}'


gstreamer-tools                                                                                                        
gstreamer0.10-alsa                                                                                                     
gstreamer0.10-doc                                                                                                      
gstreamer0.10-esd                                                                                                      
gstreamer0.10-gnomevfs                                                                                                 
gstreamer0.10-plugins-base                                                                                             
gstreamer0.10-plugins-base-apps                                                                                        
gstreamer0.10-plugins-base-dbg                                                                                         
gstreamer0.10-plugins-base-doc                                                                                         
gstreamer0.10-plugins-good                                                                                             
gstreamer0.10-plugins-good-dbg                                                                                         
gstreamer0.10-plugins-good-doc
gstreamer0.10-pulseaudio
gstreamer0.10-schroedinger
gstreamer0.10-tools
gstreamer0.10-x
libgstreamer-plugins-base0.10-0
libgstreamer-plugins-base0.10-dev
libgstreamer0.10-0
libgstreamer0.10-0-dbg
libgstreamer0.10-dev
phonon-backend-gstreamer
deejayd-gstreamer
gstreamer-dbus-media-service
gstreamer0.10-ffmpeg
gstreamer0.10-fluendo-mp3
gstreamer0.10-fluendo-mpegdemux
gstreamer0.10-fluendo-mpegmux
gstreamer0.10-gnonlin
gstreamer0.10-gnonlin-dev
gstreamer0.10-packagekit
gstreamer0.10-pitfdll
gstreamer0.10-plugins-bad
gstreamer0.10-plugins-bad-dbg
gstreamer0.10-plugins-bad-doc
gstreamer0.10-plugins-farsight
gstreamer0.10-sdl
kaffeine-gstreamer
libghc6-gstreamer-dev
libgstreamer-perl
libgstreamer0.10-ruby
libgstreamer0.10-ruby1.8
ultrastar-ng-gstreamer
gstreamer0.10-plugins-bad-multiverse
gstreamer0.10-plugins-bad-multiverse-dbg
gstreamer0.10-plugins-ugly-multiverse
gstreamer0.10-plugins-ugly-multiverse-dbg
totem-gstreamer
gstreamer0.10-plugins-ugly
gstreamer0.10-plugins-ugly-dbg
gstreamer0.10-plugins-ugly-doc
gstreamer0.10-fluendo-plugins-doc
gstreamer0.10-fluendo-plugins-wmv-doc





More information about the Qt-interest-old mailing list