您可以控制 Quartz Composer 中播放视频剪辑的速度吗?
有没有办法控制视频播放的速度? 我对一种通过帧混合减慢速度的方法特别感兴趣,就像 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
目前无法使用内置的
Movie Loader
补丁进行帧混合。不过,您可以任意控制播放头。
Movie Loader
补丁,并设置Movie Location
。广告牌
。 电影应以正常速度播放。Timebase
,然后选择External
。 这为Movie Loader
补丁提供了Patch Time
输入,并将其冻结在第一帧。Patch Time
输入的值是Movie Loader
应渲染的时间偏移量(以秒为单位)。Patch Time
补丁,并将其输出连接到Movie Loader
的Patch 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 Loader
的Patch Time
输入。 电影应该以正常速度从头开始播放。Integrator
的Value
更改为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.
Movie Loader
patch, and set theMovie Location
.Billboard
. The movie should play at normal speed.Timebase
, and then selectExternal
. This gives theMovie Loader
patch aPatch Time
input, and freezes it at the first frame.Patch Time
is the time offset, in seconds, at which theMovie Loader
should render.Patch Time
patch, and connect its output to theMovie Loader
'sPatch Time
input. The movie should again play at normal speed.Now comes the fun part:
Mathematical Expression
patch and entert/2
for the equation.Patch Time
patch to the input of theMathematical Expression
, and the output of theMathematical Expression
to thePatch Time
input of theMovie 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.Integrator
, set theValue
to1
, and connect theIntegrator
's output to theMovie Loader
'sPatch Time
input. The movie should play from the beginning at normal speed.Integrator
'sValue
to0.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).
v002 Movie Player(测试版) 作为内置 Movie Loader 补丁的替代品提供了
费率
输入。 我已经得到了非常平滑的视频速度变化。(我添加了
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.(I added the
Playhead Seconds
input; if anybody else would find that useful I'll post it.)插值应该可以帮助你。 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.