[Python-modules-team] Bug#506979: Bug#506979: python-qt4: Please package with Phonon

Torsten Marek shlomme at gmx.net
Wed Dec 3 08:38:12 UTC 2008


Hi Christoph,


> I had to install python-sip4_4.7.9-1_i386.deb to actually make it
> work. Before that my whole python-qt4 installation was broken, should
> be so for others too.

Sorry for that, I hadn't realized that there was an ABI change. I'll fix
that in the next upload.


> 
> Now, when I follow simple steps:
> 
> from PyQt4.phonon import Phonon
> 
> mediaObject = Phonon.createPlayer(Phonon.NotificationCategory,
> 
> Phonon.MediaSource("local.mp3"))
> 
> mediaObject.play()
> 
> I get the following lines on stdout:
> 
> Phonon::KdePlatformPlugin::createBackend: using backend: "GStreamer" 
> 
> ALSA lib setup.c:555:(add_elem) Cannot obtain info for CTL elem
> (MIXER,'IEC958 Playback Default',0,0,0): No such file or directory 
> 
> ALSA lib setup.c:555:(add_elem) Cannot obtain info for CTL elem
> (MIXER,'IEC958 Playback Default',0,0,0): No such file or directory 
> 
> virtual bool Phonon::Gstreamer::AudioOutput::setOutputDevice(const
> Phonon::AudioOutputDevice&) "Intel 82801DB-ICH4 with AD1981B (Intel
> 82801DB-ICH4)" 
> 
> virtual bool Phonon::Gstreamer::AudioOutput::setOutputDevice(const
> Phonon::AudioOutputDevice&) () 
> 
> virtual bool Phonon::Gstreamer::AudioOutput::setOutputDevice(const
> Phonon::AudioOutputDevice&) "Intel 82801DB-ICH4 with AD1981B (Intel
> 82801DB-ICH4 - IEC958)" 
> 
> virtual bool Phonon::Gstreamer::AudioOutput::setOutputDevice(const
> Phonon::AudioOutputDevice&) () 
> 
> virtual bool Phonon::Gstreamer::AudioOutput::setOutputDevice(const
> Phonon::AudioOutputDevice&) "Creative Technology SB Live! 24-bit
> External (USB Audio)" 
> 
> virtual bool Phonon::Gstreamer::AudioOutput::setOutputDevice(const
> Phonon::AudioOutputDevice&) () 
> 
> virtual bool Phonon::Gstreamer::AudioOutput::setOutputDevice(const
> Phonon::AudioOutputDevice&) "Intel 82801DB-ICH4, Intel 82801DB-ICH4
> (Front speakers)" 
> 
> virtual bool Phonon::Gstreamer::AudioOutput::setOutputDevice(const
> Phonon::AudioOutputDevice&) ("front:CARD=I82801DBICH4,DEV=0") 
> 
> virtual bool Phonon::Gstreamer::AudioOutput::setOutputDevice(const
> Phonon::AudioOutputDevice&) setProperty(device,
> "front:CARD=I82801DBICH4,DEV=0" ) succeeded 
> 
> virtual bool Phonon::Gstreamer::AudioOutput::setOutputDevice(const
> Phonon::AudioOutputDevice&) go to old state on device
> "front:CARD=I82801DBICH4,DEV=0" succeeded 
> 
> ALSA lib setup.c:555:(add_elem) Cannot obtain info for CTL elem
> (MIXER,'IEC958 Playback Default',0,0,0): No such file or directory 
> 
> I don't get any actual sound output. It seems like Phonon is probing
> all available sound cards and failing.
> 
> And indeed qtconfig-qt4 is grayed out in the Phonon configuration
> section and says "Phonon GStreamer backend is not available".

I think these are two problems. The qtconfig-qt4 configuration is grayed
out because Qt4 is built without phonon - Debian's phonon comes from the
"real" upstream releases, and Qt4 only contains a copy (which is older).
I guess Qt4 needs to build-depend on libphonon-dev, but that's not the
core of the problem. 

As for Phonon not finding its backends, that seems to be purely a
configuration issue. On my system, the file plays just fine using phonon
4.2.0-2.
> 
> KDE Phonon though works, is that a packaging problem? Do I need other
> packages installed?

Are you running KDE when trying out the PyQt4 code?
> 
> Should I open a new bug report?

Does a C++ version of your Python code behave in the same way? If it
does, then it's a Phonon problem.


best,


Torsten
-- 
.: Torsten Marek
.: http://shlomme.diotavelli.net
.: torsten at diotavelli.net -- GnuPG: 1024D/A244C858

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20081203/5c8f336e/attachment.pgp 


More information about the Python-modules-team mailing list