Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #53106
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2013-08-27 17:42 -0700 |
| References | <12e50d6e-d3a6-465e-9d56-3ad3507964f7@googlegroups.com> <mailman.274.1377615030.19984.python-list@python.org> <c8d010bb-e08b-4126-a9da-ff7abcc312e2@googlegroups.com> <15fbb714-ebe8-4b6b-9a96-202faa5b1dd6@googlegroups.com> <99708acd-a544-4dbf-afc1-55bf16a4571b@googlegroups.com> |
| Message-ID | <527b0398-57ce-49c5-96c9-b3e1efed78cb@googlegroups.com> (permalink) |
| Subject | Re: Phonon error: libv4l2: error getting pixformat: Invalid argument |
| From | tausciam@gmail.com |
When I pare down the code to the following, I can't hear the mp3 play either:
#!/usr/bin/env python
import sip
sip.setapi('QString', 2)
import sys
from PyQt4 import QtCore, QtGui
from PyQt4.phonon import Phonon
class MainWindow(QtGui.QMainWindow):
def __init__(self):
super(QtGui.QMainWindow, self).__init__()
self.audioOutput = Phonon.AudioOutput(Phonon.MusicCategory, self)
self.mediaObject = Phonon.MediaObject(self)
self.metaInformationResolver = Phonon.MediaObject(self)
Phonon.createPath(self.mediaObject, self.audioOutput)
self.sources = "/home/tannhaus/Music/A Perfect Circle/eMOTIVE/02 Imagine.mp3"
self.metaInformationResolver.setCurrentSource(Phonon.MediaSource(self.sources))
self.mediaObject.play()
if __name__ == '__main__':
app = QtGui.QApplication(sys.argv)
app.setApplicationName("Music Player")
app.setQuitOnLastWindowClosed(True)
window = MainWindow()
window.show()
sys.exit(app.exec_())
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Phonon error: libv4l2: error getting pixformat: Invalid argument tausciam@gmail.com - 2013-08-26 20:42 -0700
Re: Phonon error: libv4l2: error getting pixformat: Invalid argument tausciam@gmail.com - 2013-08-27 04:45 -0700
Re: Phonon error: libv4l2: error getting pixformat: Invalid argument Chris Angelico <rosuav@gmail.com> - 2013-08-28 00:50 +1000
Re: Phonon error: libv4l2: error getting pixformat: Invalid argument tausciam@gmail.com - 2013-08-27 16:17 -0700
Re: Phonon error: libv4l2: error getting pixformat: Invalid argument tausciam@gmail.com - 2013-08-27 16:26 -0700
Re: Phonon error: libv4l2: error getting pixformat: Invalid argument tausciam@gmail.com - 2013-08-27 16:39 -0700
Re: Phonon error: libv4l2: error getting pixformat: Invalid argument tausciam@gmail.com - 2013-08-27 17:42 -0700
Re: Phonon error: libv4l2: error getting pixformat: Invalid argument tausciam@gmail.com - 2013-08-27 17:56 -0700
csiph-web