Presets in Kdenlive

I have added a custom preset to the UHD section of
the Render section … Am experiencing a problem and just can’t solve it.
Here is the string I want to enter in the preset:
acodec=aac channels=2 crf=18 f=mp4 g=15 pix_fmt=yuv420p preset=slow progressive=1 r=29.97 real_time=-1 sws_flags=lanczos threads=0 tune=film vcodec=libx264 vf=scale=3840:2160

This script sets up a 1080p timeline with mixed resolution clips to render to 4k utilizing the Lanczos feature in Kdenlive

When I try to use this clip kdenlive changes it to:
acodec=aac channels=2 crf=18 f=mp4 g=15 pix_fmt=yuv420p preset=slow progressive=1 r=29.97 real_time=-1 scale=2 sws_flags=lanczos threads=0 tune=film vcodec=libx264 vf=scale=3840:2160

Notice the addition of scale=2 in the 2nd clip. I didn’t add it, Kdenlive added it, It should not be in the script. The first script works fine, the 2nd one doesn’t. It takes forever to render a file. The first string is about 30% faster to render.

No matter what I do I can’t get Kdenlive to stop adding ‘scale=2’ to my preset. I suspect it is adding it because my project timeline is at 1080p … but not sure about that …

Has anyone had a problem like this, or has a preset script that doesn’t cause this extra verbage to be added … Thx and enjoy editing. You are welcome to email me at is_jnr@yahoo.com to chaapt about this. I also can chat via Viber or WhatsApp after we contact by email. Cheers

I tried that with Flatpak 26.04.3 on Pop!_OS and it works without Kdenlive adding any parameters on its own.

They key to making this work is to Enable Manual Editing:

Once enabled, paste the parameter set:

Keep in mind that from that point onward you can edit this preset only via this text box. But you know how to specify parameters anyway, so that shouldn’t be a problem.

I finally got it to work in Appimage version. Glad it worked for you … Will you use it? Render is slow, results great. I shoot 3 resolutions of video, edit on 1080p timeline and render to 4k using the script. Usually I just start renders at night and tell Kdenlive to shut down when finished. Thx for reply
Cheers J.R.