Results 1 to 3 of 3

Thread: Phonon + custom media source

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,363
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Phonon + custom media source

    It is very easy to use Phonon to play a movie from a file or over network. But is it possible at the current state or is it planned in a near future to provide a custom media source, for instance generate video frames directly in the application?

    A side question is the exact opposite of the previous one - is it possible to provide a custom sink for the media? For instance if I wanted to access each frame of the video and save it to disk as a separate image without showing the video on screen? In theory one could create a custom Effect that would act as a filter, do some work and then pass through the media to the next node, but there are two problems:
    1. this would require to have some final sink (hence show the video)
    2. I don't think at present one can implement a custom effect

    So is Phonon going to be a framework for just viewing existing media in a platform independent way or do/will we have an interface to create/modify/operate on the media that could be used in yet undetermined usecases? Do you Jeff or anyone else have some knowledge (or any comments) about that?

  2. The following 2 users say thank you to wysota for this useful post:


  3. #2
    Join Date
    Sep 2007
    Location
    Rome, GA
    Posts
    199
    Thanks
    14
    Thanked 41 Times in 35 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Phonon + custom media source

    I would be very interested in knowing this too.

  4. The following 2 users say thank you to JimDaniel for this useful post:


  5. #3
    Join Date
    Jun 2007
    Location
    Brookline, Ma, USA
    Posts
    4
    Thanked 5 Times in 3 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Phonon + custom media source

    Here is what I know so far. Phonon is a platform independent wrapper around the
    platform specific media library. Therefore, implementing different
    sources and sinks must be implemented in the media libraries themselves. If you want to create a new media source, your either need to build a phonon back-end for your video generator or add a new source to the underlying media library. At the moment, there appears to be no way to capture frames or inject them into the video widget.

    From what I have read, there is some discussion about future releases of the API providing a mechanism for introducing effect call-outs into the media stream processing. This will allow a, for instance, a developer to insert overlays on a video image. Phonon is a contributed third party library for Qt, so it is probably best to follow the phonon discussions at KDE to understand future plans.
    Senior Qt and Qt Embedded Consultant
    and Certified Qt Trainer
    Integrated Computer Solutions
    Bedford, Ma, USA

  6. The following 3 users say thank you to glebovitz for this useful post:


Similar Threads

  1. Phonon Media Object blocking on play()
    By traetox in forum Qt Programming
    Replies: 0
    Last Post: 21st May 2008, 05:43

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.