0

我一直在使用来自微软网站的示例进行从 wav 到 mp4 的转换,示例如下所示。

IAsset singleWMVAsset = CreateAssetAndUploadSingleFile(AssetCreationOptions.None, _singleInputWavPath);

        // EncodeToH264 creates a job with one task
        // that converts a mezzanine file (in this case interview1.wmv)
        // into an MP4 file (in this case, "H264 Broadband 720p").
        IAsset MP4Asset = CreateEncodingJob(singleWMVAsset, "H264 Broadband 720p");

        // BuildSasUrlForMP4File creates a SAS Locator
        // and builds the SAS Url that can be used to 
        // progressively download the MP4 file.
        string fullSASURL = BuildSasUrlForMP4File(MP4Asset);

但是,这里 _singleInputWavPath 期望文件是本地路径。因此,当我们从本地获取路径时,它可以正常工作。但是,我的 wav 文件是在 azure 容器中上传的,所以我想让编码与存储的容器一起工作。

是否有可能使用 asp .net mvc 代码来检索容器并将其转换为某种兼容格式并传递和创建编码作业?

我是否需要考虑创建云服务并实施此机制?

4

1 回答 1

0

请查看我们在此处提供的代码示例:http: //code.msdn.microsoft.com/How-to-Copy-an-Existing-5ccaac3e/view/SourceCode。这使您可以将现有 Azure 存储帐户中的媒体资产处理到附加到您的媒体帐户的存储帐户中。

于 2014-05-17T19:05:29.287 回答