Results 1 to 5 of 5

Thread: Do you recommend playing AVI files with OpenGL?

  1. #1
    Guest

    Do you recommend playing AVI files with OpenGL?

    Is it good to texture map AVI frames to playback an AVI stream or I should use a more appropriate solution? My OpenGL program needs to playback AVIs and I am wondering if it is a common task to texture map AVI frames for the sake of video playback? On the other side the primary goal of the program is to playback AVIs but it should have some basic drawing capabilities like showing bitmaps - nothing 3D is required. Put this way isn't it better to throw away OpenGL or there is nothing wrong with playing AVIs in OpenGL. I am asking with the hope that I can save some time of useless research for playing AVIs in OpenGL. Thanks.

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,574

    Re: Do you recommend playing AVI files with OpenGL?

    If you are only 2D based and don't need fancy transparency, the only use for GL would be hardware scaling, and even that can be done without GL on hardware 2D surfaces (but I don't know much about it).

    Anyway, it is doable, at least since Quake2 the intro/outro movies where done in GL, with glTexSubImages calls to update the texture. You can even have a look at the Quake 2 GPL'ed sources : http://www.idsoftware.com/business/techdownloads/

    I have heard of OpenGL AVI players out there, don't remember more details.

  3. #3
    Guest

    Re: Do you recommend playing AVI files with OpenGL?

    In fact mplayer can use GL as the video out driver but results are very unsatisfactory. I chose to use SDL for video playback. Thanks for answering.

  4. #4
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,574

    Re: Do you recommend playing AVI files with OpenGL?

    Just for reference, a tutorial about an OpenGL video player : http://www.realityflux.com/abba/html...DVTexture.html

  5. #5
    Junior Member Newbie
    Join Date
    Jul 2003
    Location
    Edinburgh, Scotland
    Posts
    6

    Re: Do you recommend playing AVI files with OpenGL?

    There is also a NeHe tutorial on this subject, see
    http://nehe.gamedev.net/data/lessons....asp?lesson=35

    Cheers,
    dhm

Similar Threads

  1. OpenGL and playing video
    By Sauren in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 06-14-2010, 06:31 AM
  2. Playing sound in OpenGL
    By Creative Mind in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 08-23-2009, 11:35 PM
  3. Replies: 22
    Last Post: 12-15-2003, 03:07 AM
  4. Do you recommend Direct3D or OpenGL
    By in forum OpenGL: Basic Coding
    Replies: 11
    Last Post: 08-04-2003, 06:35 AM
  5. playing .avi files
    By -=dabomb=- in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 12-08-2000, 04:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean