Results 1 to 6 of 6

Thread: Performance: Displaying video in GUI without Phonon

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,321
    Thanks
    316
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Performance: Displaying video in GUI without Phonon

    I don't know a lot about Phonon, but I think if you create a MediaObject type to serve your frames off the disk, then you will be able to use the framework. It looks like the Effect type is what you would use to implement frame-by-frame processing. My understanding from reading the documentation is that Phonon uses what they call a "graph" (actually a processing pipeline) to move frames from a media source (like a file) to a media sink (like a video widget). You can insert nodes into this pipeline, branch it, connect multiple inputs together, etc. Looks pretty powerful.

    If you don't have audio associated with your images, you might be able to get by using QMovie with a custom QImageReader class. If you designed the QImageReader class correctly, you might be able to chain them together to implement your on-the-fly processing.

    Marking things on screen means that you will want to save that information somewhere, right? That means that you might have time-stamped metadata associated with your images, so that when you play it back the second time, the metadata marks appear along with the video. I think in that case you would have to use something like Phonon, and use an Effect to merge the metadata with the image frames.

    Sounds like a hard project, but interesting. The book "Advanced Qt Programming" by Mark Summerfield has a chapter on QMovie and Phonon with example code.

  2. The following user says thank you to d_stranz for this useful post:

    aamikkelsen (18th November 2011)

  3. #2
    Join Date
    Jan 2012
    Posts
    1

    Default Re: Performance: Displaying video in GUI without Phonon

    Hello Guy,A need a help please!!!!!!!!!! i'm new in Qt and OpenCv programming and I need for my application a GUI that's help me to play video and after processing an other window show me the vidéo after processing. someone can help me pleaseeee!!!!!!!!!!
    My contact :skyp:sossos1926

  4. #3
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Performance: Displaying video in GUI without Phonon

    @up: on this forum you can get help with specific problem with your code, if you think you are gonna get whole working application for free, then you are wrong.
    There are many threads about Opencv + Qt on this forum, just use the "search" option. Try to write the code, and ask specific questions if you don't know how to proceed.

Similar Threads

  1. video fade in/out in phonon
    By panpanpandas in forum Qt Programming
    Replies: 2
    Last Post: 31st July 2011, 08:40
  2. Playing video using Phonon video widget
    By Leolander in forum Newbie
    Replies: 0
    Last Post: 26th February 2010, 06:15
  3. Performance problems playing video with Phonon and GStreamer on QT Embedded.
    By MarcosRodriguez in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 3rd December 2009, 13:57
  4. Replies: 3
    Last Post: 5th July 2009, 17:22
  5. Video freezes during mpeg video playback using Phonon
    By davejames in forum Qt Programming
    Replies: 2
    Last Post: 12th January 2009, 08:45

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.