Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Confused working of Qt5.0 Multimedia and video render
Qt 6.11 is out! See what's new in the release blog

Confused working of Qt5.0 Multimedia and video render

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    amitqt
    wrote on last edited by
    #1

    My target is to render video from custom container format.
    The video is in h264 encoded and would decode to yuv 420. I would like to render it to qwidget so that controls can be overlayed.
    But browsing Qt5 Multimedia architecture, following points were not clear:

    1. how do I use QVideoWidget "http://qt-project.org/doc/qt-5.0/qtmultimedia/qvideowidget.html",
      to render my individual frames?
    2. If I have my source (frame producer) how do I integrate it in the QtMultimedia system as to use is default playback pipeline.
    3. http://qt-project.org/doc/qt-5.0/qtmultimedia/multimediawidgets-videowidget.html says that it is an example using QAbstractVideoSurface, but somehow it is not. There is no mention of this class in any files.
    4. http://qt-project.org/doc/qt-5.0/qtmultimedia/videooverview.html mentions MyVideoProducer class, but it really does not do anything, why is it even there?

    regards,

    1 Reply Last reply
    0
    • mrdebugM Offline
      mrdebugM Offline
      mrdebug
      wrote on last edited by
      #2

      Maybe you have to use advanced multimedia features. In this case I will use the ffmpeg libraries. This isn't easy but you can do everything.

      Need programmers to hire?
      www.labcsp.com
      www.denisgottardello.it
      GMT+1
      Skype: mrdebug

      1 Reply Last reply
      0
      • A Offline
        A Offline
        amitqt
        wrote on last edited by
        #3

        I am using ffmpeg for decoding. But want to render to QVideoWidget, how can I use QVideoWidget standalone.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          amitqt
          wrote on last edited by
          #4

          One way is, to make a qwidget and override paint event, but I would really like to know implementation details.
          Do we send a update event and in the resulting paint event render the frame, what are the performance issues here!
          Qt is a great lib but sometimes we get stuck in such petty issues, hope someone has any experience in said above.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved