Results 1 to 5 of 5

Thread: In which component can I display video?

  1. #1
    Join Date
    Oct 2007
    Posts
    22
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Question In which component can I display video?

    Hi,

    I need to display videos streams (25 to 50Hz, 640x480) in my application.
    I derived a class from a QWidget where I overloaded the paintEvent method for displaying the images (painter.drawImage()) but it is very slow.
    I'm not sure of the reason of the slowness since I have a poor 2GHz, 736Mo on winxp computer, and a basic SiS650 gfx card.

    Wil it be faster if I use QGraphicsScene/Item? Furthermore I don't have any skills in OpenGL things, so will it be hard to implement if it is the only way out?

    Thanks in advance.

    ps :for information, I use ffmpeg (libavcodec/libavformat) to decode video streams.

  2. #2
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: In which component can I display video?

    See VideoPlayer widget.
    I'm a rebel in the S.D.G.

  3. #3
    Join Date
    Oct 2007
    Posts
    22
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: In which component can I display video?

    Hello lyuts,

    Thank you for your answer, but I need to perform some image processing, thus I can't use Phonon...

  4. #4
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: In which component can I display video?

    I don't know what kind of image processing you need to do and what it depends on, but, what if you put image processing logic into ffmpeg's plugin?
    I'm a rebel in the S.D.G.

  5. #5
    Join Date
    Oct 2007
    Posts
    22
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: In which component can I display video?

    Yes, actually this is what I do.
    But with the solution you proposed, it implies to use Phonon (instead of ffmpeg), which does not handle video treatments for now.

Similar Threads

  1. How to display flash video on QHelp documentation
    By sebboh in forum Qt Programming
    Replies: 0
    Last Post: 21st June 2010, 17:29
  2. Replies: 1
    Last Post: 13th December 2009, 03:34
  3. Video freezes during mpeg video playback using Phonon
    By davejames in forum Qt Programming
    Replies: 2
    Last Post: 12th January 2009, 09:45
  4. Cross platform live video capture & display with Qt 4
    By AlbertGoodwill in forum Qt Programming
    Replies: 1
    Last Post: 24th October 2007, 21:55

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.