This forum has been archived. All content is frozen. Please use KDE Discuss instead.

add new effect with XML file (typewriter)

Tags: None
(comma "," separated)
egerlach
Registered Member
Posts
65
Karma
0
OS
Hello,
until kdenlive 17.x it was possible to add the typewriter effect to "misc" section, but in 19.12 it doesn't work! There is even no "misc" section in in lists effects. Who can help?

# copy to /usr/share/kdenlive/effects/typewriter.xml

<!DOCTYPE kpartgui>
<effect tag="typewriter" id="typewriter" type="video" unique="1">
<name>TypeWriter</name>
<description>Typewriter effect</description>
<author>Rafał Lalik</author>
<parameter type="list" name="beg" default="|^|" paramlist="|^|,##">
<name>Begin marker</name>
</parameter>
<parameter type="list" name="end" default="|$|" paramlist="|$|,##">
<name>End marker</name>
</parameter>
</effect>

tia
Eckard
User avatar
bartoloni
Moderator
Posts
1510
Karma
4
OS
this is the only way to have a tywriter effect on "modern" version of Kdenlive... https://www.youtube.com/watch?v=k5uBPpwOwlQ
egerlach
Registered Member
Posts
65
Karma
0
OS
bartoloni wrote:this is the only way to have a tywriter effect on "modern" version of Kdenlive... https://www.youtube.com/watch?v=k5uBPpwOwlQ


horrible ... I've not the time to do that for every text :(
I hope Rafal Lalik answers me and adapts his plugin
User avatar
bartoloni
Moderator
Posts
1510
Karma
4
OS
egerlach wrote:I hope Rafal Lalik answers me and adapts his plugin

i hope this also :)
User avatar
bartoloni
Moderator
Posts
1510
Karma
4
OS
well... seems fixed: https://youtu.be/I8oyiy3YzBI

rafallalik
12 hours ago
OK, the effect is fixed. First, please be sure you recompiled the mlt_extra_modules with the currently installed mlt version, that the libraries are compatible. Then the xml effect file has slightly change, please download the newest file (see 2. point in the description) and replace the effect file on the disk. After that should work - I tested it.
egerlach
Registered Member
Posts
65
Karma
0
OS
fixed???

The effect does not appear in kdenlive effect list, thats the problem!
Maybe software for type-writing works, but I can't test it, because I can't select the effect!

BTW: Rafal didn't answer so far.
User avatar
bartoloni
Moderator
Posts
1510
Karma
4
OS
egerlach wrote:BTW: Rafal didn't answer so far.


the previous quote is from RAFAL. (1 day ago')

btw i suggested to add the Typewriter to Kdenlive GUI here: https://invent.kde.org/multimedia/kdenlive/-/issues/789
egerlach
Registered Member
Posts
65
Karma
0
OS
I don't understand what Rafal writes and the links to youtube video has no newer comment. All comments are older that 2 years.

And even if compiled with mlt_extra_modules somewhere, (yes, that works) , how/ where can I use the effect "typewriter" then? The xml file is not recognized, thats the problem.
egerlach
Registered Member
Posts
65
Karma
0
OS
bartoloni wrote:well... seems fixed: https://youtu.be/I8oyiy3YzBI

rafallalik
12 hours ago
OK, the effect is fixed. First, please be sure you recompiled the mlt_extra_modules with the currently installed mlt version, that the libraries are compatible. Then the xml effect file has slightly change, please download the newest file (see 2. point in the description) and replace the effect file on the disk. After that should work - I tested it.


From where did you copy that text (of rafalik)? I'd like to contact Rafalik, I have a email from him, but he does not answer. And: where are new files to download? Around the video (link above) there is no new software for download, the zip is 3 years old. And in the repo there is no updated software either: https://github.com/rlalik/mlt_extra_modules

tia
egerlach
Registered Member
Posts
65
Karma
0
OS
Rafal pleased me to quote the following (Thanks to Rafal, that he maintains the plugin!!! :) )

Hi guys,

it is Rafal here, author of the typewriter plugin.

Thanks for your interest in my effect, the comment section on you tube is very active. I also wasn't aware about the thread on the kde forum. AS I have no account there, I asked egerlach to quote my replay in the thread.

I read all you comments in the thread and took some time to think about the effect.

First of all, egerlach noticed that the code is 3y old. It is true and only because there was no need for changes, the mlt was changing but it wasn't affecting the plugin. The problems which you had from time were caused by changes in the kdenlive. First (like 1y ago) they changed how the parameters in the list are separated, the change was from , (comma) to ; (semicolon). Most recently they have put some extra check for mlt assets and as I used custom asset (what was not a problem in the past) it become now.

The second thing, I saw that you made an request for adding typewriter to the kdenlive. Please be aware, that my plugin is an extra package, so it will not work in kdenlive if the package is not installed. If the kdenlive devs decide that it doesn't hurt to have this extra file then i am fine. It will not show for people without installed module, and will work for those who have.

Third, I also come to the conclusion that having these beginning and ending markers are ugly and should no be there. So I redesigned a bit the effect, and I think the changes are better, but IT BREAKS COMPATIBILITY with previous version, so be aware if you make update. You will need to change text in your title slides, and remove and add the effect again to avoid any cached issues.

The change is that now the whole text is parsed, not only the part between markers. The markers were introduced due to way how data were passed to the mlt plugin from kdenlive. It is XML format and I wanted to have clear markers where the typerwriter macros are inserted in the data. Now I decided to use libxml2 library to parse and extract the content of the macro. It means additional dependency but I choose libxml2 because it is very popular and is installed on almost every Linux. If not, you should install packages, usually libxml2 and libxml2-dev, the name might depend on your distro. I did not test it under Windows as I do not use it. But I know that libxml2 is also ported to Windows so if some of you uses Windows and can test it I will appreciate.

The new version is tagged v0.1.0 and after committing it I realized it has some problems with situation where you edit the clip after typerwiter effect was added. In my case removing the effect and adding again didn't help. I will need to check it and should be foxed in version v0.1.1. Also current version supports only single text field (previous could support multiple text fields in a single clip), but this should be also fixed in v.0.1.1.

The last change is that, now the kdenlive effect is included in the code in the 'data' directory. You can copy it manually to kdenlive, or use additional option for ./configure script to install it automatically. Just follow the README.

That's all for now, if I have some new news, I will forward them to you via egerlach. Have fun with typewriter.

Also, if you have suggestions for the effect, do not hesitate to write to me. My e-mail is in README. Or fill an issue on github.

Regards,
Rafał
fizyk
Registered Member
Posts
4
Karma
0
Hi guys, I am original developer of the effect. I created an account and can reply you directly.

Please have a look on the newest version of the plugin: https://youtu.be/9_ouF3NLTxA


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], daret, Evergrowing, Google [Bot], sandyvee, Sogou [Bot]