[英]How can i streaming and have the video available to download using Azure media services
[英]Can I upload already-encoded content to azure media services, instead of uploading a video and then encoding it? How?
我想在本地編碼然后上傳,避免在編碼上花錢。 這是允許的嗎? 我沒有找到任何關於它的文檔。
當我只是將文件上傳到存儲時,媒體服務帳戶表示沒有 ISM 文件無法播放。 我必須對我上傳的文件進行編碼(是否重新編碼?它是一個 mp4)——我想避免這種情況。
是的,絕對允許並鼓勵客戶這樣做。 特別是那些具有我們可能不支持的自定義編碼要求的。
您可以上傳您創建的 .ism 文件以及您的編碼文件。 這是一個簡單的 SMIL 2.0 格式 XML 文件,指向所使用的源文件。
搜索文檔有點難,但這里有一節概述了工作流程 - https://learn.microsoft.com/en-us/azure/media-services/latest/encode-dynamic-packaging-concept#按需流媒體工作流程
還有一個 .NET 示例顯示如何在此處執行此操作: https://github.com/Azure-Samples/media-services-v3-do.net/tree/main/Streaming/StreamExistingMp4
您可以在 111 處看到顯示如何生成 .ism 文件的代碼行 -
// Generate the Server manifest for streaming .ism file.
// This file is a simple SMIL 2.0 file format schema that includes references to the uploaded MP4 files in the XML.
var manifestsList = await AssetUtils.CreateServerManifestsAsync(client, config.ResourceGroup, config.AccountName, inputAsset, locator);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.