如何在 ASP.NET 中处理视频?

发布于 2024-09-28 09:45:22 字数 195 浏览 5 评论 0原文

这是我第一次使用 ASP.NET 制作视频库, 我相信网上有很多关于此的文章,但我想看到一些建议和不同的观点:

  1. 使用什么工具?
  2. 如何禁止用户下载视频?
  3. vimeo,dimecasts.net 选择有什么区别,其他选择呢?
  4. 流媒体?
  5. 任何有价值的信息将不胜感激。

this is my first time doing a gallery of videos using ASP.NET,
I believe there are many articles on the net regarding this, but I would like to see some recommendation and different point of view :

  1. what are the tools used?
  2. how to not allow user to download a video?
  3. what the difference between vimeo,dimecasts.net choice , what about other choices?
  4. Streaming?
  5. any valuable information will be appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

成熟的代价 2024-10-05 09:45:22

亲爱的山姆,你问了太多不同的问题。我将尝试对我所知道的做出一些回答。

首先,您需要选择显示视频的方式。一种流行的方式是闪光灯。 YouTube 使用 Flash。

  • 因此,您可以使用的工具将视频转换 flash 流文件。 adobe 中已经准备好了一个。如果您需要的话,其他工具还包括视频编辑。使用 asp.net 或其他程序(例如 vegas video)进行视频编辑。

  • 如何不允许用户下载视频?,您从 ashx 处理程序提供该视频,该处理程序只是从受保护的目录读取视频文件并将其发送到视频播放器。将要播放的文件的 ID 您在页面标题上发送 ID,或者从内部重定向到该页面以尽可能隐藏它,但专家用户可以找到它并下载它在最后。您如何避免尝试下载所有内容的机器人扫描您的页面。这一切并不那么容易,但也不是那么难。这个任务是一个完整的问题和一个单独的教程,正如我所说,我认为这几乎是不可能避免的,最终用户如果赢得了你的视频,就无法获得它。

保护视频的其他方法是扰乱流媒体标头,然后在 Flash 播放器上再次将其解码回来。这样即使他们得到了它们,他们也不能在任何地方玩。

您需要了解 Flash 编程,并可能使用 Javascript 与视频 Flash 和您的页面进行通信,并且根据您的需要修改播放器。所有这一切都不是一件容易的事,但是有许多资源和教程可以帮助您。

因此,请从 Google 上的Flash 视频开始。

Dear sam you ask too many different question. I will try to give some answer to what I know.

First you need to select the way you go to show your video. One popular way is the flash. YouTube use flash.

  • So the tools that you can use is the one that convert the video to flash streaming file. There is all ready one from adobe. Other tools is video editing if this is what you asking for. Video editing with asp.net or with other programs like vegas video.

  • How to not allow a user to download a video ?, you serve this video from an ashx handler, this handler just read the video file from a protected directory and send it to the video player. The id of the file that is going to play you send the id on the page header, or from inside redirect to that page to hide it as much as you can, but expert users can find it and download it at the end. How ever you can avoid the scanning of your page by a robot that try to download them all. All this is not that easy but not that hard also. This task is a full question and a tutorial alone, and as I say I think that is near impossible to avoid at the end the user not get your video if he won it to.

Other way to protect your video is to scramble the streaming header, and then on your flash player decode it again back. That way even if they get them ,they can not play it anywhere.

You need to know to programming also flash and probably make communication with the video flash and your pages using Javascript, and modify the player to your needs. All of that its not an easy task, but there are many resources and tutorial that can help you.

So start with the flash video on google.

万劫不复 2024-10-05 09:45:22

从标签“asp.net”我假设您处理的是 Microsoft 技术。我们的团队过去有围绕销售视频内容的估算项目,所以你的问题很接近。

