QVideoFrame mapping fails for 4K video
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.
Source videos: Big Buck Bunny
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 ?