Flex 即时转换视频?

发布于 2024-10-22 00:07:26 字数 121 浏览 4 评论 0原文

我向谷歌询问了这个问题,但没有找到任何有用的东西。 有没有办法在flex中创建web应用程序,将视频上传到服务器后将视频转换为flv?这可以用flex来完成吗?如果可以,我还需要在服务器上安装ffmpeg吗? Tnx 进行回复。

I ask google about this,but didn't find anything usefull.
Is there a way to creat web app in flex that will convert video to flv,after that video is uploaded to the server?Can this be done with flex,if can,do I still need to install ffmpeg on server?
Tnx for response.

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

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

发布评论

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

评论(2

就此别过 2024-10-29 00:07:26

无论如何你应该转换服务器端。这将允许您验证上传。

You should convert server side anyway. This will allow you to validate the upload.

爱已欠费 2024-10-29 00:07:26

我同意另一篇文章,您可能应该执行转换服务器端。由于您还没有很好地掌握容器格式和视频格式之间的区别,因此创建自定义客户端代码可能会变得困难,因为您必须更接近金属。

鉴于此,有些人在 Flash 客户端中在即时客户端将某些视频格式转换为 FLV。 MKVLoader 是一个非常漂亮的项目,他们使用现在可用的新的appendBytes(bytes)方法从 NetStream 对象,用于在客户端将 MKV 转换为 FLV。这是一个非常酷的技巧,但是一旦您想支持另一种格式,您就会遇到问题。

ffmpeg 支持如此多的格式,不使用它就太傻了。既然您提到视频无论如何都会到达您的服务器,您不妨在存储之前在服务器上对其进行转换。

I agree with the other post that you probably should perform the conversion server side. Since you don't have a great grasp of the difference between container formats and video formats yet, creating custom client side code might get difficult since you're going to have to get a little closer to the metal.

Given that, there are some people who are doing conversion on the fly client side for certain video formats to FLV within the flash client. MKVLoader is a pretty nifty project where they use the new appendBytes(bytes) method that is now available as of Flash 10.1 on the NetStream object to convert MKV to FLV in the client. This is a really cool trick, but you'll run into problems as soon as you want to support another format.

ffmpeg supports so many formats, it would be silly not to use it. Since you mention that the video will get to your server anyway, you might as well convert it on the server before storing it.

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