简体   繁体   English

Azure 媒体服务 (v3) blob 存储、资产和定位器备份

[英]Azure Media Services (v3) blob storage, assets, and locators backup

I'm trying to figure out how to backup videos produced by Azure Media Services.我想弄清楚如何备份 Azure 媒体服务制作的视频。

Where are the assets and streaming locators stored, how to backup them or recreate them for existing binary files stored in the Azure Media Service's blob storage?资产和流定位器存储在哪里,如何为存储在 Azure 媒体服务 blob 存储中的现有二进制文件备份或重新创建它们?

Proposed solution:建议的解决方案:

I've come up with a solution, once the video is processed by transformation job, the app will create a copy of the container to separate backup blob storage.我想出了一个解决方案,一旦视频由转换作业处理,应用程序将创建容器的副本以分离备份 blob 存储。 Since, from my understanding, the data produced by transformation jobs are immutable, I don't have to manage another synchronization.由于根据我的理解,转换作业产生的数据是不可变的,因此我不必管理另一个同步。

if (job.State == JobState.Finished)
{
  StreamingLocator locator = await AzureMediaServicesService.CreateStreamingLocatorAsync(client, azureMediaServicesConfig, outputAssetName, locatorName);
  var videoUrls = await AzureMediaServicesService.GetVideoUrlsAsync(client, azureMediaServicesConfig, locator.Name);
  // backup blobs in creted container here
}

Are only the binary data stored in blob storage sufficient for restoring the videos successfully?只有存储在 blob 存储中的二进制数据足以成功恢复视频吗? After restore, will the already existing streaming and download links work properly?恢复后,现有的流媒体和下载链接是否可以正常工作?

Since, when I'm creating locators, I'm passing the asset name as well, I reckon I should backup asset's data too.因为,当我创建定位器时,我也在传递资产名称,我认为我也应该备份资产的数据。 Can/should I somehow backup assets and locators?我可以/应该以某种方式备份资产和定位器吗? Where are they stored?它们存放在哪里? Is there any better way to backup videos?有没有更好的方法来备份视频?

I was looking for the answers here: https://docs.microsoft.com/en-us/azure/media-services/latest/streaming-locators-concept https://docs.microsoft.com/en-us/azure/media-services/latest/stream-files-tutorial-with-api#get-a-streaming-locator https://docs.microsoft.com/en-us/azure/media-services/latest/limits-quotas-constraints我在这里寻找答案: https : //docs.microsoft.com/en-us/azure/media-services/latest/streaming-locators-concept https://docs.microsoft.com/en-us/azure /media-services/latest/stream-files-tutorial-with-api#get-a-streaming-locator https://docs.microsoft.com/en-us/azure/media-services/latest/limits-quotas-约束

Part of what you're asking is 'What is an asset in Media Services?'.您问的部分问题是“媒体服务中的资产是什么?”。 The Storage container that is created as part of the encoding process is definitely a good portion of what you need to backup.作为编码过程的一部分创建的存储容器绝对是您需要备份的一个很好的部分。 Technically that is all you need to recreate an asset from the backup Storage account.从技术上讲,这就是从备份存储帐户重新创建资产所需的全部内容。 Well, if you don't mind recreating the other aspects of the asset.好吧,如果您不介意重新创建资产的其他方面。

An asset is/can be several things:资产是/可以是几件事:

  • The Storage container and the contents of that container. Storage 容器和该容器的内容。 These would include the MP4 video files, the manifests (.ism and .ismc), and metadata XML files.这些将包括 MP4 视频文件、清单(.ism 和 .ismc)和元数据 XML 文件。
  • The published locator or URL where clients make GET requests to the streaming endpoint.客户端向流端点发出 GET 请求的已发布定位器或 URL。
  • Metadata.元数据。 This includes things like the asset name, creation date, description, etc.这包括资产名称、创建日期、描述等内容。

If you keep track of the Storage container in your backup and what metadata is associated with it as well as have a way of updating your site with a new streaming locator then all you really need is the Storage container for recreating the asset.如果您跟踪备份中的 Storage 容器以及与之关联的元数据,并且有办法使用新的流媒体定位器更新您的站点,那么您真正需要的只是用于重新创建资产的 Storage 容器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM