Link to home
Start Free TrialLog in
Avatar of routerboy309
routerboy309

asked on

TActivemoive or like

Hi -

I'm wanting to add the ability to play AVI,MPEG, etc files within my application. I like the way TActivemoive (http://www.delphicity.com) works but this poor boy can't afford the price (yes - I know its only $67, but when $ is tight, $67 is a lot).

Anyway, I'm sure DelphiCity doesn't have the only component. So I'm looking for a freeware verion for Delphi 6. I need the sample to be able to frame capture and save to disk as well.

Links please or sample codes.

Thanks

RB
Avatar of Stuart_Johnson
Stuart_Johnson

What's wrong with TMediaPlayer that's shipped with Delphi?  It will play AVIs and MPEGs perfectly.  Otherwise, you can import the Microsoft Active Movie OCX and use that.

Stu
Avatar of routerboy309

ASKER

Thanks for the quick response. Can TMediaPlayer do screen captures and send the capture to disk? Will it load and play MPGs too?

RB
Umm, no!  You had better edit you question and put that into the requirements for this question.  No wonder that component cost $67.  I'm surprised it's that cheap!

TMediaPlayer will load & play MPEGs however.

What you're asking for is something pretty complex.  I very much doubt you'll find anything for free out there.

An unfortunate part of TMediaPlayer is that you can't even screen capture the form it's playing on (it just returns a black image).  I'm not sure why it's happens.  Perhaps it create a virtual window which can't be seen.  If you could, you could quite easily have written your own code to capture a frame (or frames) from the display rect.

As a suggested bit of reading, perhaps you could have a read through this: http://www.shrinkwrapvb.com/avihelp/avihelp.htm.  I've used it a few times to do some AVI related stuff.

Hope this helps,

Stu
complex ? .. no no :)
go to www.progdigy.com and get DSPack and examples for it
it's based on DirectShow

you can play any media supported by windows
even display jpegs, animated gifs, mp3s, anything :)
there's also a support forum
soon version 2 will be released

oh and ofcourse it's all free, all delphi sources :)
Lee, the problem is that routerboy309 want's to capture and save the output as well.  Can DSPack do this?

Stu
I've spent about two hours playing with DSPack and I like it. The golden question is the frame capture and save output as Stu points outs. Can you help with an example of such?

Thanks

RB
ASKER CERTIFIED SOLUTION
Avatar of Lee_Nover
Lee_Nover

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I really like the components and the site has a complete forum.

Thanks Lee!

RB
damn ... I posted earlier in reply to your previous post but it's not here ?!?!?!
anyway I posted there's an example Grabber & WDM from which you can see how to save the bitmaps from the movie
arghh .. prblems with cache or sumtin, I see it now
tnx for the A :)
Well done, Lee!  Top effort all round!
Sure - its a credit to the site PLUS the advise of frame captures. Well done!