C Board  

Go Back   C Board > General Programming Boards > C Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 06-06-2008, 08:54 AM   #1
Algorithm engineer
 
Join Date: Jun 2006
Posts: 223
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( ~_')
TriKri is offline   Reply With Quote
Old 06-06-2008, 08:58 AM   #2
Mysterious C++ User
 
Join Date: Oct 2007
Posts: 14,099
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.
__________________
Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System
I dedicated my life to helping others. This is only a small sample of what they said:
"Thanks Elysia. You're a programming master! How the hell do you know every thing?"
Quoted... at least once.
Quote:
Originally Posted by cpjust
If C++ is 2 steps forward from C, then I'd say Java is 1 step forward and 2 steps back.
Elysia is offline   Reply With Quote
Old 06-06-2008, 09:10 AM   #3
Algorithm engineer
 
Join Date: Jun 2006
Posts: 223
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( ~_')
TriKri is offline   Reply With Quote
Old 06-06-2008, 09:23 AM   #4
Mysterious C++ User
 
Join Date: Oct 2007
Posts: 14,099
[quote=TriKri;760841]
Quote:
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.

Quote:
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.
__________________
Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System
I dedicated my life to helping others. This is only a small sample of what they said:
"Thanks Elysia. You're a programming master! How the hell do you know every thing?"
Quoted... at least once.
Quote:
Originally Posted by cpjust
If C++ is 2 steps forward from C, then I'd say Java is 1 step forward and 2 steps back.
Elysia is offline   Reply With Quote
Old 06-06-2008, 09:28 AM   #5
Algorithm engineer
 
Join Date: Jun 2006
Posts: 223
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( ~_')
TriKri is offline   Reply With Quote
Reply

Tags
avi, codec, frame, library, mpg

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 07:59 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

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