简体   繁体   English

在 Azure 媒体服务 V3 中将资产下载/发布为单个视频文件

[英]Download/Publish an Asset as a single video file in Azure Media Services V3

We're using Azure Media Services v3 for streaming and broadcasting videos and storing them for VoD.我们正在使用 Azure 媒体服务 v3 流式传输和广播视频并将其存储为 VoD。
The assets that we get in the end are entirely playable, however, we'd like to add a feature of downloading the Asset as a single file (mp4 preferably).我们最终获得的资产是完全可播放的,但是,我们想添加一个将资产下载为单个文件(最好是 mp4)的功能。

The main problem is that the Asset that Azure created, is consisted of a bunch of folders (for each quality):主要问题是 Azure 创建的资产由一堆文件夹(针对每种质量)组成:

在此处输入图像描述

and each of those folders contains a huge amount of chunks:这些文件夹中的每一个都包含大量的块:

在此处输入图像描述

So, there's no single file to download.因此,没有单个文件可供下载。

Is there a way to download an asset as a single video file (or get a download link)?有没有办法将资产下载为单个视频文件(或获取下载链接)? If yes, any sample of that is welcome (as I couldn't find any after hours of googling).如果是的话,欢迎任何样本(因为我在谷歌搜索数小时后找不到任何样本)。

PS I saw the solution " How to: Deliver an asset by download " but that's about the older Azure Media Services V2, not V3. PS 我看到了解决方案“ 如何:通过下载交付资产”,但这是关于较旧的 Azure 媒体服务 V2,而不是 V3。
PPS The other documentation with AMS V3 doesn't help either, as it blindly downloads the chunks. PPS AMS V3 的其他文档也无济于事,因为它盲目地下载了块。

You are looking at the archive of a live event, which is always stored in fragmented Mp4 format.您正在查看实时事件的存档,该存档始终以分段的 Mp4 格式存储。

To get a downloadable standard MP4 from the archive you would have to create a Transform that either re encodes the content or use one of the Copy Codec preset examples to copy the source to an MP4 output quickly without re encoding.要从存档中获取可下载的标准 MP4,您必须创建一个转换来重新编码内容或使用复制编解码器预设示例之一将源快速复制到 MP4 output 而无需重新编码。 There are several copy codec examples in the Typescript/Node.js samples repo on GitHub. GitHub 上的 Typescript/Node.js 示例存储库中有几个复制编解码器示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM