获取 Flash 中的解码帧(FLVplayback)

发布于 2024-08-15 10:51:54 字数 146 浏览 3 评论 0原文

我想知道是否可以从 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 技术交流群。

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

发布评论

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

评论(1

过度放纵 2024-08-22 10:51:54

您希望以什么方式修改它们?

如果您需要执行任何逐像素操作,并且不使用 Flash Player 10(在这种情况下您应该查找 Pixel Bender),则可以使用 BitmapData.draw() 函数将帧绘制到 BitmapData 中。然后您可以根据需要操纵像素。

var bmp : BitmapData = new BitmapData(myVideo.width, myVideo.height, false);

// Each frame, do this:
bmp.draw(myVideo);

如果您只是想应用某种通用滤镜(例如模糊),则可以查找 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.

var bmp : BitmapData = new BitmapData(myVideo.width, myVideo.height, false);

// Each frame, do this:
bmp.draw(myVideo);

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.

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