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. Get RGB frames from a video file in QAbstractVideoSurface
Forum Updated to NodeBB v4.3 + New Features

Get RGB frames from a video file in QAbstractVideoSurface

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 684 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.
  • P Offline
    P Offline
    P.Petitprez
    wrote on last edited by
    #1

    Hi,

    I work on a video loader using QMediaPlayer and a QAbstractVideoSurface thart allows me to get access to the video frames.
    But there's something I don't understand. I absolutely need the buffers to be in RGB24 format, so I set in the "supportedPixelFormats" method only QVideoFrame::Format_RGB24 but the frames always come in QVideoFrame::Format_YUV420P.
    Another problem is, I have not found any possibility to convert YUV frames to RGB using Qt functions, I guess I am forced to write the conversion myself.

    Is there any proper way to directly get the frames in RGB, or are there any functions in Qt 5 that could make the conversion ?

    Thanks.

    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