获取 Flash 中的解码帧(FLVplayback)
我想知道是否可以从 FLVPlayback 获取解码的帧,或者是否有另一种方法可以从 Flash 播放器访问解码的帧。 我想做的是在解码的帧渲染到屏幕上之前对其进行操作。
视频源可以是 RTMP 流或 FLV (F4V) 文件。
欢迎任何提示:)
I want to know if it is possible to get the decoded frames from FLVPlayback, or if it is known another alternative to access the decoded frames from a flash player.
What I want to do is to manipulate the decoded frames before they get rendered on screen.
The video source could be an RTMP stream or a FLV (F4V) file.
Any hint is welcome :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您希望以什么方式修改它们?
如果您需要执行任何逐像素操作,并且不使用 Flash Player 10(在这种情况下您应该查找 Pixel Bender),则可以使用 BitmapData.draw() 函数将帧绘制到 BitmapData 中。然后您可以根据需要操纵像素。
如果您只是想应用某种通用滤镜(例如模糊),则可以查找 flash.filters.* 类,例如 BlurFilter、DropShadowFilter 或 ColorMatrixFilter。
In what way do you wish to modify them?
If you need to do any per-pixel operation, and are not using Flash Player 10 (in which case you should look up Pixel Bender), you can use the BitmapData.draw() function to draw your frame into a BitmapData. You can then manipulate the pixels as you wish.
If you just simply want to apply some sort of generic filter, like blur, you can look up the flash.filters.* classes instead, e.g. BlurFilter, DropShadowFilter or ColorMatrixFilter.