Udostępnij za pośrednictwem


如何将一个媒体服务的点播视频迁移到另一个订阅

媒体服务是个很方便的管理点播、直播视频的服务,当用户的媒体服务账号已经管理众多资产,而当前订阅需要做变化,这时就需要迁移已经编码、发布过的资产到另一订阅。本文描述如何将媒体服务账号下的点播资产从一个订阅迁移到另外一个订阅。

         1. 点击如下连接安装Azure Media Services Explorer

https://aka.ms/amse

2. 配置媒体服务的源和目的账号,针对于Azure中国数据中心Endpoint设置请参考如下文档

https://blogs.msdn.com/b/cciccat/archive/2015/02/26/azure-china-media-service-restapi-endpoint.aspx

本文配置的两个账号如下:ambertest1为订阅1下媒体服务源账号,ambertest2为订阅2下的媒体服务目标账号。

3.选中需要迁移的资产后,点击Asset->选择 Copy/merge asset(s) to a new asset

4.选择迁移的目标媒体服务账号,在此处,已经创建了名为ambertest2的媒体服务账号

5.点击Copy Asset后,便开始同步两个账号下的资产,当成功后,会输出如下的信息:

  [1/5/2016 1:54:42 PM] Transfer 'Copy asset 'Azure Machine Learning Step3-H264_Adaptive_Bitrate_MP4_Set_1080p-Output' to account 'ambertest2'': started
 [1/5/2016 1:54:43 PM] Starting the asset copy process.
 [1/5/2016 1:54:51 PM] File '994900fa-1700-80c4-5e17-f1e5b36edf9d_metadata.xml' copied.
 [1/5/2016 1:54:53 PM] File '03-3 Signing up for Azure Machine Learning Step3_manifest.xml' copied.
 [1/5/2016 1:54:57 PM] File '03-3 Signing up for Azure Machine Learning Step3_H264_650kbps_AAC_und_ch2_128kbps.mp4' copied.
 [1/5/2016 1:55:13 PM] File '03-3 Signing up for Azure Machine Learning Step3_H264_6000kbps_AAC_und_ch2_128kbps.mp4' copied.
 [1/5/2016 1:55:53 PM] File '03-3 Signing up for Azure Machine Learning Step3_H264_4700kbps_AAC_und_ch2_128kbps.mp4' copied.
 [1/5/2016 1:55:58 PM] File '03-3 Signing up for Azure Machine Learning Step3_H264_400kbps_AAC_und_ch2_128kbps.mp4' copied.
 [1/5/2016 1:56:03 PM] File '03-3 Signing up for Azure Machine Learning Step3_H264_3400kbps_AAC_und_ch2_128kbps.mp4' copied.
 [1/5/2016 1:56:08 PM] File '03-3 Signing up for Azure Machine Learning Step3_H264_2250kbps_AAC_und_ch2_128kbps.mp4' copied.
 [1/5/2016 1:56:12 PM] File '03-3 Signing up for Azure Machine Learning Step3_H264_1500kbps_AAC_und_ch2_128kbps.mp4' copied.
 [1/5/2016 1:56:16 PM] File '03-3 Signing up for Azure Machine Learning Step3_H264_1000kbps_AAC_und_ch2_128kbps.mp4' copied.
 [1/5/2016 1:56:19 PM] File '03-3 Signing up for Azure Machine Learning Step3_AAC_und_ch2_56kbps.mp4' copied.
 [1/5/2016 1:56:23 PM] File '03-3 Signing up for Azure Machine Learning Step3_AAC_und_ch2_128kbps.mp4' copied.
 [1/5/2016 1:56:26 PM] File '03-3 Signing up for Azure Machine Learning Step3.ism' copied.
 [1/5/2016 1:56:28 PM] Asset copy completed. The new asset in 'ambertest2' has the Id :
 [1/5/2016 1:56:28 PM] nb:cid:UUID:bc4100fa-1700-80c4-788c-f1e5b370cf26
 [1/5/2016 1:56:28 PM] Transfer 'Copy asset 'Azure Machine Learning Step3-H264_Adaptive_Bitrate_MP4_Set_1080p-Output' to account 'ambertest2'' completed.

注意:Asset copy会将资产转码后的storage account中文件、manifest、metedata全部都同步到新的storage account,并且生成了新的Asset ID。

6.由于已经生成一个新的Asset ID,需要登陆Azure管理门户(或者使用代码的方式)重新发布资产。然后就可以在新的订阅中直接播放迁移过来的资产了。