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
Author Previous Topic Topic Next Topic  

Andy_Bell

United Kingdom
37 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

38176 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
37 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

38176 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

ioster

Germany
18 Posts

Posted - Jun 21 2021 :  07:08:59  Show Profile  Reply
Hi,

can you explain it to me in more detail?

What do I have to download to play a mp4 file with an imageen object?

How can I find out, what kind of filters are installed?

And what do I have to do if the needed filter is installed?

Best regards
Ingo
Go to Top of Page

jenswahl

Germany
71 Posts

Posted - Jun 22 2021 :  06:28:47  Show Profile  Reply
Hello,

if you are using DirectShow you have to install all needed filters extra. You can do it for each filter or use a collection of filters, e.g. K-Lite Codec Pack.

Kind Regards

Jens
Go to Top of Page

ioster

Germany
18 Posts

Posted - Jun 23 2021 :  04:30:37  Show Profile  Reply
Why do I need to install filter if other applications like windows media player are able to show the videos?

And how do I know, what is the right filter and where can I find it as download? A link to a google search isn't a qualified answer.

Best regards
Ingo
Go to Top of Page

jenswahl

Germany
71 Posts

Posted - Jun 24 2021 :  04:27:28  Show Profile  Reply
Because the Windows Media Player uses own filters (or codecs). It's necessary to read something about Directshow first before you want to use it. Or use one of an alternative: FFmpeg or the VLC-DLLs. Both are working without the need to install filters. But here you have to learn a lot too.

Jens
Go to Top of Page

ioster

Germany
18 Posts

Posted - Jun 30 2021 :  07:56:48  Show Profile  Reply
Is there any public document which explains the features of ImageEn components in combination with Directshow?

What software do I have to install and which properties are important?

I have no time to solve it with try and error.

Best regards
Ingo
Go to Top of Page

xequte

38176 Posts

Posted - Jun 30 2021 :  15:57:30  Show Profile  Reply
Hi Ingo

In ImageEn, DirectShow is essentially only used for video capture and display via the DShowParams property of TImageEnView.IO:

https://www.imageen.com/help/TImageEnIO.DShowParams.html

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

ioster

Germany
18 Posts

Posted - Jul 01 2021 :  08:10:15  Show Profile  Reply
I have a fundamental question: is it possible to show a thumbnail of a video file with ImageEn components? And it would be great if I could play it in an object.

I don't like to rack my brain for a long time.
Go to Top of Page

xequte

38176 Posts

Posted - Jul 01 2021 :  21:28:28  Show Profile  Reply
Hi

If you just want a thumbnail as you see in Windows Explorer, use:

https://www.imageen.com/help/WindowsGetExplorerThumbnail.html

It is just an image, it can't be played.


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

ioster

Germany
18 Posts

Posted - Jul 02 2021 :  03:59:05  Show Profile  Reply
It is very difficult to communicate with your support.

In my case the filenames and folder of graphic and video files are stored in a database. I use ImageEnMView and ImageEnView for displaying pictures (including some bugs) and now I like to use the same layout for displaying video files.

Is it right, that I have to search another component with another look because ImageEnMView and ImageEnView only displays graphics?

Best regards
Ingo
Go to Top of Page

xequte

38176 Posts

Posted - Jul 03 2021 :  00:54:17  Show Profile  Reply
Hi Ingo

I'm sorry for your difficulty.

ImageEn is principally a graphic library, with support for video via DirectShow. DirectShow has a number of limitations, so if your application needs wide video playback support then a a specialist video library will work better.


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

xequte

38176 Posts

Posted - Jul 03 2021 :  00:58:26  Show Profile  Reply
If you *only* need to show a thumbnail of your videos, then at the time they are added to your database (still exist as a file) you could grab Explorer's thumbnail of the video and assign it to a thumbnail field in your database.

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

ioster

Germany
18 Posts

Posted - Jul 07 2021 :  03:45:31  Show Profile  Reply
Hi,

I tried to run your demo applications called DirectShow Videoplayer because it would be a way for showing video files in my program. I can choose a file with the opendialog but the player screen is empty. And there is no explanation why - no error message or something else.

I found this issue and no significant information for solving the problem. I could search after mp4, windows 10 and directshow. I done it and I don't understand, what I have to install on my system and what should I say to my customers.

It doesn't run.

Best regards
Ingo
Go to Top of Page

ioster

Germany
18 Posts

Posted - Jul 07 2021 :  03:51:56  Show Profile  Reply
I don't store thumbnails in my database and I deactivated the thumbnail cache of your ImageEnMView component because it doesn't synchronize the thumbnails if you navigate through the main recordsets. I thought that this problem is solved in my special edition.

How can I read the video thumbnails on the OnRecordChange of the main dataset?
Go to Top of Page

xequte

38176 Posts

Posted - Jul 07 2021 :  06:49:08  Show Profile  Reply
Hi

WindowsGetExplorerThumbnail() can only retrieve thumbnails from files, so it is not practical to use for videos stored in a database. It would be too slow to output to a temporary file.

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