Hello!
I've been looking around for a while but couldn't find anything simple enough...
Is there a (preferably) simple way to extract and convert a video's frame to a QPixmap (or QImage) for display? I would like to present the user a frame (the first?) from a video to have a preview...
Ideally, I would like something like:
Of course, the code above works only with animated GIF... I would like something similar with real movies (mp4, 3gp, etc.).Code:QPixmap *pic; QMovie movie(myFile); if(movie.isValid()) { movie.jumpToFrame(0); pic = new QPixmap(movie.currentPixmap()); }
Any idea? Or any document I should read?
Many thanks in advance!


Reply With Quote



