Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #53071

Re: Phonon error: libv4l2: error getting pixformat: Invalid argument

References <12e50d6e-d3a6-465e-9d56-3ad3507964f7@googlegroups.com>
Date 2013-08-28 00:50 +1000
Subject Re: Phonon error: libv4l2: error getting pixformat: Invalid argument
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.274.1377615030.19984.python-list@python.org> (permalink)

Show all headers | View raw


On Tue, Aug 27, 2013 at 1:42 PM,  <tausciam@gmail.com> wrote:
> Here is my code. I'm just trying to play an mp3 that I've clicked in a PyQT listwidget:
>
>     @pyqtSlot()
>     def item_clicked(self):
>         row = self.listWidget.currentRow()
>         song = musiclist[row]
>         QCoreApplication.setApplicationName("Phonon")
>         output = Phonon.AudioOutput(Phonon.MusicCategory)
>         m_media = Phonon.MediaObject()
>         Phonon.createPath(m_media, output)
>         m_media.setCurrentSource(Phonon.MediaSource(song))
>         m_media.play()

I can't help with Phonon itself, but here's a general comment: When
you have a problem like this, post the full exception traceback. Also,
if you can, try to cut down the example to the point where you can
post all the code, not just one method; if you make it so we can
actually run the script, it's that much more likely we can help you.
But mainly, the exception traceback - it's very helpful.

Help us to help you! :)

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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