我可以在通过 RTMP 流式传输之前创建/修改 Flash 视频流吗?

发布于 2024-08-16 23:19:04 字数 275 浏览 10 评论 0原文

通常,flash 流是通过捕获网络摄像头视频/音频并使用 NetConnection 和其他对象流到 FMS、Red5、Wowza 等服务器来完成的。

我还没有找到任何有关如何创建自己的图像流和作为视频流的示例到服务器。

我知道可以将图像转换为字节并通过 SharedObjects 发送。然后在服务器上解码并在服务器上创建视频文件(例如使用ffmpeg),但如果可能的话,我宁愿在客户端实时执行。

是否可以用纯 Flash/Actionscript 来实现?

谢谢 :)

Usually, flash streaming is done by capturing webcam video/audio and streaming using NetConnection and other objects to servers like FMS,Red5,Wowza etc.

I haven't found any example on how to create your own stream of images and stream as a video to the server.

I know it would be possible to convert the image to bytes and send via SharedObjects. Then decode on server and create a video file on the server (e.g. using ffmpeg), but I would rather do it in realtime on the client side if possible.

Is it possible to do it in pure Flash/Actionscript?

Thank you :)

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

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

发布评论

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

评论(3

南风起 2024-08-23 23:19:04

我不认为存在任何用于从 AS3 流式传输视频的库。它非常消耗处理器资源,并且可能无法实现实时。
http://en.wikipedia.org/wiki/Flash_Video

您可以保存包含以下内容的 .flv使用此库未压缩位图数据,但这不会让您得到您想要的东西。
http://www.zeropointnine.com/blog/simpleflvwriteras -as3-class-to-create-flvs/

您可能需要一些服务器端代码来实现此目标 - 如果您的 Flash 应用程序仅发送组件照片,您也会获得更好的性能穿过电线(假设这是某种幻灯片)...

是否需要实时?

I don't believe any libraries exist for streaming video from AS3. It's very processor-intensive, and probably couldn't be real-time.
http://en.wikipedia.org/wiki/Flash_Video

You can save a .flv containing uncompressed bitmap data with this lib, but that's not going to get you what you want..
http://www.zeropointnine.com/blog/simpleflvwriteras-as3-class-to-create-flvs/

You're probably going to need some server-side code to get this goal accomplished - you'll get much better performance also if your flash app just sends the component photos across the wire (assuming this is some kind of slideshow)...

Is realtime a requirement?

旧时模样 2024-08-23 23:19:04

从技术角度来看,我不得不说不。您的建议似乎是对一组图像进行实时编码,然后将它们发送到服务器。

视频编码/解码非常不对称。解码比编码快得多,Flash/AS 当然不需要非常快地完成解码。也许您创建一个自定义网络摄像头驱动程序来获取图像流,但这需要用户进行安装。

您想要获取和发送什么样的图像?也许还有另一种解决方案?

From a technical standpoint, I would have to say no. What you're suggesting seems to be real time encoding of a set of images and then sending them to a server.

Video encoding/decoding is very asymmetric. It is much faster to decode than it is to encode, and Flash/AS certainly does not have to ability to do it very quickly. Maybe you create a custom webcam driver that takes a stream of images, but that would require installation on the part of the user.

What kind of images are you trying to acquire and send? Perhaps there is another solution?

寻梦旅人 2024-08-23 23:19:04

从不可能的软件中查看 Jetstream。他们做了类似的事情并且也有一个 sdk。
干杯

check out Jetstream from impossible software. They do something like this and also have an sdk.
Cheers

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