mthumbs.wlx - thumbnail for medias files (video, audio, images, ect...)

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: sheep, Hacker, Stefan2, white

User avatar
byblo
Senior Member
Senior Member
Posts: 251
Joined: 2005-02-20, 21:13 UTC

mthumbs.wlx - thumbnail for medias files (video, audio, images, ect...)

Post by *byblo »

Hello.

Just released a new wlx thumbnail plugin for TC.

(Edit:Updated description text to version 20210405)
mthumbs is a WLX thumbnail and Lister/Quickview plugin to preview most of various existing Videos, Audios, Images, Comics and Albums formats.

Image: http://users.skynet.be/fb119101/rlz/mthumbs.jpg

Here is the partial readme.txt content:

- Various extensions are supported (Supporter version only): (more or less exhaustive list: maybe not all are properly supported, send me some feedback in that case)

Videos: 3g2, 3gp, 4xm, anm, apm, asf, av1, avi, avr, avs, bfi, bik, bik2, bk2, bmv, c93, cam, cdg, cdxl, cine, dash, dcr, dfa, dv, dxa, film_cpk, fits, flic, flv, frm, gdv, gif, gxf, h261, h263, h264, hevc, ivf, ivr, jps, jv, kux, lvf, lxf, m2t, m2ts, m4v, mj2, mjpeg, mkv, mod, mov, mp4, mpc, mpeg, mpg, mtv, mv, mvi, mxf, nsv, nut, nuv, ogm, paf, pmp, pns, pva, r3d, rl2, rm, roq, rpl, scc, ser, smk, sup, swf, thp, tmv, tod, ts, ty, vc1, vfw, vivo, vmd, vob, webm, wmv, wtv, wve, xmv, y4m, yop, yuv

Audios: 3ga, aa, aac, ac3, acm, act, adx, aea, afc, aif, aiff, aix, alaw, amr, apc, ape, au, bfstm, bit, brstm, caf, cdr, cpt, dsf, dss, dts, dtshd, eac3, flac, fsb, g722, g726, gsm, hca, hdp, ics, iff, ircam, it, m4a, mlp, mmf, mp3, musx, ogg, oma, opus, pvf, qcp, ram, raw, rf64, rso, sap, sbg, sds, sdx, sf, shn, sid, tak, tta, u8, vag, voc, vqf, w64, wav, wma, wv, xa, xwma

Images: 3fr, ai, apng, arw, b3d, blp, bmp, cgm, clp, cmx, cr2, crw, dcm, dcx, dds, dib, djvu, dng, dwg, dxf, ecw, emf, eps, erf, exr, fit, fpx, g3, ids, iiq, im1, im24, im32, im8, ima, img, iw44, j2k, jls, jng, jp2, jpc, jpe, jpeg, jpf, jpg, jpm, jxr, kdc, lbm, mng, mos, mpo, mrw, nef, nrw, orf, pbm, pcc, pcd, pcx, pdf, pdn, pef, pgm, plt, png, pnm, ppm, ps, psd, psp, raf, ras, rgb, rgba, rle, rw2, rwl, sff, sfw, sgi, srf, sun, svg, tga, tif, tiff, ttf, urt, wbc, wbmp, wbz, wdp, webp, wmf, wsq, x3f, xbm, xcf, xcfbz2, xcfgz, xpm

Comics: cbr, cbz (with shortest image path as output priority)

Albums/Archives: apk, epub, jar, rar, waz, zip (with '*cover*', '*folder*' and '*preview*' output priority)


- 3D and VR support with overlay (will show an unique picture instead of left/right or top/bottom)

- Optional sharpening and jpeg picture quality to get better visualization from thumbnails.

- An ini file that will be found in the plugin's folder can allow extensions and settings changes, on the fly (ini file changes is checked by filedate everytime a thumbnail is requested from the main app)

- Since it rely to external tools like Ffmpeg or Irfanview, it does not require any installed codecs on the system to work, while allowing quick updates for supporting new formats.

- Optional ADS support: It can save cached thumbnails using the NTFS ADS system, which gives volatile support, allowing various thumbnail sizes at once (%file%:preview.jpg and %file%:cache.ini. Or for e.g. %file%:p224x176.jpg in case of multiple sizes enabled from settings).

- ADS is also allowing automatic refresh from a thumbnail only when necessary, e.g. if the related format setting from the ini file or the plugin was changed since the last time.

