Results 1 to 2 of 2

Thread: [WIP]Video Player for Clanlib

  1. #1
    Lesser Knight
    Join Date
    Mar 2009

    Default [WIP]Video Player for Clanlib

    Introducing Theora, a free video codec with a very friendly license (BSD).

    Right now, I'm attempting to integrate Theora into clanlib. So far no major issues encountered. There are two things missing, a YUV to RGB converter and sound output. The sound codec is already available in clanlib as clanVorbis. So getting the sound to work is a breeze.

    This project is WIP, until I have time to finish it off (probably a few weeks).


    Also see the attached sample app for a demo...

    At the moment, I have no plan to release the unfinished source code.

    Almost complete.
    Only Two things are left todo:
    Implement sound output
    Fix the frame rate issue

    Requires an SSE2 capable cpu

    Sneak preview of the header file
    class CL_Theora
        CL_Theora(const CL_String &s);
        void load(const CL_String &file_name );
        void start();
        void stop();
        void process(CL_GraphicContext &gc);
        CL_PixelBuffer &get_frame();
        int get_width() const;
        int get_height() const;
        double get_fps() const;
        CL_SharedPtr<CL_Theora_Impl> impl;
    Attached Images Attached Images  
    Attached Files Attached Files
    Last edited by huntercool; 01-20-2010 at 05:36 PM. Reason: asd

  2. #2
    Join Date
    Oct 2009

    Default This is GREAT NEWS!

    Yay! Maybe sometime soon we'll be able to have VIDEO CUTSCENES! this is gonna be awesome XD...

Similar Threads

  1. Play video inside ClanLib window
    By falsinfab in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 01-20-2010, 01:13 PM
  2. Clanlib add flash player
    By DavinciZhe in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 12-15-2009, 03:11 AM
  3. Video in ClanLib
    By d_oilen in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 06-04-2007, 02:52 PM
  4. Dollar Sign in Player Name
    By File Sponge in forum Funeral Quest
    Replies: 1
    Last Post: 05-07-2007, 11:50 PM
  5. Player Visits/Attacks
    By pricedonald in forum Funeral Quest
    Replies: 1
    Last Post: 04-16-2007, 01:23 AM



Posting Permissions

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