基本思想是使用 Microsoft Windows Media Services 9 系列(有关简要概述,请参见
http://www.microsoft.com/windows/windowsmedia/howto/articles /webserver.aspx )。所以这个答案#1。
最难的问题是#2。因为你可以减少下载的可能性,但要观看视频,用户需要在客户端有一些帧。这就是为什么内容总是可以被拦截的原因。以下列表是我如何降低风险的建议:

  • 使用“无需下载的流媒体”(有关详细信息,请参阅上面的文章)或广播
  • 使用数字版权管理管理流媒体内容
  • 对观看视频的用户进行身份验证并为他们提供唯一的 URL,以禁止使用特殊工具下载拦截结果。

问题#3 与格式之战有关。 Vimeo、youtube 和许多其他公司使用 FLV 格式提供视频。理论上,vimeo 的客户端播放器可以毫无问题地播放来自 youtube 的视频,反之亦然。它的好处是跨平台 - Linux、Mac、Windows 用户都可以识别这种格式并播放。另一方面,WMV(Windows 媒体)的使用可能会受到限制(实际上我从未见过任何问题)。但由于使用嵌入到内容中的数字版权管理标签,因此使用 Microsoft 格式更加安全。

关于#4、#5 的答案可以在上面的文章中找到。

From tag "asp.net" I'm assuming that you deal with Microsoft technologies. Our team in the past had estimation project around selling video content, so you problem is close to it.

The base idea is usage of Microsoft Windows Media Services 9 Series( for brief overview look at
http://www.microsoft.com/windows/windowsmedia/howto/articles/webserver.aspx ). So this answer #1.
The most difficult question is #2. Because you can just reduce possibility to download, but to watch video user needs have some frames at client side. That is why content always can be intercepted. Following list is my recommendations how to reduce risks:

  • Use "Stream without downloading" (see article above for details) or broadcast
  • Manage stream content with Digital Rights Management
  • Use authentication of users that watch video and provide unique URL for them to disallow special tool of downloading to intercept results.

Question #3 relates to format war. Vimeo, youtube and many others use FLV format to provide video. In theory client-side player of vimeo can play without problem video from youtube and vice verse. The benefit of it is crossplatforming - Linux, Mac, Windows users can recognize this format and play it. On other hand usage of WMV (windows media) potentially can be restricted (in real I have never seen any problem). But usage of Microsoft formats are more secured since usage of Digital Rights Management tags embedded to content.

Answer on #4, #5 you can find in article above.

风轻花落早 2024-10-05 09:45:22

我会选择使用 Silverlight。它有数字版权管理,并且微软有一些Expression BlendEncoder 等非常适合您的工具。

对于流传输部分,您可以使用 IIS 平滑流传输

I would opt for using Silverlight. It has Digital Rights Management and Microsoft has some great tools for you like Expression Blend and Encoder.

For the streaming part you could use IIS smooth streaming.

层林尽染 2024-10-05 09:45:22

在此处输入图像描述

嗨。我上传了一张图片,以便更好地向您展示解决方案。现在我想告诉您此图片的含义:

  • 上传中心:您必须创建上传中心才能上传视频。因此,您需要创建一个带有上传控件的用户界面。上传后,您应该将视频格式更改为Flash视频文件(最佳文件类型是FLV)。上传文件的最后一步必须保存在特定目录(我称之为@VidDir),并且您必须为视频获取特定的id(我称之为@VidId)。因此文件保存在目录/文件ID

  • 通用处理程序: 此通用处理程序可以打开视频(使用 Flash 视频播放器)并创建 标签(或其他任何内容)来显示视频。注意:要查看视频,此通用处理程序必须具有查询字符串(我称之为 @VidId)。

  • Flash视频播放器:您必须创建一个Flash视频播放器或使用其他现成的版本;但最好还是创造你自己。 (这真的很容易,相信我)。该视频播放器必须配置为显示来自网页查询字符串(我称之为@VidId)的视频。

最后必须有一个网页来使用通用处理程序。

此处演示


答案

1.使用什么工具?

Adobe flash:创建视频播放器。使用时可以使用flashFLV媒体播放工具进行视频预览。之后,您可以使用按钮movieclips图形来自定义您的用户界面。
最好使用其他Flash视频播放器(例如->Flow播放器)。

通用处理程序通用处理程序是选取元素的最佳方式。您可以在 ASP.NET 页面 中预览通用处理程序。

2.如何禁止用户下载视频?

您可以将视频上传到您的App_Data文件夹中。要访问此文件夹,您必须拥有服务器权限,但通用处理程序可以访问那里的视频。

3.vimeo、dimecasts.net选择有什么区别,其他选择呢?

我不知道。您可以看看Aparat波斯语视频共享中心。

4.流媒体?
您可以查看Adobe 媒体服务器系列

enter image description here

Hi. I have uploaded a picture to show you the solution better. Now I want to tell you what does this image mean:

  • Upload Center: You must create upload center to upload your videos. So you need to create a user interface with upload controls. after upload, you should change video format to flash video files (Best file type is FLV). And at last step of upload files must save at specific directory ( I call it @VidDir) and you must get video a specific id (I call it @VidId). So file save at Directory/FileID

  • Generic Handler: This generic handler can open video (with flash video player) and create <embed> tag (or anything else) to show videos. note: to view video this generic handler must have query string (I call it @VidId).

  • Flash Video Player: You must create a flash video player or use another ready versions; But its better to create your self. (Its realy easy, trust me). This video player must configure to show videos from web page query string (that I call it @VidId).

At last there must be a web page to use generic handler.

Demo here.


ANSWERS:

1.what are the tools used?

Adobe flash: To create a video player. use can use flash FLV media playback tool for video preview. After that you can use buttons, movieclips, and graphics for customizing your user interface.
Its better to use other Flash video players (e.g->Flow player).

Generic handlers: Generic handlers are best way to picking elements. You can preview generic handlers in your ASP.NET page.

2.how to not allow user to download a video?

You can upload videos to your App_Data folder. To access this folder you must have server permission but generic handlers can access videos there.

3.what the difference between vimeo,dimecasts.net choice , what about other choices?

I dont know. You can take a look at Aparat persian video sharing center.

4.Streaming?
You can take a look at Adobe media server family.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文