Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to quickly get information about media files with VFP9?

Status
Not open for further replies.

MGarys

Programmer
Aug 4, 2007
3
PL
Hi!
Problem: I need solution how to quickly read AVI / MPG / WMV info (width, height, fps, frames count, etc.) in VFP9 application.
What is best way to get this info?

Marek Garniewicz
Pozna? - Poland
 
Marek,

One way to do this is to use the GDI API. There are several functions available to do that. I suggest you start by looking at the documentation for GdipGetPropertyItem() and related functions. See the Microsoft documentation, or
Alternatively, take a look at the GDI Plus API Wrapper Foundation Classes that come with VFP. These are described in detail in the Help.

Mike



__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Thanks for Mike & markros

Unluckily yours samples works only with image files, but i need this with videos.
Mike, i'm very interessed your 1st suggestion (using API function). Maybe u post me info about sequence of API's for getting video info? Thank you very much.

Marek
[pc2]
 
Marek,

I'm sorry, but I don't have any code specifically for video files. I could tell you how to get similar information for image files, but as that involves creating internal bitmaps from the files, I'm not sure if it would work for movies.

Perhaps you should start by researching the GDI functions I mentioned.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
thank u Mike
greetings from Poland

Marek
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top