Re Phonon-Backend

Martin T. Sandsmark sandsmark at samfundet.no
Thu Aug 27 14:22:45 CEST 2009


On Wednesday 26. August 2009 18:06:25 Niraj Kumar wrote:
> I am currently working on a video annotation tool where i am using
> qt-phonon to create my videoplayer.
>
> Now i want to access frames while playing the video file of type mpeg or
> avi. Also i need to increase the frames per second if there is a way for
> that.

There is support to get individual frames from the video stream, look at the 
VideoDataOutput API in phonon/experimental/videodataoutput2.h (iirc). So far 
it is only supported by the Xine backend, though (someone tried to implement 
support in the GStreamer backend, but it's not complete). The Xine backend is 
the recommended one anyways, so...

> Moreover if functions for this is not available in phonon at present how
> can i write functions for the same because i have figured out that
> gstreamer uses frame level information and we can increase fps using
> gstreamer. Since phonon uses gstreamer at the backend, we should be able to
> do so.

If you want to add functionality, I suggest you check out Phonon from SVN¹ and 
poke around a bit. I'm not sure where this functionality will make sense to 
add. Maybe to the MediaObject.

(If you need help with hacking on Phonon, please tell, I've been wondering 
whether to write a “hacking guide” or something on Techbase.)

svn://anonsvn.kde.org/home/trunk/kdesupport/phonon

-- 
martin t. sandsmark


More information about the Phonon-backends mailing list