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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading Other File Types...JPG-MP3-AVI

Status
Not open for further replies.

xBaseDude

MIS
Jan 31, 2002
357
US
Using VFP70 is it possible to look at the file headers of JPGS, MP3, MGP/AVI and come up with info like....

JPG = Width = 400 Height = 600

MP3 = Frequency(?) = 128 - Duration = 3:30(3 min 30 seconds)

MPG/AVI = Width/Height/Duration ?

Could I ask to see a coding example?

TIA - Wayne

sig_jugler.gif
...all this and tap dancing too!
 
Wayne,
I'll borrow some code Eric den Doop posted recently in one of the newsgroups (he's always quoting me there :)):
Code:
loImage = CREATEOBJECT("Image")
loImage.picture = GETPICT()
loImage.stretch = 0 &&Clip
?loImage.width
?loImage.height
SET COMPATIBLE ON
?FSIZE(loImage.picture) && file size
In VFP 7/8, intellisense will show you what other properties are available, or I suppose you could use the help file!

Rick
 
foxProdir...\Samples\Solution\Forms\Mci_play.scx contains A LOT of code.
But what you want may be in there.

Andy Rice
San Diego, CA
 
Rick;

"Eric den Doop" ?!?

Is he related to Ippy Daily? [g]

Thanx for the tip in the right direction!

Andy;

Will check it out when I log off. Thanx.
Did you ever work for a printing company in SD? We might have spoken together before.

Regards - Wayne

sig_jugler.gif
...all this and tap dancing too!
 
about MP3s

if an MP3 file has an ID tag (usually last 127 chars of file) - modi comm it and look, you can find things like album,artist etc (if they're stored). I'm sure the bitrate and frequency are stored there too.

The problem is in the older ID2 style tags, originally the last 127 chars were used and split into seperate 30 char blocks (30 for artist, 30 for album etc) . Because the limit was 30 characters, a newer ID3 tag was set up which is variable - i mean really variable, the TAG can appear at the start or end of the file and stores a lot more information.

If you want to explore this fully (i tried then got bored) try
MrF
 
xBaseDude

"Eric den Doop" ?!?

Is he related to Ippy Daily? [g]


A well recognized figue in the VFP world. He runs this Dutch site, that is powered by VFP8.0


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Thanks Mike, I know that some people use aliases, and others use names that are "questionable", but as you suggested, Eric is a well known figure in the FoxPro world. Sometimes, it's just fun to try and "beat" answering a question that Eric has been known to quote me on before. I have an advantage here because he hasn't discovered it yet!

Rick
 
<< xBaseDude (MIS):
Did you ever work for a printing company in SD? We might have spoken together before. >>

Maybe I saw you at the San Diego FoxPro Users Group.
I don't work for a printing company.
Do you live in San Diego?




Andy Rice
San Diego, CA
 
Andy;

Sorry. I thought I had talked to someone named Andy in SD about a commercial iteration of VFP called &quot;Program Solutions&quot;. It was (is) an RDMS for printers and lithographers to manage their workflo etc...

&quot;Andy&quot; was further along in his knowledge of VFP than I was, so I was looking to subcontract out some VFP code to interface with this 50 fox app.

The project died after I left the company and never did get implemented.

I live in lala land (Los Angeles) and occasionaly get out to a local users meeting. If you wish to go off-line with this I'm at wrocks@yahoo.com. Include Andy in the subject line so I don't confuse you with spam.

My apologies to the group for wandering ot.

Regards - Wayne

sig_jugler.gif
...all this and tap dancing too!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top