From kde-multimedia Sun Aug 10 15:53:45 2008 From: "Ivo Anjo" Date: Sun, 10 Aug 2008 15:53:45 +0000 To: kde-multimedia Subject: Phonon thumbnail creator idea Message-Id: <557ea2710808100853u459d0911n815e63753cf4d761 () mail ! gmail ! com> X-MARC-Message: https://marc.info/?l=kde-multimedia&m=121877704632235 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============1705850483==" --===============1705850483== Content-Type: multipart/alternative; boundary="----=_Part_27421_10147647.1218383625694" ------=_Part_27421_10147647.1218383625694 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi. Recently I had the idea of doing a phonon-based video thumbnail creator for kdelibs. The last few days I've been trying multiple ways of getting an image of the current playing media, but my attempts of using things like QWidget::render and QPixmap::grabWidget failed -- now it has dawned on me that as the engines don't draw "onto" the VideoWidget directly, that way would never work. I've also tried using the Phonon::Experimental::VideoDataOutput, but I can't seem to grab the frame correctly, probably the backend I'm using doesn't support it yet (or it really doesn't work yet, seeing as it is in experimental). After all my failed attempts I thought about asking for some help. Is there a better/proper way of grabbing a frame from a MediaObject? It would be nice if there was a simple way to get a QImage or QPixmap from a frame, but my use-case may be restricted enough that it doesn't make much sense to support directly. Thanks for your help in advance. Ivo Anjo ------=_Part_27421_10147647.1218383625694 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi.

Recently I had the idea of doing a phonon-based video thumbnail creator for kdelibs.

The last few days I've been trying multiple ways of getting an image of the current playing media, but my attempts of using things like QWidget::render and QPixmap::grabWidget failed -- now it has dawned on me that as the engines don't draw "onto" the VideoWidget directly, that way would never work.

I've also tried using the Phonon::Experimental::VideoDataOutput, but I can't seem to grab the frame correctly, probably the backend I'm using doesn't support it yet (or it really doesn't work yet, seeing as it is in experimental).

After all my failed attempts I thought about asking for some help. Is there a better/proper way of grabbing a frame from a MediaObject? It would be nice if there was a simple way to get a QImage or QPixmap from a frame, but my use-case may be restricted enough that it doesn't make much sense to support directly.

Thanks for your help in advance.
Ivo Anjo
------=_Part_27421_10147647.1218383625694-- --===============1705850483== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kde-multimedia mailing list kde-multimedia@kde.org https://mail.kde.org/mailman/listinfo/kde-multimedia --===============1705850483==--