- Using the cm_ReloadSelThumbs on a thumbnail, allows rotating pictures on the fly (see PercentPosition ini entry), in case of an undesired picture is returned from a video (black or intro screen, ect...) If ADS is enabled, the lastest position will be remembered into the %file%:cache.ini file (when not matching the PercentPosition value)

- ADS save will be automatically canceled in case a file is from a read-only path. But if a file has simply a read-only attribute, ADS will work properly by restoring the RO attribute after saving the cached thumbnail.

- Can be also used through Symbolic links without problem.

- Some extra info like the video time, height in overlay is optional.




Installation and update:
-----------------------

- Install the plugin where you want to and register it to your main app as usual (TC, DC, ect...)

- Recommended: If you are updating, replace the existing file by the provided ones, including the ini files.

- Download and decompress the external tools (ffmpeg and irfanview) to the plugin's bin\ folders (download links can be found in the bin\*\install_url.txt)

- Remember to give the priority to this plugin: For TC, go to the menu: Configuration -> Plugins -> Configure button for WLX -> then move to the top the listed mthumbs.wlx filepath.

- Ensure the thumbnail filters are set correctly: For TC, go to the menu: Configuration -> Thumbnails -> Enable "Get from Lister plugins for:" and set editbox to: *.*

- For Lister and Quickview support, it is necessary for some extensions like MPG or WAV to add the detection string "MULTIMEDIA" to the detection string (automatic process if you freshly (re)installed the plugin, after 2021.04.01 versions)

- Recommended for Lister and Quickview support: for TC, go to the lister menu: Configuration -> Edit/View -> Configure internal viewer... -> Multimedia -> Check "Use plugins or load bitmap as graphics at startup"

- Check the mthumbs.ini file to see if changes are needed (!!!read first the section "Editing the plugin's settings (mthumbs.ini)" I have seem some people misunderstanding some of the ini entries in forums)

- IMPORTANT: ADS caching is disabled by default. ADS caching was made with volatility/portability and speed as main advantage. Thus if you decide to use it, it is recommended to TURN OFF the internal file manager's caching. (for TC, configuration -> Thumbnails -> Empty the database location) Note: ADS or not, if speed is important for you, i recommend you try to disable the custom fields and fields by type (unless they using some cache). They may be useful but often are way too slow for some formats. Give it a try :)

- Additional note: If you currently using the plugin cbxthumbs.wlx, you can uninstall it since mthumbs is the continuity and offers better functions: now support JPG, PNG, GIF and TGA + albums support.




Usage:
------

- Just turn on the thumbnail mode as usual on your file manager. Lister and Quickview for previewing the file.

- Important: It is recommended to not use your main ffmpeg or irfanview tools for this plugin. Since the needs are not the same, it is probably better to use separated thus dedicated versions. Just use the \bin\ folder from the plugin folder.

- Tip: When using the ffplay.exe on the lister, you can right click to jump at the percentage position. e.g. Right click at 90% horizontaly, to jump to 90% of the total playing time

- Tip: When using irfanview on the lister, left click to draw the zooming zone. You can also press CTRL+SHIFT while the mouse is above the picture to enable the magnifier (then mouse wheel to increase/decrease the magnifier magnitude)

- Tip: Some recommended value for thumbnails (hybrid ratio): 176x136 or 224x176 or 304x240



Read the readme.txt for more details.

You can download it from those URL:
http://wincmd.ru/plugring/mthumbs.wlx.html
http://www.totalcmd.net/plugring/mthumbs.wlx.html
https://www.patreon.com/byblo

More pictures: https://www.patreon.com/posts/47148474
Video: https://youtu.be/T0EOKm_e_es
Last edited by byblo on 2021-04-17, 02:54 UTC, edited 1 time in total.
User avatar
tbeu
Power Member
Power Member
Posts: 1325
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Re: mthumbs.wlx - thumbnail for medias files (video, audio, images, ect...)

Post by *tbeu »

Thank you. What about the shareware licensing? Does the plugin need to be purchased/registered at some point in time?
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
deus-ex
Power Member
Power Member
Posts: 827
Joined: 2003-02-10, 17:45 UTC

Re: mthumbs.wlx - thumbnail for medias files (video, audio, images, ect...)

Post by *deus-ex »

You can find the answer to your question in the included readme:

Code: Select all

