Imagine (Lister plugin for viewing img files) v. 1.5.3 (May 21 2024)

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Dalai
Power Member
Power Member
Posts: 9461
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Imagine (Lister plugin for viewing img files) v. 1.1.6 (Aug 11 2023)

Post by *Dalai »

2Hacker
Well, there's always the TC way to prevent a plugin from loading a specific file type:

Code: Select all

x_detect="MULTIMEDIA & (EXT!="MP4" & EXT!="MKV")"
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
tuska
Power Member
Power Member
Posts: 3790
Joined: 2007-05-21, 12:17 UTC

Re: Imagine (Lister plugin for viewing img files) v. 1.1.6 (Aug 11 2023)

Post by *tuska »

Hacker wrote: 2023-09-09, 17:25 UTC Hi,
Any ideas ... how to fix it, please?
For example, the following setting can be made temporarily:

Configuration > Options... > Edit/View > Configure internal viewer... > tab "Multimedia" > Define view method by file type... >
Add... > *.mp4 > OK > click on '+' 4 Image/Multimedia > mmedia.wlx64 > OK, OK, OK, OK > CM_EXIT 13


Another possibility:
I have not defined the file extension .MP4 for Imagine.

wincmd.ini - [ListerPlugins]

Code: Select all

5=%COMMANDER_PATH%\Plugins\wlx\Imagine\Imagine.wlx
5_detect="MULTIMEDIA & ext="AVIF"|ext="BMP"|ext="JPG"|ext="JPE"|ext="JPEG"|ext="JP2"|ext="J2K"|ext="PNG"|ext="GIF"|ext="TIF"|ext="TIFF"|ext="PSD"|ext="TGA"|ext="PCX"|ext="PCD"|ext="WMP"|ext="WMF"|ext="EMF"|ext="AAI"|ext="JXR"|ext="WDP"|ext="DICOM"|ext="DCM"|ext="WEBP"|ext="PBM"|ext="PPM"|ext="HEIC"|ext="HEIF"|ext="ICO"|ext="CUR"|ext="LBM"|ext="ANI"|ext="FLI"|ext="DNG"|ext="RAW"|ext="CRW"|ext="CR2"|ext="NEF"|ext="ORF"|ext="ARW"|ext="DCR"|ext="MRW"|ext="NRW"|ext="PEF"|ext="RAF"|ext="SRF"|ext="X3F"|ext="MEF"|ext="SRW"|ext="3FR"|ext="MDC"|ext="RW2"|ext="ERF"|ext="MOS"|ext="KDC"|ext="SR2"|ext="CR3"|ext="SVG""
6=%COMMANDER_PATH%\Plugins\wlx\Imagine_32-bit\Imagine.wlx
6_detect="MULTIMEDIA & ext="AVIF"|ext="BMP"|ext="JPG"|ext="JPE"|ext="JPEG"|ext="JP2"|ext="J2K"|ext="PNG"|ext="GIF"|ext="TIF"|ext="TIFF"|ext="PSD"|ext="TGA"|ext="PCX"|ext="PCD"|ext="WMP"|ext="WMF"|ext="EMF"|ext="AAI"|ext="JXR"|ext="WDP"|ext="DICOM"|ext="DCM"|ext="WEBP"|ext="PBM"|ext="PPM"|ext="HEIC"|ext="HEIF"|ext="ICO"|ext="CUR"|ext="LBM"|ext="ANI"|ext="FLI"|ext="DNG"|ext="RAW"|ext="CRW"|ext="CR2"|ext="NEF"|ext="ORF"|ext="ARW"|ext="DCR"|ext="MRW"|ext="NRW"|ext="PEF"|ext="RAF"|ext="SRF"|ext="X3F"|ext="MEF"|ext="SRW"|ext="3FR"|ext="MDC"|ext="RW2"|ext="ERF"|ext="MOS"|ext="KDC"|ext="SR2"|ext="CR3"|ext="SVG""
Last edited by tuska on 2023-09-09, 18:18 UTC, edited 1 time in total.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6532
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Imagine (Lister plugin for viewing img files) v. 1.1.6 (Aug 11 2023)

Post by *Horst.Epp »

The TC internal viewer can play mp4 without problems
if the LAV filters are configured as suggested.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3737)
TC 11.03 x64 / x86
Everything 1.5.0.1382a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64
User avatar
Hacker
Moderator
Moderator
Posts: 13102
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Imagine (Lister plugin for viewing img files) v. 1.1.6 (Aug 11 2023)

Post by *Hacker »

Dalai,
Thanks, yes, adjusting the detect string fixed it.

tuska,
Thank you, but that does not really restore the previous functionality.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
petermad
Power Member
Power Member
Posts: 14913
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Imagine (Lister plugin for viewing img files) v. 1.1.6 (Aug 11 2023)

Post by *petermad »

how to fix it, please

Code: Select all

2=%COMMANDER_PATH%\Plugins\Lister\Imagine\Imagine.wlx
2_detect="MULTIMEDIA & EXT!="MP4""
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
deus-ex
Power Member
Power Member
Posts: 969
Joined: 2003-02-10, 17:45 UTC

Re: Imagine (Lister plugin for viewing img files) v. 1.1.6 (Aug 11 2023)

Post by *deus-ex »

Hacker wrote: 2023-09-09, 17:25 UTC I updated to 1.1.7 and suddenly Imagine tries (and fails) to play mp4 videos? Any ideas what happened and how to fix it, please?

Code: Select all

2=%COMMANDER_PATH%\Plugins\Lister\Imagine\Imagine.wlx
2_detect="MULTIMEDIA"
Hi Roman,

you probably also installed the new Imagine plugin AVIF, which erroneously tries to load files with the extensions .AVI and .MP4. Either remove the AVIF plugin until an update with a fix becomes available or add the following to your imagine detection string:

Code: Select all

2_detect="multimedia&!(ext="AVI"|ext="MP4")"
Additionally, I added GIF to Imagine's exclusion string as Imagine tends to crash often on animated GIF files, killing TC along with it.
User avatar
deus-ex
Power Member
Power Member
Posts: 969
Joined: 2003-02-10, 17:45 UTC

Re: Imagine (Lister plugin for viewing img files) v. 1.1.6 (Aug 11 2023)

Post by *deus-ex »

petermad wrote: 2023-09-09, 21:54 UTC
how to fix it, please

Code: Select all

2=%COMMANDER_PATH%\Plugins\Lister\Imagine\Imagine.wlx
2_detect="MULTIMEDIA & EXT!="MP4""
Your example won't work, the exclusion string is missing the parentheses.
User avatar
Hacker
Moderator
Moderator
Posts: 13102
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Imagine (Lister plugin for viewing img files) v. 1.1.6 (Aug 11 2023)

Post by *Hacker »

petermad,
Thanks to you as well.

deus-ex,
you probably also installed the new Imagine plugin AVIF, which erroneously tries to load files with the extensions .AVI and .MP4.
Yes indeed I did, thank you.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
petermad
Power Member
Power Member
Posts: 14913
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Imagine (Lister plugin for viewing img files) v. 1.1.6 (Aug 11 2023)

Post by *petermad »

deus-ex wrote: 2023-09-09, 22:00 UTC
petermad wrote: 2023-09-09, 21:54 UTC
how to fix it, please

Code: Select all

2=%COMMANDER_PATH%\Plugins\Lister\Imagine\Imagine.wlx
2_detect="MULTIMEDIA & EXT!="MP4""
Your example won't work, the exclusion string is missing the parentheses.
Parentheses is not necessary - try it yourself.

Here the parentheses is necessary though:

Code: Select all

x_detect="MULTIMEDIA & !(EXT="MP4" | EXT="MKV")"
Here the parentheses is not necessary:

Code: Select all

