Results 1 to 4 of 4

Thread: Play video inside ClanLib window

  1. #1

    Default Play video inside ClanLib window

    Hi all,
    I'm developing a game using the great ClanLib libraries. I would to play an .avi video inside my game but I don't understand if clanlib can do it and, if yes, how to do it. Someone have experience in it? If clanlib can not "natively" play video someone know a good way for do this thing? Maybe accessing directly to OpenGL interface thourght clanlib....
    Thank you

  2. #2
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    ClanLib cannot play AVI's natively.

    On Windows, personally I would (although i've never tried it)...

    1) Use AVIStreamGetFrame() http://msdn.microsoft.com/en-us/libr...28(VS.85).aspx to get the decompressed video frame

    2) Upload it to a CL_Image / CL_Sprite or CL_Texture and draw it.

    Or a faster way could be using a pixel buffer object ... see http://www.rtsoft.com/forums/showthread.php?t=3069

  3. #3
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    Also, have a look at http://www.theora.org/

    ... someone's tried it at ... http://www.rtsoft.com/forums/showthr...2176#post12176
    Last edited by rombust; 01-18-2010 at 07:47 AM.

  4. #4

    Default

    Thank you for the reply, I'll check this solution. Unfortunately I still have to understand how to work with the new ClanLib 2.0 because I came from 1.0 version and some things was changed...

Similar Threads

  1. X windows inside a sdl/clanlib window
    By l3thal in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 12-26-2009, 08:47 PM
  2. How to : Delete/Close a Window and Center a Window ?
    By Fr3DBr in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 08-24-2009, 02:55 AM
  3. Building my first app in ClanLib (Cannot display game window)
    By ViolentOne in forum Official ClanLib SDK Forums
    Replies: 4
    Last Post: 08-16-2009, 10:34 PM
  4. My first video game!
    By janevblagoj in forum Novashell Game Creation System
    Replies: 2
    Last Post: 08-16-2007, 01:44 PM
  5. Video in ClanLib
    By d_oilen in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 06-04-2007, 02:52 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •