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. QVideoFrame mapping fails for 4K video
QtWS25 Last Chance

QVideoFrame mapping fails for 4K video

Scheduled Pinned Locked Moved Unsolved General and Desktop
qvideoframemaphigh res
2 Posts 2 Posters 998 Views
  • 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.
  • T Offline
    T Offline
    tbiedert
    wrote on 6 Apr 2017, 14:11 last edited by
    #1

    Hi,

    I'm using QMediaPlayer and a custom subclass of QAbstractVideoSurface to extract the individual frames from a video file. Each QVideoFrame is converted to a QImage by first mapping it (read-only) and afterswards copying the bits.

    Problem: QVideoFrame::map() fails for 4K frames, but works fine for 1920x1080 and lower.

    map() just returns false. There are no errors.

    Any ideas?
    Thanks!

    Source videos: Big Buck Bunny

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 6 Apr 2017, 21:32 last edited by
      #2

      Hi and welcome to devnet,

      Since you seem to only want to extract frames, why not use a tool like ffmpeg ? You can pilot it from your Qt application.

      By the way, which version of Qt are you using ? On which layout ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      1/2

      6 Apr 2017, 14:11

      • Login

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