As usual since 20 years of various releases on the internet, my work was and will remain free for all.
This said, I decided to make advanced supporter versions as rewards for people supporting my work.
In this case, some functions and major updates will be reserved as rewards to my supporters.
The term shareware does not apply, it is donationware that provides the inclined user with advanced support and enhanced binaries.
User avatar
byblo
Senior Member
Senior Member
Posts: 251
Joined: 2005-02-20, 21:13 UTC

Re: mthumbs.wlx - thumbnail for medias files (video, audio, images, ect...)

Post by *byblo »

I was not sure to leave it as freeware or not at totalcmd.net.

I added some limitations to the ini file entries compared the supporter version (see the ini file after running once the plugin)
There is no limitation in time.

This said, I dont like the idea of a limited version as public version, but had no real choice since this is the first version release. Thus, soon or later, I guess I will probably post the current supporter version as full freeware, after few supporter versions updates.
achim975
Junior Member
Junior Member
Posts: 6
Joined: 2021-02-11, 19:30 UTC

Re: mthumbs.wlx - thumbnail for medias files (video, audio, images, ect...)

Post by *achim975 »

Hello, I look for a Lister Plugin for Photoshop PSD files. Unfortunately mthums does not show a preview of new versions of PSD files > CS5. Is a way to fix this? Thank you. I keep testing. Thank you for that plugin.
tcOne
Junior Member
Junior Member
Posts: 19
Joined: 2016-05-13, 00:33 UTC

Re: mthumbs.wlx - thumbnail for medias files (video, audio, images, ect...)

Post by *tcOne »

@achim975
You can set IrfanView as a viewer for Multimedia files (Preferences > Edit/View > Configure internal viewer > Multimedia tab) to have Lister (and Quickview and thumbnails view) display newer version of PSD files.
User avatar
freaktenstein
Junior Member
Junior Member
Posts: 12
Joined: 2012-03-18, 08:29 UTC

Re: mthumbs.wlx - thumbnail for medias files (video, audio, images, ect...)

Post by *freaktenstein »

I have the paid version - It does not work for me at all. Totalcommander 9.51 64bit.
Configured as first Lister plugin.
Thumnail generation from Lister for: *.*
Available:
c:\Program Files\totalcmd\Plugins\mthumbs\bin\IrfanView_64\I_VIEW64.EXE
c:\Program Files\totalcmd\Plugins\mthumbs\bin\ffmpeg\ffmpeg.exe
c:\Program Files\totalcmd\Plugins\mthumbs\bin\ffmpeg\ffprobe.exe

mthumbs.ini is filled...

[mthumbs]
Videos extension list (chars)=3GP, ASF, AVI, FLV, GIF, JPS, M2TS, M4V, MKV, MOV, MP4, MPEG, MPG, OGM, PNS, RM, VOB, WEBM, WMV
Audios extension list (chars)=AAC, AIF, AIFF, APE, AU, AVR, CAF, FLAC, IT, M4A, MOD, MP3, MPC, OGG, OPUS, PAF, PVF, RAM, RF64, SF, VOC, W64, WAV, WMA
Images extension list (chars)=ACR, ANI, B3D, BMP, CAM, CLP, CPT, CR2, CRW, CUR, DCM, DCX, DDS, DIB, DJVU, DXF, ECW, EMF, EPS, EXR, FIT, FPX, G3, GIF, HDP, ICL, ICO, IFF, IM1, IM24, IM32, IM8, IMA,

etc.

What's the rocket science behind this plugin to get it working?
User avatar
byblo
Senior Member
Senior Member
Posts: 251
Joined: 2005-02-20, 21:13 UTC

Re: mthumbs.wlx - thumbnail for medias files (video, audio, images, ect...)

Post by *byblo »

Sorry but got no clue yet. All is working fine here. I tested the plugin on both tc32 and 64, and both windows 7 and windows 10 OS.

Did you tried first the free version? Does it work for you?

Are you running total commander as administrator?
User avatar
byblo
Senior Member
Senior Member
Posts: 251
Joined: 2005-02-20, 21:13 UTC

Re: mthumbs.wlx - thumbnail for medias files (video, audio, images, ect...)

Post by *byblo »

achim975 wrote: 2021-02-11, 19:38 UTC Hello, I look for a Lister Plugin for Photoshop PSD files. Unfortunately mthums does not show a preview of new versions of PSD files > CS5. Is a way to fix this? Thank you. I keep testing. Thank you for that plugin.
Thank you :)

