Skip to content

MediaHub Settings: Auto Ingest

Auto Ingest allows you to create watchfolders (Sources) either on your local drive, or on a network drive. Any files placed into these watchfolders will be automatically imported into MediaHub based on the configuration below.

You can also define Rules that filter which files get processed, and Actions that define what happens to those files.

Global Settings

Maximum Concurrent Processes: the number of media jobs (ingest conversions, previews and thumbnails) that MediaHub processes in parallel. The value can be set between 1 and 50; the default is 4. It cannot be set to 0.

Note

This value sizes the shared media worker pool - the queue that runs the conversion, thumbnail and preview work for auto ingest and for manual uploads. It does not cap the number of files that Auto Ingest picks up at once: every file that appears in a watchfolder is processed as it arrives, and only the conversion work downstream is throttled.

Source Settings

Interval: the number of seconds MediaHub waits after the last change to a file before ingesting it. A new source is created with an interval of 5 seconds. If the value is left at 0 (or empty), the server uses 30 seconds.

The timer is restarted by every change event on that file, so ingestion starts the set number of seconds after the file was last written to. Use this for sources with large files, to give a copy time to finish.

Warning

MediaHub does not check whether a file has finished being written - there is no size-stability or file-lock test. If the writer pauses for longer than the Interval (a throttled network copy, an FTP client that does not touch the file between blocks), the partial file is ingested as it stands. If Auto Delete is also enabled, the incomplete source file is then deleted from the watchfolder. For slow or unreliable transfers, set an Interval comfortably longer than any pause you expect, and leave Auto Delete off.

Auto Delete: when enabled, the original file is removed from the source folder after every rule and action for that file has finished.

Note

The files .ds_store and Thumbs.db are always ignored and are never ingested.

Note

Auto Ingest only reacts to files that appear while the MediaHub service is running. Files copied into a watchfolder while the service is stopped are not picked up when it starts again.

Add New Source

