ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Loading MP4 file

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Andy_Bell Posted - Jun 30 2020 : 06:16:34
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
17   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jul 07 2021 : 06:49:08
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
ioster Posted - Jul 07 2021 : 03:51:56
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?
ioster Posted - Jul 07 2021 : 03:45:31
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
xequte Posted - Jul 03 2021 : 00:58:26
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
xequte Posted - Jul 03 2021 : 00:54:17
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
ioster Posted - Jul 02 2021 : 03:59:05
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
xequte Posted - Jul 01 2021 : 21:28:28
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
ioster Posted - Jul 01 2021 : 08:10:15
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.
xequte Posted - Jun 30 2021 : 15:57:30
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
ioster Posted - Jun 30 2021 : 07:56:48
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
jenswahl Posted - Jun 24 2021 : 04:27:28
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
ioster Posted - Jun 23 2021 : 04:30:37
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
jenswahl Posted - Jun 22 2021 : 06:28:47
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
ioster Posted - Jun 21 2021 : 07:08:59
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
xequte Posted - Jun 30 2020 : 22:01:09
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
Andy_Bell Posted - Jun 30 2020 : 20:04:33
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
xequte Posted - Jun 30 2020 : 18:59:27
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