从Azure Blob存储剪切视频 [英] Cut videos from Azure Blob Storage

查看:126
本文介绍了从Azure Blob存储剪切视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个托管在Azure中的Web应用程序;它的功能之一是能够从视频中切出一些片段(从较大的视频中生成5到10秒的2或3个小视频). 这些视频将保留在Azure Blob存储中.

I have a web app that is hosted in Azure; one of it's functionalities is to be able to make a few cuts from the video(generate 2 or 3 small videos of 5-10 seconds from a larger video). The videos are persisted in Azure Blob Storage.

您如何建议在Azure环境中完成此任务? 视频的实际剪辑将通过网络作业启动.我还担心定价(在Azure环境中),并考虑了高流量的可能性.

How do you suggest to accomplish this in the Azure environment? The actual cutting of the videos will be initiated by a web job. I'm also concerned about the pricing(within the Azure environment), I'm taking into account the possibility of high traffic.

任何反馈都值得赞赏. 谢谢.

Any feedback is appreciated. Thank you.

推荐答案

假定您具有通过普通I/O对文件进行操作的视频剪辑代码:您需要从blob下载视频文件,并通过代码进行处理(或您使用的任何库),然后将结果存储回Blob存储中.您不能直接使用普通的标准IO库引用blob.

Assuming you have video-cutting code that operates on files through normal I/O: You'd need to download the video file from blob, process it via code (or whatever library you've employed), and then store the result back in blob storage. You cannot reference a blob directly with normal standard IO libraries.

但是,如果视频存储在Azure文件存储中(这是Blob存储之上的SMB层,那么您 将能够直接操纵您的视频文件.

If, however, videos are stored in Azure File storage (which is an SMB layer on top of blob storage, then you will be able to directly manipulate your video files.

Web作业在App Service(类似于Web Apps)中运行,因此您可以访问一定数量的本地磁盘空间(取决于App Service层)以供使用.将视频文件临时存储在Web应用程序的磁盘空间中以进行编辑操作应该没有问题.

Web Jobs run within an App Service (just like Web Apps), so you have access to a certain amount of local disk space (depending on App Service tier) for use. You should have no problem temporarily storing a video file within your web app's disk space, for editing operations.

您询问了费用:同样,假设您正在谈论在Web Job(应用程序服务)中运行代码,则只需为所选的任何应用程序服务层付费.

You asked about cost: Again, assuming you're talking about running code within a Web Job (app service), you're just paying for whatever App Service tier you've chosen.

您实际上如何进行这些编辑操作完全取决于您自己(语言,库等).

How you actually do those edit operations is entirely up to you (language, library, etc).

这篇关于从Azure Blob存储剪切视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