Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.
Moderators: Hacker , petermad , Stefan2 , white
Dalai
Power Member
Posts: 9945 Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)
Post
by *Dalai » 2023-09-09, 18:04 UTC
2
Hacker
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
tuska
Power Member
Posts: 4046 Joined: 2007-05-21, 12:17 UTC
Post
by *tuska » 2023-09-09, 18:12 UTC
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.
Horst.Epp
Power Member
Posts: 6951 Joined: 2003-02-06, 17:36 UTC
Location: Germany
Post
by *Horst.Epp » 2023-09-09, 18:16 UTC
The TC internal viewer can play mp4 without problems
if the LAV filters are configured as suggested.
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Hacker
Moderator
Posts: 13141 Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia
Post
by *Hacker » 2023-09-09, 18:25 UTC
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.
petermad
Power Member
Posts: 16001 Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:
Post
by *petermad » 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""
deus-ex
Power Member
Posts: 979 Joined: 2003-02-10, 17:45 UTC
Post
by *deus-ex » 2023-09-09, 21:57 UTC
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.
deus-ex
Power Member
Posts: 979 Joined: 2003-02-10, 17:45 UTC
Post
by *deus-ex » 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.
Hacker
Moderator
Posts: 13141 Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia
Post
by *Hacker » 2023-09-09, 22:29 UTC
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.
petermad
Power Member
Posts: 16001 Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:
Post
by *petermad » 2023-09-09, 22:37 UTC
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
petermad
Power Member
Posts: 16001 Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:
Post
by *petermad » 2023-09-09, 23:06 UTC
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.
deus-ex
Power Member
Posts: 979 Joined: 2003-02-10, 17:45 UTC
Post
by *deus-ex » 2023-09-09, 23:13 UTC
2
petermad
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.
deus-ex
Power Member
Posts: 979 Joined: 2003-02-10, 17:45 UTC
Post
by *deus-ex » 2023-09-09, 23:15 UTC
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
nyam
Member
Posts: 175 Joined: 2003-06-09, 11:55 UTC
Location: Seoul, Korea
Contact:
Post
by *nyam » 2023-09-10, 04:13 UTC
deus-ex
Power Member
Posts: 979 Joined: 2003-02-10, 17:45 UTC
Post
by *deus-ex » 2023-09-10, 06:23 UTC
nyam wrote: 2023-09-10, 04:13 UTC I 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.