| View previous topic :: View next topic |
| Author |
Message |
Sinon Junior Member

Joined: 15 Jun 2007 Posts: 8
|
Posted: Thu May 10, 2012 10:12 am Post subject: using Windows' thumb generator (don't know how to put it^^) |
|
|
Hi, I recently got this nifty tool for my PC: http://babelsoft.net/products.htm#en
it enables thumbnails for almost every kind of movie file and works like a charm in Windows' Explorer. But it didn't change anything for totalcmd. So I wanted to ask whether it would be possible to tell totalcmd to use the explorer "thumbnail engine" or however that works to get the additional thumbnails to work. |
|
| Back to top |
|
 |
umbra Power Member

Joined: 14 Jan 2012 Posts: 662
|
Posted: Thu May 10, 2012 10:49 am Post subject: |
|
|
Recently I started to use Icaros as a thumbnail generator for the very same reason. But it doesn't work with TC either - only standard thumbnails are shown. So if anyone knows a solution, I'd like to hear it too. _________________ Windows 7 Pro x64, Windows 8 Pro x64 |
|
| Back to top |
|
 |
ghisler(Author) Site Admin


Joined: 04 Feb 2003 Posts: 24602 Location: Switzerland
|
Posted: Fri May 11, 2012 4:22 am Post subject: |
|
|
That seems to be your problem - the shell extension is probably 64-bit only, so it will only work with 64-bit Explorer and 64-bit Total Commander. _________________ Author of Total Commander
http://www.ghisler.com |
|
| Back to top |
|
 |
Sinon Junior Member

Joined: 15 Jun 2007 Posts: 8
|
Posted: Fri May 11, 2012 4:31 am Post subject: |
|
|
| ghisler(Author) wrote: |
That seems to be your problem - the shell extension is probably 64-bit only, so it will only work with 64-bit Explorer and 64-bit Total Commander. |
indeed, media preview is x64, but I'm using the x64 version of TC8rc1, too. so this should be no problem. (I'm using Win7 Prof x64) |
|
| Back to top |
|
 |
ghisler(Author) Site Admin


Joined: 04 Feb 2003 Posts: 24602 Location: Switzerland
|
Posted: Fri May 11, 2012 4:33 am Post subject: |
|
|
OK, then you will have to ask them why it doesn't work outside of Explorer. TC uses all shell extensions which are registered in the system. I know of some which only work in Explorer for legal reasons. _________________ Author of Total Commander
http://www.ghisler.com |
|
| Back to top |
|
 |
HolgerK Power Member


Joined: 26 Jan 2006 Posts: 3553 Location: Europe, Aachen
|
|
| Back to top |
|
 |
ghisler(Author) Site Admin


Joined: 04 Feb 2003 Posts: 24602 Location: Switzerland
|
Posted: Mon May 14, 2012 8:32 am Post subject: |
|
|
No, TC calls:
1. IShellFolder -> GetUIObjectOf(...IID_IExtractImage) with the file's ID-List as a parameter.
2. IExtractImage -> GetLocation with flags set to IEIFLAG_SCREEN | IEIFLAG_QUALITY
3.If GetLocation returns NOERROR or E_PENDING, TC calls
IExtractImage -> Extract to get the actual bitmap. _________________ Author of Total Commander
http://www.ghisler.com |
|
| Back to top |
|
 |
HolgerK Power Member


Joined: 26 Jan 2006 Posts: 3553 Location: Europe, Aachen
|
Posted: Mon May 14, 2012 3:12 pm Post subject: |
|
|
Maybe it's a good idea to switch to IShellItemImageFactory::GetImage or IThumbnailProvider:GetThumbnail in newer windows versions.
Afaik IExtractImage and IThumbnailProvider are two interfaces which are directly implemented by thumbnail provider shell extensions.
Vista and newer seems to prefer IThumbnailProvider (in consequence some shell extensions designed for newer OS may only implement the later).
E.g. here the divX thumbnail provider (DivXThumbnailProvider.dll part of the divX Codec pack) provides images for mkv files in Explorer) but TC (both 32 and 64bit) failed to show these thumbnails.
TC shows only thumnbails for wmv and some older avi.
The UsingThumbnailProviders Sample works fine here for mkv files, so this seems not to be a handler which is designed to work only inside Explorer (not said that maybe a delphi incompatibility prevents the extraction inside TC).
Regards
Holger |
|
| Back to top |
|
 |
