[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-multimedia
Subject:    Phonon thumbnail creator idea
From:       "Ivo Anjo" <knuckles () gmail ! com>
Date:       2008-08-10 15:53:45
Message-ID: 557ea2710808100853u459d0911n815e63753cf4d761 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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

[Attachment #5 (text/html)]

<div dir="ltr">Hi.<br><br>Recently I had the idea of doing a phonon-based video \
thumbnail creator for kdelibs.<br><br>The last few days I&#39;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&#39;t draw &quot;onto&quot; the VideoWidget directly, that \
way would never work.<br> <br>I&#39;ve also tried using the \
Phonon::Experimental::VideoDataOutput, but I can&#39;t seem to grab the frame \
correctly, probably the backend I&#39;m using doesn&#39;t support it yet (or it \
really doesn&#39;t work yet, seeing as it is in experimental).<br> <br>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&#39;t make much sense to support directly.<br> <br>Thanks for your help in \
advance.<br>Ivo Anjo<br> </div>



_______________________________________________
kde-multimedia mailing list
kde-multimedia@kde.org
https://mail.kde.org/mailman/listinfo/kde-multimedia


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic