Flex NetStream.Step 不适用于每帧

发布于 2024-11-25 19:58:25 字数 576 浏览 3 评论 0原文

我有一个 Flex 4 项目和一个 FMS 4(Flash Media Server)服务器,用于从录制的 f4v 文件中传输 mp4 流。

我的视频控件是 Spark/components/VideoPlayer 的子类,并且我有用于在视频中来回移动的按钮。我们需要能够单独查看每一帧,但似乎只每四到五帧更新一次图像(即使在同一视频中,它也会有所不同)。

这是代码,没有什么特别先进的:

public function stepButtonClick(direction:int, shiftDown:Boolean):void {
    //Step forwards or backwards
    //NOTE Steps 10 frames if the shift key is held
    var stream:NetStream = getStream();

    if (stream) {
        stream.step(shiftDown ? (direction * 10) : direction);
    }
}

知道我可以做什么来修复或调试这个问题吗?难道它只显示 I 帧(关键帧)?

I've got a Flex 4 project, and a FMS 4 (Flash Media Server) server that streams mp4 streams from recorded f4v files.

My video control is a subclass of Spark/components/VideoPlayer, and I have buttons for stepping back and forth in a video. We need to be able to see each frame individually but it seems to only update the image every four or five frames (it varies, even within the same video).

Here's the code, nothing particularly advanced:

public function stepButtonClick(direction:int, shiftDown:Boolean):void {
    //Step forwards or backwards
    //NOTE Steps 10 frames if the shift key is held
    var stream:NetStream = getStream();

    if (stream) {
        stream.step(shiftDown ? (direction * 10) : direction);
    }
}

Any idea what I can do to fix or debug this issue? Could it be that it's only showing I-frames (keyframes)?

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

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

发布评论

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

评论(1

寂寞陪衬 2024-12-02 19:58:25

步进只能对关键帧进行,因此如果您想要这样做,请确保将关键帧设置得足够近,但请记住这些对文件大小有巨大影响。

另外,RTMP 流在这方面远不如 Http 动态流...

祝你好运!如果您需要进一步的帮助,请告诉我......

〜JT

Stepping can only be done to a keyframe, so if you want this make sure you set keyframes close enough, but remember these have a tremendous impact on file size.

Also, RTMP streaming is not nearly as good at this as as Http Dynamic Streaming...

Good luck! If you need further help let me know...

~ JT

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