unable to resolve class MediaInfo

Support for Windows users
Post Reply
olivio
Posts: 3
Joined: 29 Nov 2016, 21:18

unable to resolve class MediaInfo

Post by olivio »

Hello,

I’m having trouble getting FileBot to work with MediaInfo on my Windows 10 machine. I’ve installed both the latest versions of FileBot and MediaInfo, but when I try to run FileBot, I receive the following error message:

"Unable to resolve class MediaInfo"

I’ve already attempted the following troubleshooting steps:

Reinstalled both FileBot and MediaInfo.
Verified that MediaInfo is properly installed and added to my system's PATH environment variable.
Tried running FileBot from the command line for more detailed logs (but the error persists).
Tested simple scripts to ensure that MediaInfo should be recognized (still no luck).

Any help or guidance would be much appreciated!

Thanks in advance!

Code: Select all

Script Error: startup failed:
__script_23c59b9dc9bc2555adc268c8f6fbd452: 4: unable to resolve class MediaInfo
 @ line 4, column 16.
                try(def mi = new MediaInfo()) {
                  ^

Code: Select all

filebot -script fn:amc --output "M:/VIDEO2" -rename -r M:/FILEBOT/ --conflict skip -non-strict ^
--format "{ny} {' {imdb-' + imdbid + '}'} / {ny} {allOf{hdr}{source}{vf}{vc}{ac}{channels}.joining('.', '', '')} {' {imdb-' + imdbid + '}'}" ^
--def movieFormat=@M:\movies.groovy ^
--def net.filebot.logging.debug=ALL ^
--action TEST

Code: Select all

C:\Program Files\MediaInfo>filebot -script fn:sysinfo
FileBot 5.1.6 (r10435)
JNA Native: 7.0.0
MediaInfo: 24.12
7-Zip-JBinding: 16.02
Tools: fpcalc/1.5.0
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2024-10-16 (r986)
Groovy: 4.0.21
JRE: OpenJDK Runtime Environment 21.0.3
JVM: OpenJDK 64-Bit Server VM
CPU/MEM: 4 Core / 4.3 GB Max Memory / 45 MB Used Memory
OS: Windows 10 (amd64)
STORAGE: NTFS [(C:)] @ 168 GB | NTFS [SHARE] @ 411 GB
DATA: C:\Users\Plex\AppData\Roaming\FileBot
Package: MSI
License: FileBot License P689XXXXX (Valid-Until: 2026-01-28)
Done ?(?????)?
User avatar
rednoah
The Source
Posts: 23930
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: unable to resolve class MediaInfo

Post by rednoah »

:idea: This error message is most unusual since we don't have any script where def mi = new MediaInfo() appears in line 4:

Code: Select all

unable to resolve class MediaInfo
 @ line 4, column 16.
                try(def mi = new MediaInfo()) {

:?: What is your M:\movies.groovy format code? Could the error message originate from your custom format?



:idea: FileBot uses its own built-in libmediainfo and it's working according to the console output above:

Code: Select all

MediaInfo: 24.12
** FileBot notably does not use any MediaInfo you may or may not have installed on your device. Installing or not installing the MediaInfo standalone tool has no effect on FileBot.


:idea: This option has no effect:

Shell: Select all

--def net.filebot.logging.debug=ALL

Console Output: Select all

Invalid usage: --def net.filebot.logging.debug is not used and has no effect

:idea: These options also have no effect, or may have adverse effects by prematurely resolving input arguments before the amc script is executed, because the amc script interprets input arguments itself:

Shell: Select all

-rename -r
:idea: Please read the FAQ and How to Request Help.
olivio
Posts: 3
Joined: 29 Nov 2016, 21:18

Re: unable to resolve class MediaInfo

Post by olivio »

it looks like I was mixing groovy scripts. need to learn more.
Post Reply