Results 1 to 4 of 4

Thread: How to find the GStreamer decoder plugin instance from Qt Phonon backend?

  1. #1
    Join Date
    Sep 2010
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default How to find the GStreamer decoder plugin instance from Qt Phonon backend?

    Hi,

    I have a custom GStreamer video decoder plugin to which I would like to pass couple of parameters through Phonon GStreamer backend interface. For that I should find the decoder plugin interface instance from the backend video pipeline.

    My setup is:
    – Qt 4.7 release candidate
    – Ubuntu Linux
    – Custom GStreamer video decoder plugin (autoplugin)

    I know that that the decoder instance is somewhere in the objects that are handled by the mediaobject class:

    .../src/3rdparty/phonon/gstreamer/mediaobject.cpp

    The problem is just in which one of the objects. Is it in the decodebin (should be there???), pipeline, videograph, ????

    My custom video decoder plugin is working OK, and I can play videos using it. So the plugin itself is loaded correctly to the system, and is operational, but the decoder instance is just lurking somewhere, and I cannot find it…

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to find the GStreamer decoder plugin instance from Qt Phonon backend?

    I don't think this is accessible through Phonon's public API. If you tie your application specifically to GStreamer, maybe you should use GStreamer API directly instead of going through Phonon.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Sep 2010
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default Re: How to find the GStreamer decoder plugin instance from Qt Phonon backend?

    Quote Originally Posted by wysota View Post
    I don't think this is accessible through Phonon's public API. If you tie your application specifically to GStreamer, maybe you should use GStreamer API directly instead of going through Phonon.
    Hmm,
    That is of course one option, but I'd rather use the Phonon framework at this point. I just assumed that the decoder instance would be available in Phonon since Phonon basically wraps the GStreamer video playing pipeline and builds it from the standard GStreamer elements. Therefore it should also have the decoder stored somewhere or at least have some GStreamer object that could be used to access the decoder plugin and it's interface. But that is just my guess, and unfortunately I don't know very much about Phonon and GStreamer.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to find the GStreamer decoder plugin instance from Qt Phonon backend?

    Quote Originally Posted by Greppana View Post
    I just assumed that the decoder instance would be available in Phonon since Phonon basically wraps the GStreamer video playing pipeline and builds it from the standard GStreamer elements.
    GStreamer is only one of the backends.

    Therefore it should also have the decoder stored somewhere or at least have some GStreamer object that could be used to access the decoder plugin and it's interface.
    That's surely the case but the whole point of Phonon is to hide those objects from the programmer and expose pure Qt API instead of platform-dependent quirks.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Phonon, MinGW, GStreamer
    By youkai in forum Qt Programming
    Replies: 1
    Last Post: 16th January 2012, 02:23
  2. Override streaming in QuickTime phonon backend
    By ChrisPeto in forum Qt Programming
    Replies: 1
    Last Post: 31st March 2011, 15:33
  3. Replies: 1
    Last Post: 6th August 2010, 12:24
  4. Phonon in standalone app via py2app - backend plugin error
    By tory108 in forum Installation and Deployment
    Replies: 6
    Last Post: 20th February 2009, 19:36
  5. Can we use Phonon without GStreamer?
    By learning_qt in forum Qt Programming
    Replies: 5
    Last Post: 8th September 2008, 14:02

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.