Results 1 to 4 of 4

Thread: integrate phonon, video capture and audio capture for video conference

  1. #1
    Join Date
    Jul 2009
    Posts
    3
    Qt products
    Qt4

    Question integrate phonon, video capture and audio capture for video conference

    Hi all,

    I am working on a video conference project. Right now I have the video capture/encoding, audio capture/encoding, and network part. I would like to use Qt for the interface, and phonon for playing video and audio. I also modified the multimedia player sample code from Qt website.

    I am wondering is there any way for phonon to play steaming video? For example, the program gets packets(including several frames of video or a chunk of audio) from the networks, and save the packets in memory(buffer or link list structure). How can I use phonon to play these several frames, like I may have two buffers(one for receiving data and the other for Qt playing), can Qt play these two buffers in order for a loop?

    Thanks!

  2. #2
    Join Date
    Sep 2006
    Location
    the Netherlands
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: integrate phonon, video capture and audio capture for video conference

    If you already have the encoding en networking part ready, why not just render the raw frames using a QPainter onto a custom widget?

  3. #3
    Join Date
    Jul 2009
    Posts
    3
    Qt products
    Qt4

    Default Re: integrate phonon, video capture and audio capture for video conference

    is there any way to use phonon? I think phonon is cool, and i want to try it-)

  4. #4
    Join Date
    Jul 2008
    Posts
    47
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: integrate phonon, video capture and audio capture for video conference

    If you have the buffer already then it is not too difficult.
    You will need to implement your own QIODevice with the buffer as the source. The QIODevice is then your MediaSource.

    When 4.6 comes out, it may get easier with a working QAbstractMediaStream (instead of QIODevice), but this class is currently only working with Xine backend on Linux.

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.