PDA

View Full Version : Can OpenGL meet this spec?



Ashok Thirumurthi
11-11-2005, 06:37 AM
I'm working on a Mac/Windows application that uses QuickTime to render multi-channel audio and a variety of media formats (.mov .jpeg, .tiff, .bmp, MPEG-1 and MPEG-2).

The application renders a full-screen
slideshow with a custom toolbar or writes the lot to a .mov file. Other features include simple transitions between stills and a text overlay
using DrawText.

We would like to add WMV and WMA playback and file output on Windows. So, one way is to write QuickTime and DirectX code in one application. But I'd rather use one rendering API than two. I'm thinking that OpenGL would be a better choice because it's cross-platform.

Is this all child's play for OpenGL or will I run into trouble with vendor-specific formats like .mov and .wmv?

Thanks in advance,

- Ashok Thirumurthi

jide
11-11-2005, 07:04 AM
As long as you can decode all the formats you wish, there will have no problem at all. Note that OpenGL does not provide anything for loading or decoding files like mov, avi... Fortunately there are many libraries that decode those files.

Ashok Thirumurthi
11-16-2005, 06:09 PM
> Note that OpenGL does not provide anything for > loading or decoding files like mov, avi...

What media formats are rendered by OpenGL?

> Fortunately there are many libraries that decode those files.

Are these libraries that are designed for OpenGL? Or, would I use DirectShow or QuickTime to read and write media files and then use OpenGL to render?

Are there primers on OpenGL that can help me get a feeling for the API as compared with QuickTime or DirectShow?

11-16-2005, 08:25 PM
errrr opengl is a graphics rendering context not a toolbox for kiddies. you should know that.

so opengl does not support any video format any audio format any mesh format any image format ANYTHING AT ALL about media!!! because its a GRAPHICAL RENDERING CONTEXT!

hernan
11-17-2005, 06:35 AM
Look at MPlayerHQ (http://www.mplayerhq.hu/homepage/design7/news.html) . This is an open-source multimedia player that support different platforms. It also has a module for using OpenGL for decoding and playback.

Ashok Thirumurthi
11-17-2005, 12:25 PM
Thanks Hernan,

A GPL player backend looks like a good choice for this specification. Looks like OpenGL is closer to DirectDraw + Direct3D.

- Ashok

George,

It's rarely clear what a large framework doesn't do. That is a reasonable purpose for a beginner's forum.

- Ashok

canuckle
11-17-2005, 12:54 PM
Ashok: You're right. And there have been a lot more unreasonable questions even on the advanced forums. Good luck with your project!

11-17-2005, 01:53 PM
George is what happens when you don't eat your veggies.