如何在asp.net中减少(减少)视频大小c# [英] How to reduce(decrease) video size in asp.net c#

查看:82
本文介绍了如何在asp.net中减少(减少)视频大小c#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的asp.net应用程序中,当我要上传任何大小的视频时需要减少(减少)视频的大小并保存减少视频文件夹,任何人都有示例代码请帮帮我。

谢谢提前

In my asp.net application when i'm going to upload any size of video need to decrease(reduce) the size of video and save decrease video on folder, any one have example code please help me.
Thanks advance

推荐答案

不要。

调整视频大小是一个耗时的过程 - 它像疯了一样使用处理器和RAM ,仍然需要很长时间。除非您有一台专用计算机(或多台计算机)可以将文件转换排队,否则会严重影响您的网络服务器以及它所服务的所有页面的交付,而不仅仅是您自己的网页。由于这是一个网站,多个用户同时上传是非常可行的,这将增加网络服务器的负担 - 托管服务(或适当的管理员)将有强烈的措辞来说明它!



如果您需要限制视频大小,请让客户端减少它 - 不要尝试在服务器上转码视频。
Don't.
Resizing video is a time consuming process - it uses processor and RAM like crazy, and still takes a significant amount of time. Unless you have a dedicated computer (or several) that you can queue the file conversions to, you are going to badly affect your webserver and the delivery of all the pages it serves, not just your own. Since this is a web site, it's very feasible that multiple users will upload simultaneously, and that will place an increasing load on the webserver - and the hosting service (or appropriate admin) will have strongly worded things to say about it!

If you need to restrict video size, get the client to reduce it - don't try to transcode video on the server.


这篇关于如何在asp.net中减少(减少)视频大小c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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