Skip to content

MediaHub Settings: Auto Ingest

Auto ingest is a feature that let you define sources in your machine that MediaHub will automatically upload media files that are add to them. You can also define some rules that define if a file will and will not be automatically uploaded to MediaHub.

General Settings

Maximum concurrent processes: Auto ingesting might be a heavy process (as well as a manual upload). You can manage the load that MediaHub put on the system by setting a maximum to the number of processes that are ingesting the assets into MediaHub at the same time.
leaving the maximum at 0 will set no restriction on the amount of concurrent processes

Source Settings

Interval: When adding a new source you can set this source with an interval. The interval is a set time that MediaHub will wait after detecting a new asset in the source folder until it will begin to ingest it.
The interval should be used in sources with heavy files, to prevent from MediaHub to ingest files that are still being written.

Add New Source

To define a source:

  1. Go to MediaHub → settings → auto Ingest.
  2. Click on add new source

    1. If you are adding your first source there will be a button in the middle of the screen and another, permanent, on the top right.
    2. If you already have sources for auto ingest you will find the button for new source at the top right.

    add source to ingest

  3. under path – enter the path to the source folder from which files will be uploaded.
    This path can be local path only.

    Success

    By doing steps 1 – 3 you will enable an automatically uploaded folder. Each file that will be dropped in the path folder will be uploaded to Media hub

    Tip

    You can delete rule and actions that you created for a source simply by clicking on the at the that appears next to their name.

    add source to ingest

    adding upload rules.

    In the following steps we will create rule to upload specific files by:

  4. Click on “add rule”

  5. Choose file type from the drop down, or choose “Any media” for various types
  6. Under whitelist and blacklist you can click on “add new” to choose file types that are allowed (whitelist) and file types that are forbidden (blacklist) to auto ingest.
  7. Under matches you can insert regex (regular expression for the search). Doing so will upload only files that match the regex.

    add rule to ingest

    adding upload actions

    Following steps 8 – 12 will allow you to add file manipulations whenever a file is automatically ingested:

  8. Click on add action.

  9. You can choose to copy the file as is or convert it by using ffmpeg commands in the text field that will appear.
    MediaHub do not have ffmpeg generator, but you can use an online one to create your conversion text.
  10. Fill in the folder name you want to put the file in MediaHub. You should always start folder text field with “/”.
    You can click on to browse MediaHub storage and select the desired folder.
  11. Filename: you can enter a new name for the uploaded files.
  12. Expiry: by enabling expiry you can set for how many days files will remain in MediaHub before being automatically deleted.
    this will not delete the original file, and you can leave it disabled if you prefer deleting files manually.

    Note

    Add action is working based on String Template. An action will be written like "take the file from the source, add it to {}, named {} , of type {} ". and the arguments you filled to folder, file name and Extension (under convert) will be place in place of the {} (and in this example - by that order).

    add action to ingest