?
Solved

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

Posted on 1997-07-10
4
Medium Priority
?
300 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

777 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