Optimizations for Remote File Systems

How-to guides, frequently asked questions, not-so-obvious features, etc
Post Reply
User avatar
rednoah
The Source
Posts: 22967
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Optimizations for Remote File Systems

Post by rednoah »

Disable File I/O

rednoah wrote: 05 Nov 2016, 14:58 FileBot uses Icon MediaInfo to read properties like {vc}, {ac}, {channels}, {resolution}, etc from the container file.
FileBot does parse file headers to read embedded media properties. This will be relatively fast since MediaInfo will only read the first few megabytes of each file, but if File I/O is expensive or just slow, then you'll want to configure FileBot to not parse embedded media properties at all.

Disable media parser per call via the -no-probe command-line flag:

Shell: Select all

-no-probe
Disable media parser permanently via the net.filebot.media.parser system property for both GUI and CLI:

Shell: Select all

filebot -script fn:properties --def net.filebot.media.parser=none



Store metadata to .xattr folders

rednoah wrote: 24 Oct 2012, 11:16 FileBot uses xattr (i.e. Extended Attributes / NTFS Alternate Data Streams) to store full metadata in filesystem attributes. These xattr are not to be confused with traditional tags that are embedded in the file content, but additional data streams stored in the file system for each file that are not part of the file itself. As such, xattr requires a filesystem that supports xattr, and xattr may be silently lost if files are moved to a filesystem that doesn't support xattr.
Remote file systems typically do not support Extended Attributes so you'll want to configure FileBot to store metadata into a .xattr folder / plain file structure.

Enable xattr metadata via .xattr folders and plain/text files permanently via the net.filebot.xattr.store system property for both GUI and CLI:

Shell: Select all

filebot -script fn:properties --def net.filebot.xattr.store=.xattr

:idea: If you have configured .xattr folders then you may want to run the mediainfo script on the server-side to rapidly parse media information for local files and then store it to xattr ahead of time, so that remote clients can then instantly access mediainfo without reading any media file contents:

Shell: Select all

filebot -script fn:mediainfo /input --mode raw



Disable Windows Trash

The FileBot Desktop application for Windows will integrate with the Windows Desktop by default. Disabling Windows Desktop integration may (or may not) speed up file system operations.

Disable Windows File Operation integration permanently via the useNativeShell system property:

Shell: Select all

filebot -script fn:properties --def useNativeShell=false
Disable Windows Trash integration permanently via the net.filebot.UserFiles.trash system property:

Shell: Select all

filebot -script fn:properties --def net.filebot.UserFiles.trash=Delete
:idea: Please read the FAQ and How to Request Help.
Post Reply