Archived

This topic is now archived and is closed to further replies.

lesson 35 - Playing AVI Files In OpenGL Question

This topic is 5150 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi All I''ve reasontly been playing around with lesson 35 called "Playing AVI Files In OpenGL" First of good work Jeff Molofee Just one question though during playback of several avi''s i''ve noticed the image is very "blocky" and doesn''t appear at the same quality as you would see in a standard viewer. has anyone managed increase the playback quality or any suggestions how to ? or perhaps another cool open sourced openGL video player Cheers.

Share this post


Link to post
Share on other sites
I also wanted to playback AVIs without them having to be re-scaled, reducing image quality, so the way I did it was...

Say you wanna playback a 640x480 sized anim, create a 1024x512 texture, copy an AVI frame to that texture, then apply that texture, with appropriate texture coordinates (To cut off unused pixels in texture) to a quad in orthographic projection.

It''s probably not the fastest ways of doing it
But it works!

I must say special thanks to NeHe for his AVI tut aswell!

AVI playback/record source...
http://www.davesprogramming.com/section_codebin/doxygen/DGLAVI_8h-source.html

http://www.davesprogramming.com/section_codebin/doxygen/DGLAVI_8cpp-source.html

Share this post


Link to post
Share on other sites