ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder
ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Loading MP4 file
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Andy_Bell

United Kingdom
28 Posts

Posted - Jun 30 2020 :  06:16:34  Show Profile  Reply
Hi

C++ Builder 2007

I'm trying to load an MP4 file and extract the first frame from it.

So far, I've tried using and not using the ImageMagik DLLs and using this code with the TImageEnMView component:

To get the first frame

IE->Clear();
IE->AppendImage("C:\\sample.mp4::0");

To load the image

IE->LoadFromFileOnDemand("C:\\sample.mp4");

in both cases I get a picture of a broken image (see uploaded image).

The MP4 seems ok - it plays in Windows or in a Web Browser...

Is there anything else I need to do?



Andy

xequte

5500 Posts

Posted - Jun 30 2020 :  18:59:27  Show Profile  Reply
Hi Andy

For MP4 support DirectShow is used. So you need to have a DirectShow MP4 filter, which is not available by default.

I would first try the video capture demos to confirm DirectShow is working for MP4 on that system.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Andy_Bell

United Kingdom
28 Posts

Posted - Jun 30 2020 :  20:04:33  Show Profile  Reply
I'm running Windows 10 and, from what I can make out from MS's site, Direct Show should be already installed as a core part of the system. I can't find anywhere that lets me download and install it.

Am I right?

If not, where do I get it from?

Andy

Andy
Go to Top of Page

xequte

5500 Posts

Posted - Jun 30 2020 :  22:01:09  Show Profile  Reply
Hi Andy

It is the MP4 format filter that you need to download. Please try:

https://www.google.com/search?q=directshow+mp4+filter+windows+10

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To: