Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

using Windows' thumb generator (don't know how to put it^^)
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Total Commander Forum Index -> TC suggestions (English) Printable version
View previous topic :: View next topic  
Author Message
Sinon
Junior Member
Junior Member


Joined: 15 Jun 2007
Posts: 8

PostPosted: Thu May 10, 2012 10:12 am    Post subject: using Windows' thumb generator (don't know how to put it^^) Reply with quote

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
View user's profile Send private message
umbra
Power Member
Power Member


Joined: 14 Jan 2012
Posts: 668

PostPosted: Thu May 10, 2012 10:49 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24621
Location: Switzerland

PostPosted: Fri May 11, 2012 4:22 am    Post subject: Reply with quote

Quote:
Windows 7 Pro x64

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
View user's profile Send private message Send e-mail Visit poster's website
Sinon
Junior Member
Junior Member


Joined: 15 Jun 2007
Posts: 8

PostPosted: Fri May 11, 2012 4:31 am    Post subject: Reply with quote

ghisler(Author) wrote:
Quote:
Windows 7 Pro x64

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
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24621
Location: Switzerland

PostPosted: Fri May 11, 2012 4:33 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
HolgerK
Power Member
Power Member


Joined: 26 Jan 2006
Posts: 3563
Location: Europe, Aachen

PostPosted: Sun May 13, 2012 4:16 am    Post subject: Reply with quote

Does TC use the IShellItemImageFactory::GetImage method in windows visa/7 for thumbnail extraction?
Or does TC search the registry for thumbnail providers and use interfaces like IThumbnailProvider directly?

Regards
Holger
Back to top
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24621
Location: Switzerland

PostPosted: Mon May 14, 2012 8:32 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
HolgerK
Power Member
Power Member


Joined: 26 Jan 2006
Posts: 3563
Location: Europe, Aachen

PostPosted: Mon May 14, 2012 3:12 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24621
Location: Switzerland

PostPosted: Wed May 16, 2012 9:30 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
HolgerK
Power Member
Power Member


Joined: 26 Jan 2006
Posts: 3563
Location: Europe, Aachen

PostPosted: Wed May 16, 2012 4:02 pm    Post subject: Reply with quote

Creating Shell Extension Handlers wrote:
...
While IExtractImage remains supported, IThumbnailProvider is preferred for Windows Vista and later.
...

>=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
View user's profile Send private message Send e-mail
babelsoft
Junior Member
Junior Member


Joined: 16 May 2012
Posts: 2

PostPosted: Wed May 16, 2012 5:24 pm    Post subject: Reply with quote

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 Smile

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
View user's profile Send private message
babelsoft
Junior Member
Junior Member


Joined: 16 May 2012
Posts: 2

PostPosted: Wed May 30, 2012 1:17 pm    Post subject: Reply with quote

Just wanted to say that the next version of Media Preview is available. And that it works nicely with Total Commander Smile
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 24621
Location: Switzerland

PostPosted: Thu May 31, 2012 1:53 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
umbra
Power Member
Power Member


Joined: 14 Jan 2012
Posts: 668

PostPosted: Fri Jun 22, 2012 8:56 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
HolgerK
Power Member
Power Member


Joined: 26 Jan 2006
Posts: 3563
Location: Europe, Aachen

PostPosted: Fri Jun 22, 2012 12:17 pm    Post subject: Reply with quote

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. Very Happy

Many Thanks
Holger
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> TC suggestions (English) All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group