×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2012
    Posts
    2

    Creating a new QMovie provider in PySide

    Hello.

    Can anybody point me in the right direction on how to create a new QMovie "provider" in PySide?

    I have a video stream that I want to display as simply as possible (no audio, just a sequence of frames with an unknown framerate). This example (http://qt.gitorious.org/pyside/pysid...movie/movie.py) seems perfect except that my video is coming from an unconventional source. It's not a file but a network stream in a format that is not standardized. I can easily write code that receives each frame and my idea is to create a "QMovie provider" so that I can just display this stream on a label like in the example above.

    My first thought was to just subclass QMovie and overwrite a few functions there but I started having second thoughts about that when reading the documentation (http://www.pyside.org/docs/pyside/Py...e.QtGui.QMovie) since I don't know what I should do about the device my instance would be reading from.

    I noticed in the aforementioned documentation that QMovie uses QImageReader so my next thought was to extend that class and have it read frames from my stream. That poses similar questions however, for example, what should I do with the "supportedImageFormats()" function?

    So basically I'm a little stumped and would really appreciate any pointers or tutorials on how to get a QLabel to display my video stream in a PySide application.

    Kind regards,
    Stefan Freyr.

  2. #2
    Registered User
    Join Date
    Jul 2012
    Posts
    2

    Re: Creating a new QMovie provider in PySide

    Nevermind... I figured it out.

    In case anyone is interested I asked this question on stackoverflow.com and posted my answer there once I had figured it out:
    http://stackoverflow.com/questions/1...el-with-pyside

    Kind regards,
    Stefan Freyr.

Similar Threads

  1. PySide Assistant on Mac
    By rishabh11 in forum Nokia N9
    Replies: 1
    Last Post: 2011-09-08, 09:13
  2. PySide for s60/Symbian?
    By gotan in forum Symbian
    Replies: 1
    Last Post: 2010-07-30, 00:10
  3. Creating asynchronous service provider - Help
    By epilef74 in forum Symbian
    Replies: 2
    Last Post: 2006-03-16, 17:14

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •