您可以控制 Quartz Composer 中播放视频剪辑的速度吗?

发布于 2024-07-05 01:58:02 字数 70 浏览 12 评论 0原文

有没有办法控制视频播放的速度? 我对一种通过帧混合减慢速度的方法特别感兴趣,就像 Final Cut Pro 中的功能一样。

Is there a way to manipulate the speed of the video playback? I'm especially interested in a way to slow down with frame blending, exactly like the function in Final Cut Pro.

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

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

发布评论

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

评论(3

你曾走过我的故事 2024-07-12 01:58:02

目前无法使用内置的 Movie Loader 补丁进行帧混合。

不过,您可以任意控制播放头。

  • 插入Movie Loader补丁,并设置Movie Location
  • 将其连接到广告牌。 电影应以正常速度播放。
  • 右键单击 Patch,选择Timebase,然后选择External。 这为 Movie Loader 补丁提供了 Patch Time 输入,并将其冻结在第一帧。
    • 您为Patch Time 输入的值是Movie Loader 应渲染的时间偏移量(以秒为单位)。
  • 插入 Patch Time 补丁,并将其输出连接到 Movie LoaderPatch Time 输入。 电影应该再次以正常速度播放。

现在到了有趣的部分:

  • 插入一个数学表达式补丁并输入t/2作为方程。
  • Patch Time 补丁连接到 Mathematical Expression 的输入,并将 Mathematical Expression 的输出连接到 Patch Time Movie Loader 补丁的 code> 输入 --- 电影现在以一半速度播放。

您可以更改方程式来更改播放速率 --- t/3 将以 1/3 速度播放,t*2 将以双倍速度播放,依此类推。

但是,如果您在电影播放时更改播放速率方程,您会注意到播放头跳到新位置,而不是从上一次继续。

要解决此问题,您需要使用Integrator 补丁。

  • 创建一个 Integrator,将 Value 设置为 1,并将 Integrator 的输出连接到 Movie LoaderPatch Time 输入。 电影应该以正常速度从头开始播放。
  • IntegratorValue 更改为0.5。 影片应以半速播放,从当前位置继续播放。

您甚至可以使用此技术向后播放电影(不过,根据您使用的编解码器,它可能会严重影响性能)。

Currently it's not possible to do frame-blending using the built-in Movie Loader patch.

You can arbitrarily control the playback head, though.

  • Insert a Movie Loader patch, and set the Movie Location.
  • Connect it to a Billboard. The movie should play at normal speed.
  • Right-click on the patch, select Timebase, and then select External. This gives the Movie Loader patch a Patch Time input, and freezes it at the first frame.
    • The value you enter for Patch Time is the time offset, in seconds, at which the Movie Loader should render.
  • Insert a Patch Time patch, and connect its output to the Movie Loader's Patch Time input. The movie should again play at normal speed.

Now comes the fun part:

  • Insert a Mathematical Expression patch and enter t/2 for the equation.
  • Connect the Patch Time patch to the input of the Mathematical Expression, and the output of the Mathematical Expression to the Patch Time input of the Movie Loader patch --- the movie now plays at half speed.

You can alter the equation to change the playback rate --- t/3 will play at 1/3 speed, t*2 will play at double speed, and so forth.

However, if you change the playback rate equation while the movie's playing, you'll notice that the playback head jumps to a new position rather than continuing on from the previous time.

To solve this, you'll want to use the Integrator patch.

  • Create an Integrator, set the Value to 1, and connect the Integrator's output to the Movie Loader's Patch Time input. The movie should play from the beginning at normal speed.
  • Change the Integrator's Value to 0.5. The movie should play at half speed, continuing from the current position.

You can even play movies backwards using this technique (though, depending on what codec you use, it may severely impact performance).

坚持沉默 2024-07-12 01:58:02

v002 Movie Player(测试版) 作为内置 Movie Loader 补丁的替代品提供了 费率输入。 我已经得到了非常平滑的视频速度变化。

v002 Movie Player

(我添加了 Playhead Seconds 输入;如果其他人觉得有用,我会发布它。)

v002 Movie Player (Beta) as a replacement for the built-in Movie Loader patch provides a Rate input. I have gotten very smooth video speed changes with that.

v002 Movie Player

(I added the Playhead Seconds input; if anybody else would find that useful I'll post it.)

放血 2024-07-12 01:58:02

插值应该可以帮助你。 Quartz Composer 中包含一个示例 (Interpolation Modes.qtz) 和一个入门教程 这里简短地提到了它(第5步)。
这篇 wiki 文章 也讨论了它并讨论了不同的类型。

注意:我实际上没有可以运行 QC 的 Mac,所以这只是我通过 Google 找到的内容,但听起来它应该能让您走上正确的道路。

Interpolation should be able to help you. There's an example included with Quartz Composer (Interpolation Modes.qtz) and a beginning tutorial here that breifly mentions it (step 5).
this wiki article also discusses it and talks about the different types.

Note: I don't actually have a Mac that can run QC, so this is just what I've been able to find through Google, but it sounds like it should get you on the right track.

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