To define a source:

  1. Go to MediaHub → Auto Ingest.
  2. Click Add new source.

    1. There will be a permanent button on the top right.
    2. If you already have sources configured, you can turn on/off the toggles under them.

    add source to ingest

  3. Under Path - enter the path to the source folder from which files will be uploaded.
    This can be a local path (e.g. C:\My\Ingest\Folder) or a network path (e.g. \\127.0.0.1\My\Shared\Folder). The path is shown as the source's title in the list.

    Note

    The folder must be reachable by the account the MediaHub service runs under - a network path mapped only for your own Windows login will not work. If the folder does not exist or cannot be opened when the service starts, the source is skipped and a warning is written to the log: Folder '…' does not exists or accessible.

    Success

    By completing steps 1–3 and filling in a destination Folder in the Action (step 11), you will have a fully functional Auto Ingest watchfolder. Rules and conversion are optional.

    Tip

    Rules and Actions are listed in the panels on the left. Click in a panel header to add one, and next to a name to delete it. The Rules and Actions columns only appear once there is more than one of them. A red dot next to a rule or action - and a Missing info marker on the source - means a required value (such as the Action Folder) is still empty.

    add source to ingest

    Adding upload rules

    By following these steps you will create a rule to filter which files are ingested:

  4. Click next to Rules. The new rule is added to the list and opened for editing.

  5. Under Rule name give the rule a descriptive name - it is shown in the Rules list and in the configuration header. Rule names must be unique within the source.
  6. Choose a file type from the Media type dropdown: Any media, Audio, Video or Image.
  7. Under Whitelist and Blacklist enter the mime types that are allowed (whitelist) or forbidden (blacklist). These are mime types, not file extensions, and they accept wildcards - for example image/png, video/*, audio/*. Type a value and press Enter to add it. Leave both empty to accept everything the Media type allows.
  8. Under Matches you can enter a regex (regular expression) to filter files by name. Leave empty to match all files.

    Note

    The expression is matched case-insensitively against the file name only - never against the sub-folder path the file was found in. It is also an unanchored match, so the expression only has to appear somewhere in the name: mp4 matches mp4_notes.txt as well as clip.mp4. Anchor the expression when you mean the whole name, for example ^promo_.*\.mov$.

    Warning

    If the expression is not valid, the whole rule is skipped silently - no files are ingested through it and the only sign is a Failed to process rule entry in the log. Check the log after editing a Matches expression.

    Every rule on a source is evaluated for every file that appears, and a file that passes more than one rule is processed by all of them. Within a rule the order of checks is: Matches → Media type → Whitelist → Blacklist.

    Adding upload actions

    Following steps 9–15 will allow you to define what happens to each file that passes the selected rule:

  9. Click next to Actions. The new action is added to the list under the current rule and opened for editing.

  10. Under Action name give the action a descriptive name. Action names must be unique within the rule.

  11. Folder: enter the destination folder in MediaHub where the file will be stored.
    You can click to browse MediaHub storage and select the desired folder.

    The file is stored at Folder + the path of the file relative to the source folder, and any missing folders are created. A file dropped at <source>\Sub\a.png with Folder /Ingest is stored as /Ingest/Sub/a.png. Sub-folders inside the watchfolder are watched and are re-created under the destination folder; there is no option to flatten them.

    Leading, trailing and duplicated forward slashes are ignored, so /Ingest, Ingest and Ingest/ all mean the same folder, and folder names are matched case-insensitively against the folders that already exist. Backslashes are not folder separators. If Folder is left empty the action writes to the MediaHub root, but the source is flagged with Missing info until you fill it in.

  12. Filename: enter a new name for the uploaded file. Leave empty to keep the original filename.
    You can build a dynamic name from the variables below. Write a variable as {Name}, optionally with a format after a colon - {Name:format}.

    Variable Value Format option
    {Folder} The destination folder of this action -
    {Filename} The original file name without its extension -
    {Extension} The original extension, including the dot -
    {Date} Ingest date, YYYY-MM-DD by default Any moment.js date format, e.g. {Date:YYYYMMDD}
    {Time} Ingest time Any moment.js time format, e.g. {Time:HH-mm-ss}
    {DateTime} Ingest date and time Any moment.js format
    {Year} Year, 4 digits by default Number of digits, e.g. {Year:2} → 25
    {Month} Month, 2 digits by default Number of digits
    {Day} Day of month, 2 digits by default Number of digits
    {Hour} Hour, 2 digits by default Number of digits
    {Min} Minutes, 2 digits by default Number of digits
    {Sec} Seconds Number of digits

    Anything that is not one of these variables resolves to an empty string. If the finished name has no extension, the extension of the source file is appended automatically.

    Note

    Without an explicit format, {Sec} and the seconds part of {Time} and {DateTime} render fractions of a second, not whole seconds. When you need whole seconds in the name, write the format out - {Time:HH-mm-ss}, {DateTime:YYYY-MM-DD HH-mm-ss}, or {Time:ss} in place of {Sec}. A digit count on {Sec} does not help; it only changes how many fractional digits are produced.

    Warning

    Ingest always overwrites. If an asset with the same name already exists in the destination folder, the existing asset is moved to the Trash and a completely new asset is created in its place - with a new asset ID, so anything that referenced the old asset by ID no longer resolves. A Filename with no variables in it therefore replaces the previously ingested file every time, and each replacement consumes Trash space. Include {Filename} or a date/time variable when you want every ingested file to be kept.

    Note

    {Folder} expands to a path and inserts / characters into the asset name. Use it only when you know what the result will be.

  13. Command: choose how the file should be handled:

    • Copy - upload the file as-is, without any changes.
    • Convert - transcode the file during ingestion. Select Convert and click the icon to open the Command Editor. The editor lets you configure all conversion options visually - no manual command writing required. The resulting command is shown at the bottom of the dialog and applied automatically when you click OK. Selecting Convert fills the field with a default command to start from. Available options in the Command Editor:
    • Video Codec - the encoding format for the output video:

      Codec Description
      Copy video stream No re-encoding. Fastest - preserves original quality.
      H.264 Universal format, recommended for general use.
      H.265 (HEVC) More efficient than H.264. Smaller files at equal quality.
      Apple ProRes High-quality editing format.
      Avid DNxHD High-quality format for Avid-based environments.
      Bink Real-time playback format for broadcast graphics and Unreal Engine. Output: .bk2
    • Container - the file format wrapper (MP4, MOV, MKV). Not applicable for Copy or Bink.

    • Video Bitrate - target bitrate in Mbps. Enable Constant Bitrate for a fixed, predictable file size. H.264 and H.265 offer Average Bitrate and Minimum Bitrate sliders; Avid DNxHD offers a fixed Bitrate list instead.
    • Resolution - optionally downscale the output: Keep original resolution, 1920 x 1080, 1280 x 720, 960 x 540, 640 x 360, or a target width with the aspect ratio kept (1920, 1280, 960, 640).
    • Trim - extract a specific portion of the video by ticking Enable and setting Start and End timecodes.
    • Quality Preset - the encoder's speed/quality trade-off. For H.264 and H.265 the presets run from ultrafast to veryslow; for Apple ProRes they are the ProRes profiles (Proxy, 422 LT, 422, 422 HQ, 4444); for Avid DNxHD they are the DNxHD/DNxHR profiles (444, HQX, HQ, SQ, LB).
    • Audio - copy the source audio, remove it, or re-encode to AAC or PCM.
    • Audio Bitrate - target bitrate for the re-encoded audio.
    • Bink - when the Bink codec is selected, the editor shows the Bink-specific controls instead of the bitrate and resolution sections: Starting Frame, Ending Frame, Frame Rate, Graphics Processing, Smoothing, Contrast Increase, Clamp Black Level, Brightness Level, Denoising Filter, Gamma Correction Level, Scale to Width / Scale to Height and Left / Top / Right / Bottom Cropping.

    Note

    To convert files to Bink (.bk2), the Bink converter tool must be present at <MediaHub install folder>\Bink\bink.exe. If it is missing, MediaHub logs Bink Converter is missing at startup and Bink conversions fail. Any command that begins with bink forces the output extension to .bk2 regardless of the Filename you set. Contact your system administrator if this option is unavailable.

    Tip

    Advanced users can type a conversion command directly into the Command field without opening the editor.

  14. Expiry: sets how many days ingested files remain in MediaHub before they are moved to the Trash.

    The Expiry tick box does not currently save

    Only the number is stored with the action. Ticking the box enables the number field but saves nothing on its own, so ticking it and leaving the value at the default does not set an expiry. Change the number to a value of your own to set one.

    Unticking the box does not clear an expiry that was already saved. Assets will keep expiring on the stored value. To stop that, clear the number itself.


    This will not delete the original source file. Leave disabled if you prefer to manage deletion manually.

    Note

    An expiry of N days is stored as N + 1 days from the moment of ingest, and expired assets are collected by the daily maintenance run, which only looks at assets whose expiry has already passed the end of the previous day. In practice an asset set to expire in 30 days is removed on about day 32. Expired assets are moved to the Trash, not deleted outright, so they can still be restored until the Trash is emptied.

  15. Tags: assign tags to the ingested assets automatically. Tags can be used for search and organisation inside MediaHub.

    Note

    The tags on the action replace the asset's tags; they are not merged with anything already there. Tags and expiry are written in a second step, just after the asset has been created.

    Note

    Actions work on a template basis: the Folder, Filename and Command values are applied to each file that passes the rule.

Tip

Click Save Ingest Settings in the top right when you are finished. Auto Ingest settings are applied immediately - the MediaHub service does not need to be restarted.