ghisler(Author) Site Admin


Joined: 04 Feb 2003 Posts: 24602 Location: Switzerland
|
Posted: Wed May 16, 2012 9:30 am Post subject: |
|
|
OK, I will consider to use IThumbnailProvider in addition to IExtractImage in TC 8.1. Any idea which one should be tried first? _________________ Author of Total Commander
http://www.ghisler.com |
|
| Back to top |
|
 |
HolgerK Power Member


Joined: 26 Jan 2006 Posts: 3553 Location: Europe, Aachen
|
Posted: Wed May 16, 2012 4:02 pm Post subject: |
|
|
>=Vista: First IThumbnailProvider and if this fails than IExtractImage.
Or make it optional (default on) to use IThumbnailProvider first in OS >=Vista.
Regards
Holger |
|
| Back to top |
|
 |
babelsoft Junior Member

Joined: 16 May 2012 Posts: 2
|
Posted: Wed May 16, 2012 5:24 pm Post subject: |
|
|
Hi, I'm the author of Media Preview.
Just wanted to say that Media Preview actually also implements the IExtractImage interface, it's just that it registered itself to IExtractImage in XP and only to IThumbnailProvider in Vista+.
So, if you manually register MP to IExtractImage in Vista+, you should be able to see thumbnails for video files right now in TC!
For example for .mkv file, you should already have this registry entry, which enable MP with IThumbnailProvider:
[HKEY_CLASSES_ROOT\.mkv\ShellEx\{e357fccd-a995-4576-b01f-234630154e96}]
@="{3C582D4E-327E-41FF-9AA9-0133B1CA0AFA}"
Well just add this registry entry to enable MP with IExtractImage:
[HKEY_CLASSES_ROOT\.mkv\ShellEx\{BB2E617C-0920-11D1-9A0B-00C04FC2D6C1}]
@="{3C582D4E-327E-41FF-9AA9-0133B1CA0AFA}"
{3C582D4E-327E-41FF-9AA9-0133B1CA0AFA} is the id key of MP.
Of course, you can do the same for other formats.
I'll probably update the next version to automatically register MP with those 2 interfaces. I didn't think that other apps than vanilla Explorer could use those API
Edit: I forgot to say that you'll also need to notify the system that you changed the associations. One way is by rebooting your computer, another way is by opening MPConf, go to File Association tab and click on Apply. |
|
| Back to top |
|
 |
babelsoft Junior Member

Joined: 16 May 2012 Posts: 2
|
Posted: Wed May 30, 2012 1:17 pm Post subject: |
|
|
Just wanted to say that the next version of Media Preview is available. And that it works nicely with Total Commander  |
|
| Back to top |
|
 |
ghisler(Author) Site Admin


Joined: 04 Feb 2003 Posts: 24602 Location: Switzerland
|
Posted: Thu May 31, 2012 1:53 pm Post subject: |
|
|
That's great, thanks a lot! I will still try to support IThumbnailProvider in one of the next releases. _________________ Author of Total Commander
http://www.ghisler.com |
|
| Back to top |
|
 |
umbra Power Member

Joined: 14 Jan 2012 Posts: 662
|
Posted: Fri Jun 22, 2012 8:56 am Post subject: |
|
|
Fixed in TC 8.01 rc1. Thank you very much for this one! For me the thumbnail mode has been hardly useful till now. _________________ Windows 7 Pro x64, Windows 8 Pro x64 |
|
| Back to top |
|
 |
HolgerK Power Member


Joined: 26 Jan 2006 Posts: 3553 Location: Europe, Aachen
|
Posted: Fri Jun 22, 2012 12:17 pm Post subject: |
|
|
| HolgerK wrote: | E.g. here the divX thumbnail provider (DivXThumbnailProvider.dll part of the divX Codec pack) provides images for mkv files in Explorer) but TC (both 32 and 64bit) failed to show these thumbnails.
TC shows only thumnbails for wmv and some older avi. |
Fixed in TC801rc(x86/x64).
Works like a charm.
Many Thanks
Holger |
|
| Back to top |
|
 |
|