Using codecs

Discussion in 'DivX / XviD' started by frarugi87, May 11, 2007.

  1. frarugi87

    frarugi87 Member

    Joined:
    May 11, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    11
    Hi all!
    I have a "little" question: is there any tutorial to create programs which use codecs?

    For example: i wanted to create a program to see some films. How can I use Xvid to decode the film?

    Ah, i use C++...

    Thanks
     
  2. celtic_d

    celtic_d Regular member

    Joined:
    Jan 23, 2005
    Messages:
    3,352
    Likes Received:
    0
    Trophy Points:
    46
    For playback generally you would use a directshow filter or directly interface with a decoder rather than using VfW codecs.

    You might want to start by looking at say Media Player Classic's source code. You could also look at using xvidcore.dll directly, but then your player could only decode Xvid video, plus you would need to write a demuxer to parse it. This could all be solved by using libavcodec/format.
     
  3. frarugi87

    frarugi87 Member

    Joined:
    May 11, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    11
    Where can I find the media player classic? And how can I compile it? In what programming language is it written?
     
  4. celtic_d

    celtic_d Regular member

    Joined:
    Jan 23, 2005
    Messages:
    3,352
    Likes Received:
    0
    Trophy Points:
    46
    You could find it by searching, but http://sourceforge.net/projects/guliverkli/ although there are some newer developments going on elsewhere. To compile it you will need MSVC 2005. It is written in C++, although most of the libs it is based on (mod, tremor, etc.) are pure C.

    You could also check out the directshow samples that used to be part of the DX SDK, then platform SDK, now Win SDK or whatever. Plenty of other source for various directshow based apps to.

    Could also check out VLC, mplayer, ffplayer, osmo4, etc. which all make use of libavcodec/format for playback.
     

Share This Page