Bulk import your AMS assets

Practical steps for bulk importing video assets using MediaKind’s migration tool.

Importing a large video library from Azure Media Services one at a time can be impractical and time-consuming. Below is a walk-through of how to leverage MediaKind’s bulk-ingest tool for a smooth and quick bulk migration of video assets:

  • from your AMS storage account to MK.IO
  • OR from one MK.IO subscription to another MK.IO subscription.

You can retrieve the script for the MK.IO bulk-ingest tool in this public GitHub repository: mediakind-video/ams-migration-tool.

Import your assets

  1. Navigate to the Media Services section of your AMS portal.
  2. Enter the MK.IO portal under the subscription instance to which you want to import your AMS assets.
  3. Build the program using the bulk-ingest script using the binary from our public GitHub repository.
  4. In the command-line terminal, type in mkio-ams-migration.
  5. Import is available from AMS to MK.IO or from MK.IO subscription to MK.IO subscription in the same account.
  6. Populate the below parameters and their values:
OptionValue
--azure-subscription*Your Azure AMS account > Overview > Essentials > Subscription ID
--azure-resource-groupYour Azure AMS account > Overview > Essentials > Resource Group
--azure-account-nameYour Azure account ID
--mediakind-import-subscriptionYour subscription name, found under Dashboard > Subscription Summary
--mediakind-export-subscriptionYour subscription name, found under Dashboard > Subscription Summary
--exportPulls data from Azure Media Services (or MK.IO), creating a JSON file as output.
--importReads the JSON file and inserts data into MK.IO.
--validateValidates imported assets.
--assetsBoolean: option defaults to false, but will set to true if flags are added.
--asset-filtersBoolean: option defaults to false, but will set to true if flags are added.
--streaming-locatorsBoolean: option defaults to false, but will set to true if flags are added.
--content-key-policiesBoolean: option defaults to false, but will set to true if flags are added.
--streaming-endpointsBoolean: option defaults to false, but will set to true if flags are added.
--streaming-policiesBoolean: option defaults to false, but will set to true if flags are added.
--migration-file valueSpecify migration file to use for import and/or export.
--overwriteOverwrite resources that already exist.
--debugEnable debug logging while running the tool.
--workersNumber of workers to process assetFilters in parallel.
--created-beforeFilters exports to resources created before the given date.
--created-afterFilters exports to resources created after the given date.

To import from AMS to MK.IO the command will look like the example below:

./mkio-ams-migration --azure-subscription 29628ffc-5d07-4af3-88a8-3f710582a73b --azure-resource-group ams-test --azure-account-name amstest --mediakind-import-subscription migration --export --import --assets --streaming-locators --asset-filters --content-key-policies --streaming-endpoints

To import from MK.IO subscription to MK.IO subscription in the same MK.IO account, the command will look like the example below:

./mkio-ams-migration --mediakind-export-subscription mkioexportsubscription --mediakind-import-subscription mkioimportmigration --export --import --assets --streaming-locators --asset-filters --content-key-policies --streaming-endpoints

  1. Run the migration using the information gathered in Setup.

You can view the migration progress in the command terminal as the steps complete.

👉

Need some help with your bulk migration from AMS to MK.IO? Take a look at this tutorial in our support portal or visit the MediaKind support center.