简体   繁体   English

MLT框架。 在视频上插入放大文字

[英]MLT Framework. Insert zoomin text on video

Need to achieve effect something like that: put zoomingIn text on video background (black with some animation) between other videos. 需要实现类似的效果:将zoomingIn文本放在其他视频之间的视频背景上(带有动画的黑色)。 Demo: https://www.dropbox.com/s/ehqwkjgu5u5e9rp/4%20Cultivar%20Road%20Brampton%2C%20Jessi%20Sandhu.mp4?dl=0 演示: https : //www.dropbox.com/s/ehqwkjgu5u5e9rp/4%20Cultivar%20Road%20Brampton%2C%20Jessi%20Sandhu.mp4?dl=0

Trying to make is using dynamictext and affine filter: 尝试使用动态文本和仿射过滤器:

"1.mp4" -mix 7 -mixer luma "2.mp4" -mix 7 -mixer luma "bg.mp4" -attach-clip dynamictext in=0 out=145 "text.txt" -attach-clip affine in=0 out=145 -attach-clip affine valign=middle halign=center scale=1 fill=1 geometry="0=10%,10%:80%x80%:0%;36=0,0:100%x100%:100%;109=-10%,-10%:120%x120%:100%;145=-10%,-10%:120%x120%:0%"

But i have unexpected results with infinite video and no animation at all... 但是我在无限视频和根本没有动画的情况下获得了意想不到的结果...

Your syntax for the dynamictext filter is incorrect. 您的dynamictext过滤器语法不正确。 The dynamic text filter requires an argument like this: 动态文本过滤器需要这样的参数:

-attach-clip dynamictext:"This is some text"

Also, the dynamictext filter does not accept a text filename. 此外,dynamictext筛选器不接受文本文件名。 The actual text must be specified as the filter argument. 必须将实际文本指定为过滤器参数。

Also, your syntax for the affine filter is incorrect. 另外,您的仿射过滤器语法不正确。 The geometry is applied to the encapsulated transition. 几何将应用于封装的过渡。 So the geometry should be specified with: "transition.geometry=..." 因此,应使用以下格式指定几何:“ transition.geometry = ...”

I think your best path to success will be to use the qtext producer. 我认为成功的最佳途径是使用qtext生产者。

Try something like this as an example: 尝试像这样的例子:

melt qtext:text.txt in=0 out=145 fgcolour=white size=200 -attach-clip affine valign=middle halign=center scale=1 fill=1 background=color:black transition.geometry="0=10%,10%:80%x80%:0%;36=0,0:100%x100%:100%;109=-10%,-10%:120%x120%:100%;145=-10%,-10%:120%x120%:0%"

Check the documentation for qtext for other parameters you might find useful: https://mltframework.org/plugins/ProducerQtext/ 检查文档中的qtext,以获得其他可能有用的参数: https ://mltframework.org/plugins/ProducerQtext/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM