Skip to main content

I run Kdenlive on my phone because there is no FOSS video editing apps on Android

Smartphone APP Review Kdenlive Android Termux
Table of Contents

中文版

The only open source, free, and multi-functional video editing APP for Android phones: Kdenlive in proot Linux in Termux. (What a exaggerated title)

I like to use the open source Kdenlive to edit videos on Linux PC. Although its functions are not as good as Adobe Premiere, it can compete with the computer version of PowerDirector, which is enough to replace some functions of commercial software.

Although KDE does not officially support it, it is feasible to run Kdenlive on Android without root permissions. It can directly import videos from Android and then output it.

It looks like this when running

This article introduces how to run Kdenlive on Android phones/tablets.

1. Why do I do this?
#

It’s an attempt to get rid of closed-source apps.

It seems silly to use a mobile device to edit videos, at least use a tablet instead. But when I was keen on making Minecraft PE modding videos 5 years ago, I often used mobile apps to edit videos, such as Xiaoying, KineMaster, Adobe Premiere, PowerDirector, etc. How convenient, after processing the video on your phone, you can upload it to YouTube channel.

However, most of them are paid closed-source apps. If you use the free version, either the video quality will be compressed, or a bunch of ads will pop up and annoy you to death.

When I wanted to get rid of the above closed source apps, I discovered a problem. Why is there no open source (FOSS) video editing APP? Even on Android?

This question is very complicated and has been asked by many people on Reddit. Look at the list of F-Droid open source apps I made, let alone video editing, open source photo editing APPs are only a few, not to mention the video editing apps which has high development cost. FOSS video editing apps are almost non-existent on Android.

At present, the closest thing to an open source editing APP is Video Transcoder, which simply adjusts the time. That is all we got.

What about web video editors? There are also not many open source ones, and I don’t want to be exploited by using close-sourced products from companies like Canva. I think we have to wait until ffmpeg.wasm matures before there is hope for web video editing!

In this case, we can only rely on the open source editing software on Linux. OpenShot is too basic. The video editors with lots of functions include Kdenlive, Blender, and Shotcut; those who master commandlines can use ffmpeg. Here I choose Kdenlive.

Eh? This is obviously running a computer program! Why did you tell me it was an APP? Come on, the abbreviation of Application is also APP.

By the way, those who need open source photo editing software can also use the method described in this article to run GIMP, Inkscape, and Krita on Android.

2. Install Kdenlive on Android
#

In order to run Kdenlive on Android, you need a mobile phone with a processor of Qualcomm Snapdragon 845 (or better) and minimum of 8GB RAM.

  1. Install proot Debian and enable virgl or Zink for GPU hardware acceleration

  2. Log in to root Debian

proot-distro login debian --user user --shared-tmp
  1. Install Kdenlive:
sudo apt install kdenlive

If you want to enable GPU acceleration, try to start Kdenlive with virpipe or zink, so that the video preview will be smoother.

GALLIUM_DRIVER=virpipe kdenlive

3. Uee Kdenlive on Android
#

Here is the simple tutorial I made… sorry it is in Chinese (actually this video was also shot in proot-distro)

Proot-distro will mount the phone’s internal storage to /sdcard by default, so Kdenlive can directly import the video stored on the phone storage.

You may need to use the Touchpad mode in Termux X11 for dragging the items, and adjust the Termux X11 screen scaling appropriately. Note if the scale is too large, Kdenlive will run out of the screen.

On a small screen, you can only simply edit clips and then type using the mobile keyboard. You can also type text on your mobile phone and then paste it to Linux.

When outputting the video, select the software encoding Matroska-H264/AAC. Virgl has little effect here.

The output path can be selected as /sdcard, so that the output video will go directly to the internal storage of the Android.

On my mobile phone with Qualcomm Snapdragon 695 processor, it takes 10 minutes to outputs a 5-minute 1080p30 video. The phone will heat while outputing, so don’t forget to fan your phone.

Related

Tutorial on running full Visual Studio Code on Android phone (Termux)
Smartphone APP Review Termux Android Ubuntu
[Root] Install Ubuntu in chroot on Android without Linux Deploy
Smartphone Termux Tutorial Linux Android Ubuntu Termux
How to run Stable Diffusion on Termux on Android phone
Smartphone Termux Tutorial Stable Diffusion AI Android Termux

Leave a comment

Choose the comment system you like. Giscus for codes, Disqus for anonymous comments.

Please login to your Github account to leave a comment. You can post codes here for discussion. For images, please upload to Imgur and copy links. Your comments would be visible to everyone on Github Discussions.

This comment system is provided by Disqus, you may see forcing Disqus ADs on this page. Sometimes your comment may need to be reviewed, resulting in delayed display. Thank you for your understanding.