[Qt-interest] Adding support for a new video format
Fred Bacon
bacon at aerodyne.com
Tue Dec 16 17:38:46 CET 2008
On Tue, 2008-12-16 at 10:25 +0100, Richard wrote:
> > Anyone have any suggestions on where to begin looking within the
> > Phonon
> > internals to learn how to add support for a new video format?
> >
>
> The Phonon backends will try to open your files using the codecs
> already present on your OS. So if you have your own algorithm for
> decoding media that you would like to use with Phonon, you would need
> to create a codec for the OS instead. There is no API for writing a
> 'plugin' for decoding media in Phonon.
Okay, so how exactly do I add a new codec? This is a really simple
format. There's a small header giving the dimensions of the frame and
the input dynamic range--8bit, 10bit, 12bit, floating point--followed by
the data stream. I've already written something which can load the data
and turn it individual frames.
I was hoping to avoid the labor of writing a widget that would stream it
to the screen at the appropriate frame rate and let you interactively
move back and forth through the video. Phonon looked like it might be
just the thing.
Any suggestions? Would this be more appropriately addressed to the tech
support address?
Fred Bacon
Senior Scientist
Aerodyne Research
More information about the Qt-interest-old
mailing list