[Qt-interest] Kubuntu 8.10 Qt 4.4.3 phonon gstreamer mess :-(
Jens Bache-Wiig
jbache at trolltech.com
Thu Dec 11 16:35:30 CET 2008
> 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();
>
You are not checking the errorstate here. You can have a look at the
mediaplayer example and see how it performs on the same videos, but my
guess is that you are lacking audio codecs for some of the files you are
using. If you get into errorstate and the errorType is not fatal, you
should still be able to call play on it afterwards.
> 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 suspect this crash is caused by the kde platform plugin. Try to
temporarily remove /usr/lib/kde4/plugins/phonon_platform/kde.so
and see if it resolves the issue.
> So how can the phonon application not show the same movie that totem
> does show?
See above. You need to handle the error.
> So which phonon version should I use, the one that is from Qt or the one
> from KDE?
This issue is usually left to the distros. In Kubuntu they seem to ship
Qt without Phonon, meaning it relies on the version shipped in KDE. They
are compatible but might not neccessarily be at the same version number.
> And why doesn't the Qt configure notice the xine development files that
> I have installed?
Qt cannot ship with Xine for legal reasons. Hence only gstreamer is
supported out of the box.
--
Jens Bache-Wiig - jbache at trolltech.com
Nokia - Qt Software- Sandakerveien 116, P.O. Box 4332 Nydalen, 0402
Oslo, Norway
More information about the Qt-interest-old
mailing list