Solved

C++ -> Converting: AVI & FLIC Movies Frames to Windows DIBS

Posted on 1997-07-10
4
293 Views
Last Modified: 2013-12-03
Hi there,
I am Looking for C++ Code/APIs etc etc that will convert
AVI Movie Frames and FLIC Movie Frames to DIB.

My Problem is How do I Get BitmapInfo From these frames.
I Have tried using AVIFile Functions for Obtaining BitmapInfo from AVI Movies without success and for FLIC Frames I have got a slightest Idea.. Could anyone help me out please.

I am Using VC++ 4.0.
0
Comment
Question by:lupomage
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 23

Expert Comment

by:chensu
ID: 1400551
For AVI, you can refer to Video for Windows DK sample: AVIEDIT. It uses AVIFile functions to extract each frame.

For FLC, you can use Autodesk Animation DLL (AAPLAY.DLL) functions to do so.

HAA aaSetParm(hAa, wType, wValue1, lValue2)

HAA hAa
A handle returned by aaLoad.

WORD wType
AA_FRAMEBITMAP            -      2000

wValue1 is the frame number of the frame whose image is to be returned. lValue2 is the address of a buffer where a handle to a Device Independent Bitmap for the frame is to be stored.  The frame does not need to be visible in order to return the bitmap.

0
 

Author Comment

by:lupomage
ID: 1400552
Thanks for your answer, I going to Look for this AVIEDIT sample and as for AAPLAY.DLL, I am not gonna be able to use it since it is a 16 bit dll (Unless there is 32bit aaplay.dll - I have never come across one).

Looking Forward hearing  from you, if you think you won't be able
to sort out aaplay.dll business just Add a comment and I Will Unlock the question to another expert.


0
 
LVL 23

Expert Comment

by:chensu
ID: 1400553
I am also looking for 32-bit aaplay.dll. But, you can try thunk to call the 16-bit aaplay.dll from 32-bit applications.
0
 
LVL 23

Accepted Solution

by:
chensu earned 50 total points
ID: 1400554
There is an article: "A WinG Flic Animation Player" by Ton Plooy in "Windows Developer's Journal" October 1995 Volume 6 Number 10. Although it is also 16-bit, the part of reading each frame is the same for 32-bit. You can get the source code at http://www.wdj.com/source.htm and extract what you want. Another article useful for you is "The Flic File Format" in "Dr. Dobb's Journal" March 1993 (http://www.ddj.com).
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question