2014-05-17 2 views
0

나는 wav에서 mp4 로의 변환을 위해 Microsoft 사이트의 샘플을 사용하고 있습니다. 아래 샘플을 참조하십시오.mp4로 변환하기 위해 컨테이너 wav 파일을 인코더에 업로드하는 방법은 무엇입니까?

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 코드를 사용하여 컨테이너를 검색하고 호환 가능한 형식으로 변환하여 인코딩 작업을 생성하고 생성 할 수 있습니까?

클라우드 서비스를 만들고이 메커니즘을 구현해야합니까?

답변