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
 Thumbnail for MP4 files on network share

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
troberts Posted - Jun 16 2025 : 04:16:30
Hi,

I am using a TImageEnMView component to display thumbnails of image and movie files. I am loading the files into it using the AppendImage method.

Thumbnails of jpeg files load correctly regardless of whether the files are located on a local drive or on a network share. However thumbnails of mp4 files only load if the files are on a local drive. If they are on a network share then the Windows placeholder icon is displayed instead.

I have tried using EnableLoadExplorerThumbnails and EnableLoadEXIFThumbnails without success. I have StoreType set to ietFastThumb.

Any ideas?
6   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jun 21 2025 : 20:29:44
If you email me for the latest beta, it has a feature to add a filmstrip border.

Nigel
Xequte Software
www.imageen.com
xequte Posted - Jun 17 2025 : 15:48:37
Hi

Unfortunately that effect is applied by Explorer after retrieving the thumbnail of the video, and I don't know of a method to apply it via API.

You can draw it yourself as the thumbnail is drawn:

http://www.imageen.com/help/TImageEnMView.OnImageOut.html

I would use GDI+ to draw to the OutBitmap.Canvas. Alternatively you could use a mask, as in the demo:

\Demos\ImageEditing\PictureFrames\Frames.dpr

Nigel
Xequte Software
www.imageen.com
troberts Posted - Jun 17 2025 : 04:53:48
Sorry, one other thing. Windows Explorer shows thumbnails of movie files with a filmstrip edging. Is it possible to do that?
xequte Posted - Jun 17 2025 : 04:45:36
Hmmm, that is unexpected. SetModernStyling sets the following:

  Style                        := iemsFlat;
  Background                   := clWindow;
  ThumbnailsBackground         := clWindow;
  ThumbnailsBackgroundSelected := $00FCEADA;
  ThumbnailsBackgroundHover    := $00FFF3E5;
  SelectionColor               := $00CEA27D;
  TextMargin                   := 4;
  HorizBorder                  := 8;
  VertBorder                   := 8;
  UpperGap                     := 0; (or 4 if bSoftShadow = False)
  BottomGap                    := 0; (or 4 if bSoftShadow = False)
  LeftGap                      := 0; (or 4 if bSoftShadow = False)
  RightGap                     := -1; 
  TextBackgroundStyle          := bsClear;
  SoftShadow.Radius            := 2;
  SoftShadow.OffsetX           := 1;
  SoftShadow.OffsetY           := 1;
  SoftShadow.Intensity         := 50;
  SoftShadow.Enabled           := bSoftShadow;

http://www.imageen.com/help/TImageEnMView.SetModernStyling.html

The only thing I can think of there is the size of the thumbnail might be affecting it. You might try eliminating the calls to see which one is the cause.

Nigel
Xequte Software
www.imageen.com
troberts Posted - Jun 17 2025 : 04:28:57
Thanks. I tried making those registry settings but they didn't have any effect. I was calling SetModernStyling. I found that if I don't do that the thumbnails display correctly.
xequte Posted - Jun 16 2025 : 14:57:25
Hi

TImageEnMView does not attempt to create thumbnails for formats like MP4 (for various reasons: format support, performance, finding a suitable frame, etc), it always uses Windows Explorer to generate it. However Windows Explorer itself may avoid creating thumbnails for network based files (for performance reasons).

So, it seems like you can disable that on the system using the registry:

https://superuser.com/questions/1524519/thumbnails-not-showing-on-network-drive-but-on-local-drives-win-10-pro
https://learn.microsoft.com/en-us/windows/client-management/mdm/policy-csp-admx-thumbnails

I have not tested this.

Otherwise you would need to load and generate your own thumbnail. As this would be slow, you should probably store/cache it.

Nigel
Xequte Software
www.imageen.com