使用 Silverlight 4 在服务器上录制网络摄像头视频和音频

发布于 2024-10-12 14:07:15 字数 827 浏览 7 评论 0原文

我需要一个 SilverLight 应用程序,它可以捕获网络摄像头视频和音频,并将其作为视频保存在服务器上,稍后可以通过某些视频播放器查看。我发现了一些使用 SilverLight 录制网络摄像头的好例子,例如 link1 和mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/12/10/silverlight-4-more-on-capturing-video-from-webcams.aspx 作为 link2,实际上将视频本地保存在独立存储上。 Link1 保存视频和音频,而 link2 仅保存视频并将其转换为奇怪的 .avi 格式(只能使用 QuickTime 播放器播放)。我还猜想将流传输到服务器并在那里保存视频不会有太大问题。

出现的主要问题是视频的大小。它简直大得令人无法接受(否则我会使用 link1 解决方案)。我尝试使用命令行 FFMpeg 将其转换为某种已知格式。我根本无法将视频从 link1 转换,但我成功地将视频从 link2 转换为具有良好且可接受的文件大小的 .flv 格式。但有一个问题,link2 不包含音频,如果没有音频我就无法使用它。

所以,我想问题很简单,将视频从本地网络摄像头录制到服务器并稍后播放,但视频需要具有可接受的大小和可能众所周知的格式。任何额外的视频转换工具(例如 FFMpeg 或 Expression Encoder)都可用,但我需要从代码(命令行)访问它们,因此它们需要具有命令行 API。

如有任何帮助,我们将不胜感激,

谢谢

I need a SilverLight application that can capture the webcam video and audio and save it on the server as video which can later be viewed by some video player. I have found some good examples of recording webcam using SilverLight like link1 and mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/12/10/silverlight-4-more-on-capturing-video-from-webcams.aspx as link2 that actually saves the video locally on isolated storage. Link1 saves video and audio while link2 saves only video and it converts it to weird .avi format (it can be played using only QuickTime player). I also guess it would not be much of a problem to take the stream to the server and save the video there.

The major problem that occurs is the size of the video. It is simply unacceptably big (otherwise I would use link1 solution). I tried converting it to some know format using command line FFMpeg. I was not able to convert the video from link1 at all, but I successfully managed to convert video from link2 to .flv format having nice and acceptable file size. One problem though, link2 doesn't include audio and I can't use it without audio.

So, I guess the problem is simple, record the video from local webcam to server and play it later, but the video needs to have acceptable size and possibly well known format. Any extra tools for video conversion like FFMpeg or Expression Encoder are available, but I would need to access them from code (command line) so they need to have command line API.

Any help is appreciated

Thank you

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

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

发布评论

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

评论(2

清风无影 2024-10-19 14:07:15

我最终使用了 Red5 Server,从而将视频以 .flv 格式保存在服务器上。我使用免费的 http://www.red5-recorder.com/ 录像机,但做了一些自定义为了项目的目的进行调整。我必须指出,视频质量不太好。

I ended up using Red5 Server, thus saving the videos on server in .flv format. I used free http://www.red5-recorder.com/ video recorder, but did some custom tweaks for purposes of the project. I must note that the video quality is not so good.

暮色兮凉城 2024-10-19 14:07:15

我更喜欢使用流媒体录像机来录制网络摄像头视频,它只能录制屏幕视频和录制的视频的质量与您在网页上看到的原始质量一样。视频以 WMV 格式保存,我认为很容易找到视频转换器来帮助您将其转换为其他所需的视频格式。

I prefer to use Streaming Video Recorder to record webcame video, it can just record screen video and the recorded video's quality is as original one which you see on webpage.The videos are save in WMV format and I think it's easy to find a video converter out there to help you convert it to other deisred video format.

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