[Interest] QAbstractVideoSurface, QMediaPlayer, QVideoFrame
Nuno Santos
nunosantos at imaginando.pt
Tue Dec 3 23:13:24 CET 2019
Hi,
I have extended QAbstractVideoSurface. I want to be able to process input frames from a video and process them in the original format of the video.
For testing purposes I have generated a video using the ffmpeg command:
ffmpeg -f lavfi -i rgbtestsrc -pix_fmt yuv420p -t 60 rgbtestsrc.mp4
This command generates 60 secs of video with a rgb test source and makes the frames in the pixel format yuv420p
I’m opening this video with QMediaPlayer and setting the video surface I have created to the media player.
On present I’m receiving the video frames but these are as follow:
QVideoFrame(QSize(320, 240), Format_ARGB32, NoHandle, NotMapped, [no timestamp])
I was expecting to have the frames in Format_YUV420P format.
Is there anyway of getting the original frames of the video without them to be converted to ARGB32?
Thanks!
Nuno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20191203/f5515fd3/attachment.html>
More information about the Interest
mailing list