x_detect="MULTIMEDIA & EXT!="MP4" & EXT!="MKV""
See also: https://www.ghisler.ch/wiki/index.php?title=ContentGetDetectString
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
petermad
Power Member
Power Member
Posts: 14913
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Imagine (Lister plugin for viewing img files) v. 1.1.6 (Aug 11 2023)

Post by *petermad »

Just found some other formats that Imagine tries to open: .m4a, .m4v and .mov

So I suggest this detect string:

Code: Select all

x_detect="MULTIMEDIA & !(EXT="MP4" | EXT="M4V" | EXT="M4A" | EXT="MOV")"
I saw in previous posts that .mkv and .avi are suggested for exclusion, but here by me, Imagine does not try to open .mkv and .avi files.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
deus-ex
Power Member
Power Member
Posts: 969
Joined: 2003-02-10, 17:45 UTC

Re: Imagine (Lister plugin for viewing img files) v. 1.1.6 (Aug 11 2023)

Post by *deus-ex »

2petermad

Ah yes, you're correct. I wasn't aware that you could define multiple exclusions without the need for parentheses.
I just learned that Imagine's AVID plugin also grabs the *.MOV file extension when it shouldn't, so here's my updated detection string if you want to keep the AVIF plugin. This string excludes AVI, GIF, MKV, MOV, and MP4 from loading in Imagine:

Code: Select all

0_detect="multimedia&ext!="AVI"&ext!="GIF"&ext!="MKV"&ext!="MOV"&ext!="MP4""
EDIT: The exclusion string keeps growing, just added MKV.
Last edited by deus-ex on 2023-09-09, 23:18 UTC, edited 2 times in total.
User avatar
deus-ex
Power Member
Power Member
Posts: 969
Joined: 2003-02-10, 17:45 UTC

Re: Imagine (Lister plugin for viewing img files) v. 1.1.6 (Aug 11 2023)

Post by *deus-ex »

petermad wrote: 2023-09-09, 23:06 UTC I saw in previous posts that .mkv and .avi are suggested for exclusion, but here by me, Imagine does not try to open .mkv and .avi files.
Here it tries to load the mentioned extensions: AVI, MKV, MOV, MP4
User avatar
petermad
Power Member
Power Member
Posts: 14913
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Imagine (Lister plugin for viewing img files) v. 1.1.6 (Aug 11 2023)

Post by *petermad »

2deus-ex
Maybe it is just my avi and mkv samples, could you try if your Imagine tries to open these two files:

https://tcmd.madsenworld.dk/videotest/FILE0020.AVI
https://tcmd.madsenworld.dk/videotest/vsshort-vorbis-subs.mkv
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
nyam
Member
Member
Posts: 175
Joined: 2003-06-09, 11:55 UTC
Location: Seoul, Korea
Contact:

Re: Imagine (Lister plugin for viewing img files) v. 1.1.6 (Aug 11 2023)

Post by *nyam »

Issues with MP4 files are caused by the new HEIF plugin.
I fixed the problems with the HEIF plugin and uploaded it to v0.0.2.

https://www.nyam.pe.kr/dev/imagine/download/plugin/Imagine_Plugin_HEIF_0.0.2.zip
https://www.nyam.pe.kr/dev/imagine/download/plugin/x64/Imagine_Plugin_HEIF_x64_0.0.2.zip
User avatar
deus-ex
Power Member
Power Member
Posts: 969
Joined: 2003-02-10, 17:45 UTC

Re: Imagine (Lister plugin for viewing img files) v. 1.1.6 (Aug 11 2023)

Post by *deus-ex »

nyam wrote: 2023-09-10, 04:13 UTCI fixed the problems with the HEIF plugin and uploaded it to v0.0.2.
Confirmed, all the mentioned video extensions (AVI, M4A, M4V, MKV, MP4, MOV) do work again as expected and are not taken by the HEIF plugin anymore.

So the issue originated from the HEIF plugin. I tried a temporary fix by just removing the AVIF plugin which worked. But as you write in the plugin description, the HEIF plugin requires the AVIF plugin to properly function.

Thank you for the quick fix, nyam. :D
Post Reply