Qt 6.11 is out! See what's new in the release
blog
Extract frames from mp4 video
General and Desktop
4
Posts
2
Posters
3.4k
Views
1
Watching
-
Hello,
in order to generate a thumbnail of a video file (mp4 h264) I want to extract a single frame from it. Then I will show the picture in a qml page.
I wonder which is the best way to extract such a frame using Qt or qml. May you put me on the right path?
-
I hoped was enough to load the video into a (hidden) container (e.g. MediaPlayer) seek() a position and grab the current frame as an Image.
I may use an external program, but it would be a nice feature for my application.
-
I easily solved using a Video element instead an Image one. Then I just paused the video. Quite ugly but it requires one line of code.