MLT(Media Lovin'工具包)照片幻灯片视频 [英] MLT (Media Lovin' Toolkit) Photo Slide Video

查看:127
本文介绍了MLT(Media Lovin'工具包)照片幻灯片视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在命令行中对一系列图像使用MLT.当我运行时:

I'm using MLT from the command line on a series of images. When I run:

melt 0.jpg 1.jpg 2.jpg 3.jpg

它会生成一个视频,其中每张照片占用一帧(4帧长的视频).我希望每张照片占用100帧.我已经尝试过可以想到的所有属性组合,例如:

It generates a video where each photo occupies one frame (4 frame long video). I want each photo to occupy 100 frames. I've tried every combination of properties I can think of, such as:

melt 0.jpg out=100 1.jpg in=100 out=200 2.jpg in=200 out=300

但是结果不符合预期.我还尝试将其组织成轨道,并从XML文件融为一体.充其量,我能够使照片显示在第一个预期的帧上,然后显示在99个空白帧上.

But the results are not as intended. I've also tried organizing into tracks, and melting from an XML file. At best, I've been able to get the photo to show up on the first intended frame, then 99 blank frames.

延长照片可见长度的最佳实践是什么?举一个简单的例子,我希望有一条包含10张照片的单轨,其中每张照片被组织为100张随后的帧.最终,我将把视频和照片组合在一起.

What is the best practice for extending the visible length of the photos? For a simple example, I would like to have a single track with 10 photos where each photo is organized into subsequent frames of 100. Eventually, I will be combining videos and photos.

使用视频时,我没有遇到任何问题,我的理解是inout属性用于视频,但是我无法找到有关如何扩展视频的示例.图片制作者的可见长度.

When working with videos, I've had no issues, and my understanding is that the in and out properties are intended for video, but I haven't been able to locate any examples of how to extend the visible length of image producers.

感谢任何想法或技巧!学习这个很棒的工具让我感到非常兴奋.

Thanks for any ideas or tips! I'm really excited to be learning this awesome tool.

推荐答案

您正在寻找的魔力是"ttl".将ttl参数设置为您要使图像持续播放的帧数.

The magic you are looking for is "ttl". Set the ttl parameter to the number of frames you want the image to last.

melt .all.jpg ttl=100

这里有一些很好的例子:

Some great examples here:

https://github.com/mltframework/mlt/blob/master/demo/mlt_slideshow

https://github.com/mltframework/mlt/blob/master/demo/mlt_slideshow2

https://github.com/mltframework/mlt/blob/master/demo/mlt_slideshow_black

这里还有一个有趣的博客文章:

Also an interesting blog post here:

http://mltframework.blogspot.com/2010/08/making-nice-slideshows.html

更新:

"*.jpg"语法对我不起作用.我很确定您必须使用".all.jpg".看来您的安装可能有问题.这里有一些尝试的方法...

The "*.jpg" syntax doesn't work for me. I'm pretty sure you have to use ".all.jpg". It seems you may be having some problems with your installation. Here are some things to try...

MLT有两个可以处理图像的模块.如果您未指定模块,则MLT会为您选择一个模块.尝试显式地指定两个模块,然后看一个模块是否比另一个模块更好:

MLT has a couple of modules that can process images. If you don't specify a module, MLT picks one for you. Try explicitly specifying both modules and see if one works better than the other:

melt pixbuf:.all.jpg ttl=100

和:

melt qimage:.all.jpg ttl=100

还可以尝试添加引号吗?

Also, maybe try adding quotes?

melt pixbuf:".all.jpg" ttl=100

以上所有工作对我来说都是

All of the above work for me.

如果上述所有方法均失败,请尝试列出所有生产者,并检查pixbuf和qimage:

if all of the above fail, try listing all the producers and check for pixbuf and qimage:

melt -query producers

我正在使用Ubuntu,因此,如果这是OSX特有的问题,我不会有太大帮助.但是我可以告诉您,为了获得所需的图像行为,绝对需要针对qt或gtk编译MLT.

I'm using Ubuntu, so I'm not going to be much help if this is an OSX specific issue. But I can tell you that MLT absolutely needs to be compiled against qt or gtk in order to get the image behavior you are looking for.

这篇关于MLT(Media Lovin'工具包)照片幻灯片视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