0
我一直在使用來自微軟網站的樣本進行從wav到mp4的轉換,下面給出了樣本。如何將容器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文件上傳在天藍色的容器中,所以我想使用存儲容器進行編碼工作。
是否有任何使用asp.net .NET MVC代碼檢索容器並將其轉換爲兼容格式並傳遞並創建編碼工作的可能性?
我需要看看創建雲服務並實現這種機制嗎?