Page 2 of 2

Re: Filebot on Raspberry Pi 3B+

Posted: 08 Mar 2019, 20:20
by rednoah
You can play with different options to narrow down what works and what doesn't. I can't seem reproduce this particular issue. I've tried with the file paths in your logs and amc script with typical options works just fine there.

Re: Filebot on Raspberry Pi 3B+

Posted: 09 Mar 2019, 04:13
by rednoah
You'll get lots and lots of extra logging if debug logging is enabled. If not, please share exactly what you're doing.

You can easily test if these options are set as far as FileBot is concerned:

Code: Select all

$ export FILEBOT_OPTS="-Dnet.filebot.logging.debug=ALL"
$ filebot -script fn:sysenv | grep net.filebot.logging.debug
FILEBOT_OPTS: -Dnet.filebot.logging.debug=ALL
net.filebot.logging.debug: ALL

Re: Filebot on Raspberry Pi 3B+

Posted: 11 Mar 2019, 07:32
by smokeybear83
So looks like additional debugging is enabled but I still don't see any additional information

Code: Select all

 filebot -script fn:sysenv | grep net.filebot.logging.debug
FILEBOT_OPTS: -Dnet.filebot.logging.debug=ALL
net.filebot.logging.debug: ALL
I am just running the script from the command line, the TV renaming works fine but the Movies one doesn't

Edit: Oh actually I am getting more verbose logging now-

Code: Select all

InvocationTargetException
Suppressed Exception: net.filebot.format.SuppressedThrowables: Expression yields empty value: Binding "vf": Failed to open media file: /mnt/shared/Downloads/Temp/Complete/Deadpool.2.2018.Once.Upon.a.Deadpool.1080p.BluRay.H264.AAC-RARBG/Deadpool.2.2018.Once.Upon.a.Deadpool.1080p.BluRay.H264.AAC-RARBG.mp4
net.filebot.format.SuppressedThrowables: Expression yields empty value: Binding "vf": Failed to open media file: /mnt/shared/Downloads/Temp/Complete/Deadpool.2.2018.Once.Upon.a.Deadpool.1080p.BluRay.H264.AAC-RARBG/Deadpool.2.2018.Once.Upon.a.Deadpool.1080p.BluRay.H264.AAC-RARBG.mp4
        at net.filebot.format.ExpressionFormat.format(ExpressionFormat.java:163)
        at net.filebot.format.ExpressionFormat.format(ExpressionFormat.java:129)
        at net.filebot.cli.CmdlineOperations.formatMatches(CmdlineOperations.java:571)
        at net.filebot.cli.CmdlineOperations.renameMovie(CmdlineOperations.java:487)
        at net.filebot.cli.CmdlineOperations.rename(CmdlineOperations.java:92)
        at net.filebot.cli.ScriptShellBaseClass.rename(ScriptShellBaseClass.java:362)
        at Script1$_run_closure52.doCall(Script1.groovy:387)
        at Script1.run(Script1.groovy:349)
        at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:64)
        at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:74)
        at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:162)
        at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:37)
        at net.filebot.Main.main(Main.java:131)
Caused by: net.filebot.format.BindingException: Binding "vf": Failed to open media file: /mnt/shared/Downloads/Temp/Complete/Deadpool.2.2018.Once.Upon.a.Deadpool.1080p.BluRay.H264.AAC-RARBG/Deadpool.2.2018.Once.Upon.a.Deadpool.1080p.BluRay.H264.AAC-RARBG.mp4
        at net.filebot.format.ExpressionBindings.get(ExpressionBindings.java:70)
        at net.filebot.format.ExpressionFileFormat$1.get(ExpressionFileFormat.java:22)
        at net.filebot.format.PrivilegedInvocation$1.run(PrivilegedInvocation.java:34)
        at net.filebot.format.PrivilegedInvocation.invoke(PrivilegedInvocation.java:30)
        at com.sun.proxy.$Proxy18.get(Unknown Source)
        at Script2.run(Script2.groovy:1)
        at net.filebot.format.SecureCompiledScript$1.run(SecureCompiledScript.java:88)
        at net.filebot.format.SecureCompiledScript.eval(SecureCompiledScript.java:84)
        at net.filebot.format.ExpressionFormat.format(ExpressionFormat.java:147)
        ... 12 more
Caused by: java.lang.reflect.InvocationTargetException
        at net.filebot.format.ExpressionBindings.get(ExpressionBindings.java:58)
        ... 20 more
Caused by: net.filebot.mediainfo.MediaInfoException: Failed to open media file: /mnt/shared/Downloads/Temp/Complete/Deadpool.2.2018.Once.Upon.a.Deadpool.1080p.BluRay.H264.AAC-RARBG/Deadpool.2.2018.Once.Upon.a.Deadpool.1080p.BluRay.H264.AAC-RARBG.mp4
        at net.filebot.format.MediaBindingBean.lambda$getMediaInfo$33(MediaBindingBean.java:1231)
        at com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$doComputeIfAbsent$14(BoundedLocalCache.java:2039)
        at com.github.benmanes.caffeine.cache.BoundedLocalCache.doComputeIfAbsent(BoundedLocalCache.java:2037)
        at com.github.benmanes.caffeine.cache.BoundedLocalCache.computeIfAbsent(BoundedLocalCache.java:2020)
        at com.github.benmanes.caffeine.cache.LocalCache.computeIfAbsent(LocalCache.java:112)
        at com.github.benmanes.caffeine.cache.LocalManualCache.get(LocalManualCache.java:54)
        at net.filebot.format.MediaBindingBean.getMediaInfo(MediaBindingBean.java:1227)
        at net.filebot.format.MediaBindingBean.getMediaInfo(MediaBindingBean.java:1249)
        at net.filebot.format.MediaBindingBean.getVideoFormat(MediaBindingBean.java:368)
        ... 21 more

Re: Filebot on Raspberry Pi 3B+

Posted: 11 Mar 2019, 08:13
by rednoah
Looks like MediaInfo doesn't work for this particular file.

Either because MediaInfo is just generally broken on your device / CPU architecture, OR because this specific file is just broken. Have you tested with a variety of other files?

You can just do filebot -mediainfo -r /media/files for a quick check of mediainfo for various files.

Re: Filebot on Raspberry Pi 3B+

Posted: 11 Mar 2019, 21:27
by smokeybear83
Ok will do some digging around with Mediainfo then

Output below - for some reason it's only finding info from the sample and not the full video file is that correct?

Code: Select all

filebot -mediainfo -r /mnt/shared/Downloads/Temp/Complete
bohemian.rhapsody.2018.2160p.uhd.bluray.x265-terminal.sample [3840x1608 x265 7.1 AtmosTrueHD 0:01]
bohemian.rhapsody.2018.2160p.uhd.bluray.x265-terminal [    ]
bohemian.rhapsody.2018.2160p.uhd.bluray.x265-terminal [    ]
RARBG [    ]
Gold Rush S08E01 Wagers and Wars [1280x720 x264 2.0 AAC 1:24]

Re: Filebot on Raspberry Pi 3B+

Posted: 12 Mar 2019, 05:21
by rednoah
Yes, look like the video file is corrupt, or at least somehow odd, making it impossible for MediaInfo read the file headers.

AFAIK, packages are usually quite outdated, so there's a good chance newer versions of libmediainfo.so already fix the issue. If you compile the latest and greatest yourself it might work.

Try to check this file with FileBot 4.8.5 for Windows or macOS and see if it works. Those builds include the latest MediaInfo libraries and don't rely on system packages.