Library for reading avi-files?

This is a discussion on Library for reading avi-files? within the C Programming forums, part of the General Programming Boards category; Is there some library for reading an avi-file and extract the pictures, frame by frame? Would that be the same ...

  1. #1
    Algorithm engineer
    Join Date
    Jun 2006
    Posts
    286

    Library for reading avi-files?

    Is there some library for reading an avi-file and extract the pictures, frame by frame? Would that be the same as a codec? And in that case, which codec should I use? Any free avi library/codec would work.

    What about libraries for reading other formats such as mpg, wmv, etc.?
    Come on, you can do it! b( ~_')

  2. #2
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,790
    Avi is a container. It contains compressed data which is compressed by a codec.
    The easiest thing to parsing these kinds of things would be DirectShow I imagine.
    FFdshow is a filter that can decompress almost any type of video/audio and Haali's Media Splitter is a filter that can split all popular container types (mkv, mp4).
    Avi and wmv are typically already installed on a windows machine.

    This is assuming you are using Windows.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    Algorithm engineer
    Join Date
    Jun 2006
    Posts
    286
    I am using windows, but I would prefer to use a platform independent library so my program gets portable. I somewhat like SDL, does that have functions for viewing frames in avi-files? Do I need one tool to get the data out of the container and one tool to decompress the data, or is this usually done at the same time?
    Come on, you can do it! b( ~_')

  4. #4
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,790
    [QUOTE=TriKri;760841]
    I somewhat like SDL, does that have functions for viewing frames in avi-files?
    No to my knowledge. It's mostly a graphics API and an input API I think.
    It's not for media viewing or extracting.

    Do I need one tool to get the data out of the container and one tool to decompress the data, or is this usually done at the same time?
    Typically you will need two.
    One to extract and one to decompress (the appropriate codec would do that).

    I don't know of any cross-platform library, but if you aren't scared of command lines, then you could try using mencoder. It's cross platform and compatible with lots of things.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  5. #5
    Algorithm engineer
    Join Date
    Jun 2006
    Posts
    286
    Thank you. I have found this site, which I will take a look at. I will also take a look at mencoder, maybe it's usefull.
    Come on, you can do it! b( ~_')

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Hi plz help me in crating library files
    By vijay85 in forum C Programming
    Replies: 5
    Last Post: 01-27-2009, 08:21 AM
  2. Property Set Library (PSL) - Announcement
    By vultur_gryphus in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 05-29-2008, 06:04 AM
  3. very weird .h problem
    By royuco77 in forum C++ Programming
    Replies: 1
    Last Post: 09-11-2005, 07:55 AM
  4. Where to get library files?
    By klear in forum C++ Programming
    Replies: 7
    Last Post: 03-29-2004, 01:15 AM
  5. reinserting htm files into chm help files
    By verb in forum Windows Programming
    Replies: 0
    Last Post: 02-15-2002, 08:35 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21