Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Avi files

This thread is locked; no one can reply to it. rss feed Print
Avi files
superstar4410
Member #926
January 2001
avatar

Does allegro have any commands that will
allow me to play any .avi file in my program

Thanks

Don't take yourself too seriously, but do take your responsibilities very seriously.

livewire
Member #1,083
March 2001

Yes...isn't there?? An addon I mean? ???

Matt Smith
Member #783
November 2000

There are so many different CODECS used with avis. It is unlikely that an AVI lib could play many of them. I can see 2 choices,

1) your allegro program (windows only) calls the Windows Media Control to play any AVI

2) Use a Windows Video Editing program to convert to a simple format which the player code can handle.

superstar4410
Member #926
January 2001
avatar

do you have any code for this

Don't take yourself too seriously, but do take your responsibilities very seriously.

Xaron
Member #447
June 2000

Go to your favorite search-engine and find some example-code on calling the media-player. It works most likely with OLE-embedding or something like that. Perhaps you're better off converting the avi to flic: IIRC a flic-player is available under allegro.

Note that this program won't be portable! (OLE is AFAICT only available under windows(-emulators) and that goes for the afore-mentioned media-player too).

Xaron

superstar4410
Member #926
January 2001
avatar

how do I convert the avi file

and whats the code to play it using that other stuff

Don't take yourself too seriously, but do take your responsibilities very seriously.

Bob
Free Market Evangelist
September 2000
avatar

The code example is in allegro/examples/exfli.c

The conversion can be done with (almost) any video editing software, including VirtualDub

--
- Bob
[ -- All my signature links are 404 -- ]

Go to: