[Kdenlive-devel] New titler module

jb jb at kdenlive.org
Sun Aug 2 20:32:18 UTC 2009


On Saturday 01 August 2009 16:47:32 Albert ARIBAUD wrote:
> Can you elaborate on this? What is the reason for needing Xorg running?

The new MLT titler module uses a QGraphicsScene to place the different objects and then render to an image. This requires the creation of a QApplication instance.

If you start that from a terminal login, some parts of the QApplication will not be initialized. Some of that stuff is required by the QGraphicsTextItem (for example it queries some infos about your screen depth, and some other display dependant stuff), which leads to a crash.

It might be possible to somehow subclass the QGraphicsTextItem to prevent calling that stuff, but it is not an easy jog. Another solution would be to write our own TextItem class, starting from a basic QGraphicsItem...

Anyways, it is probably possible but would require some work, and there are many more important things to do, so I think for the moment that will stay like that. Hope it is understandable.

As Mads said, you can work around that by starting a "fake" xserver like that (using xvfb):

fxvb-run -a melt (...)

So it should be possible to write a small script that would 

The great thing is that with Qt 4.6, that should be released by the year's end, there will be a new animation framework that will allow us to animate each object in the title for some funny effects.

regards
jb




More information about the Kdenlive mailing list