Note that PSD extension is not available on the current free version. See the ini file: "Images extension list (chars) [free version]=CLP, JPG, JPEG, TGA, TIFF, WEBP, XCF"

Thus, if you dont need ADS caching functionality and just need to get thumbnails from irfanview, you can just add irfanview as multimedia bridge to TC. The plugin is not needed in that case.
User avatar
freaktenstein
Junior Member
Junior Member
Posts: 12
Joined: 2012-03-18, 08:29 UTC

Re: mthumbs.wlx - thumbnail for medias files (video, audio, images, ect...)

Post by *freaktenstein »

byblo wrote: 2021-02-12, 06:28 UTC Sorry but got no clue yet. All is working fine here. I tested the plugin on both tc32 and 64, and both windows 7 and windows 10 OS.

Did you tried first the free version? Does it work for you?

Are you running total commander as administrator?
I tried the free version as well. Not working. I tried it running TC as Administrator, too. It's not working. No error messages.

The tools are exactly in the position of the paths which I find in the .ini file. With procmon I see, that totalcmd64.exe reads the

c:\Program Files\totalcmd\Plugins\mthumbs\mthumbs.ini file and even opens
c:\Program Files\totalcmd\Plugins\mthumbs\bin\IrfanView_64\i_view64.exe. No errors.

When I run c:\Program Files\totalcmd\Plugins\mthumbs\bin\IrfanView_64\i_view64.exe manually, it starts.
Same for c:\Program Files\totalcmd\Plugins\mthumbs\bin\ffmpeg\ffmpeg.exe.

When I switch to thumbnail view in TC, I only see the files icons, no thumbnails. Not a single one. I am not using a thumbnail DB.

So your plugin is unusable for me and I had to switch back to PhotoViewer plugin which works fine.

OS is Windows 10 Pro 20H2 19042.804 64 Bit English
User avatar
byblo
Senior Member
Senior Member
Posts: 251
Joined: 2005-02-20, 21:13 UTC

Re: mthumbs.wlx - thumbnail for medias files (video, audio, images, ect...)

Post by *byblo »

You can enable the debugging mode by editing the ini entry: Debug (bool)=1 then restarting TC.
See if it gives you some error popup this time.

Maybe you can also try with a temporary fresh installed TC somewhere else, to check if the problem comes from some TC setting.
DaZoB
Junior Member
Junior Member
Posts: 2
Joined: 2021-03-14, 19:17 UTC

Re: mthumbs.wlx - thumbnail for medias files (video, audio, images, ect...)

Post by *DaZoB »

I had the same problem and found out that the problem is with spaces in pathes.
My COMMANDER_PATH is C:\Tools\Total Commander resulting in the following non working mthumbs.ini entries:

Code: Select all

ffmpegPath (chars)=C:\Tools\Total Commander\Plugins\wlx\mthumbs\bin\ffmpeg\ffmpeg.exe
ffprobePath (chars)=C:\Tools\Total Commander\Plugins\wlx\mthumbs\bin\ffmpeg\ffprobe.exe
irfanviewPath (chars)=C:\Tools\Total Commander\Plugins\wlx\mthumbs\bin\IrfanView_64\i_view64.exe
Unfortunately it did not work to surround the entries with quotes.
So as a workaround I created a link from folder C:\Tools\Total Commander\Plugins\wlx\mthumbs to folder C:\Tools\mthumbs and changed the entries in mthumbs.ini to

Code: Select all

ffmpegPath (chars)=C:\Tools\mthumbs\bin\ffmpeg\ffmpeg.exe
ffprobePath (chars)=C:\Tools\mthumbs\bin\ffmpeg\ffprobe.exe
irfanviewPath (chars)=C:\Tools\mthumbs\bin\IrfanView_64\i_view64.exe
Without spaces it is working.

@byblo
I would appreciate if mthumbs would support spaces.
Thanks for making this plugin!
DaZoB
Junior Member
Junior Member
Posts: 2
Joined: 2021-03-14, 19:17 UTC

Re: mthumbs.wlx - thumbnail for medias files (video, audio, images, ect...)

Post by *DaZoB »

It would also be good, if the %COMMANDER_PATH% variable could be used in path definitions
User avatar
byblo
Senior Member
Senior Member
Posts: 251
Joined: 2005-02-20, 21:13 UTC

Re: mthumbs.wlx - thumbnail for medias files (video, audio, images, ect...)

Post by *byblo »

Strange... I usualy take in account quotes in my apps. Thank you for the reporting, I will check then fix this problem for the incoming new release.
User avatar
byblo
Senior Member
Senior Member
Posts: 251
Joined: 2005-02-20, 21:13 UTC

Re: mthumbs.wlx - thumbnail for medias files (video, audio, images, ect...)

Post by *byblo »

Hello. Updated version 20210405 was released (See first post for download links)



Changelog:
---------


v20210405
- Added Lister and Quickview (still experimental) support for videos, audio and images. (maybe comics and albums will be supported later. still undecided what to preview for thoses)

- Finalized (more or less) the supported video extension list: 3g2, 3gp, 4xm, anm, apm, asf, av1, avi, avr, avs, bfi, bik, bik2, bk2, bmv, c93, cam, cdg, cdxl, cine, dash, dcr, dfa, dv, dxa, film_cpk, fits, flic, flv, frm, gdv, gif, gxf, h261, h263, h264, hevc, ivf, ivr, jps, jv, kux, lvf, lxf, m2t, m2ts, m4v, mj2, mjpeg, mkv, mod, mov, mp4, mpc, mpeg, mpg, mtv, mv, mvi, mxf, nsv, nut, nuv, ogm, paf, pmp, pns, pva, r3d, rl2, rm, roq, rpl, scc, ser, smk, sup, swf, thp, tmv, tod, ts, ty, vc1, vfw, vivo, vmd, vob, webm, wmv, wtv, wve, xmv, y4m, yop, yuv

- Finalized (more or less) the supported audio extension list: 3ga, aa, aac, ac3, acm, act, adx, aea, afc, aif, aiff, aix, alaw, amr, apc, ape, au, bfstm, bit, brstm, caf, cdr, cpt, dsf, dss, dts, dtshd, eac3, flac, fsb, g722, g726, gsm, hca, hdp, ics, iff, ircam, it, m4a, mlp, mmf, mp3, musx, ogg, oma, opus, pvf, qcp, ram, raw, rf64, rso, sap, sbg, sds, sdx, sf, shn, sid, tak, tta, u8, vag, voc, vqf, w64, wav, wma, wv, xa, xwma

- Finalized (more or less) the supported images extension list: 3fr, ai, apng, arw, b3d, blp, bmp, cgm, clp, cmx, cr2, crw, dcm, dcx, dds, dib, djvu, dng, dwg, dxf, ecw, emf, eps, erf, exr, fit, fpx, g3, ids, iiq, im1, im24, im32, im8, ima, img, iw44, j2k, jls, jng, jp2, jpc, jpe, jpeg, jpf, jpg, jpm, jxr, kdc, lbm, mng, mos, mpo, mrw, nef, nrw, orf, pbm, pcc, pcd, pcx, pdf, pdn, pef, pgm, plt, png, pnm, ppm, ps, psd, psp, raf, ras, rgb, rgba, rle, rw2, rwl, sff, sfw, sgi, srf, sun, svg, tga, tif, tiff, ttf, urt, wbc, wbmp, wbz, wdp, webp, wmf, wsq, x3f, xbm, xcf, xcfbz2, xcfgz, xpm

- Finalized (more or less) the supported albums extension list: apk, epub, jar, rar, waz, zip

- Added a third text line in video preview, showing the video height in pixels.

- Now the plugin will return the string "MULTIMEDIA" on file manager detection string request. (required by TC to support some extension like MPG, WAV, ect...) If you got the plugin previously installed, it is recommended that you add the "MUTIMEDIA" string manually.

- Added new ini entries: mthumbs Version (internal only: do not modify), Lister extension exclusion(!) list (chars), ffplayPath (chars), ListerSupport (bool), ffplayListerVideoPreInputParams (chars), ffplayListerAudioPreInputParams (chars), irfanviewListerPreInputParams (chars), FontSizeLine3 (int), TextLine3XPos (int), TextLine3YPos (int), ListerDirectorySupport (bool), ListerCloseTempFileSleepTimeInMS (int)

- Fixed a problem to cmd.exe with the /S switch, where before it could not handle spaces properly for external apps like ffpmeg.exe (thanks to DaZoB from TC forum for finding and reporting the problem)

- Some code clearing/optimisation and some small fixes here and there.


Enjoy !


DaZoB wrote: 2021-03-14, 20:09 UTC It would also be good, if the %COMMANDER_PATH% variable could be used in path definitions
This will be done probably in next version.
Post Reply