如何在 AS3 中录制 Sprite 视频?
我有一个基于 Web 的 AS3 应用程序,可以打开网络摄像头并覆盖一些动画。
我将相机作为位图并将其渲染为 Sprite (myAwesomeSprite)。该动画被添加为 myAwesomeSprite 的子级。我可以拍摄 myAwesomeSprite 的静态图像并通过 JPGEncode() 保存它们。
我想将 myAwesomeSprite 录制为视频,同时捕获网络摄像头和动画。我知道我需要访问 Flash Media Server 或 Red5 Server 才能执行此操作。
我见过的所有关于录制和保存 Flash 视频的参考文献都仅指录制相机,而不是相机 + 其他元素。我并不完全清楚我可以录制相机+动画。
如果我有一个 Sprite myAwesomeSprite,如何将其录制为视频并将其保存到服务器?
I have a web-based AS3 application that opens a webcam and overlays some animations.
I'm taking the camera as a Bitmap and rendering it to a Sprite (myAwesomeSprite). The animation is added as a child of myAwesomeSprite. I can take still images of myAwesomeSprite and save them via JPGEncode().
I would like to record myAwesomeSprite as a video, capturing the webcam and animation together. I understand I would need access to a Flash Media Server or Red5 Server to do this.
All the references I've seen to recording and saving Flash video refer to recording the camera only, not the camera + other elements. It's not entirely clear to me i can record camera+animation.
If I have a Sprite myAwesomeSprite, how can I record it as video and save it to a server?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将所有 JPEG 文件上传到服务器,并让它运行一个工具将它们转换为电影。然而这太慢了。
另一种选择是使用 Adobe Alchemy 将 ffmpeg 等工具转换为 AS3。 Aviary 的 Ralph Hauwert 已经做到了这一点。 Aviary Peacook 可以创建视频,但我想通过 Alchemy 获取 ffmpeg 是一项非常复杂的任务。
然而,在该解决方案中,一切都在客户端完成,这正是您想要做的。
You could upload all your JPEGs to the server and have it run a tool to convert them to a movie. However this is too slow.
A different option is to convert a tool like ffmpeg to AS3 using Adobe Alchemy. Ralph Hauwert from Aviary has done this. Aviary Peacook can create videos but I guess it was a very complex task to get ffmpeg through Alchemy.
However in that solution everything is done on the client-side which is what you want to do.