When I was using Windows, I got everything I needed as a creative: Photoshop, Premiere Pro, After Effects, Resolve, and FL Studio, to name a few. It has been about 4 years since I left the Windows ecosystem and moved back to Fedora Linux. I'm loving it so far, except for one problem: I still have not found alternatives to these tools. Yes, there are Linux "alternatives" like GIMP, Kdenlive, and Ardour, but I feel like there's a lot of features missing or are unintuitive to do compared to the commercial tools. There are also web-based ones like Photopea and Pikimov, but they suffer the same problems, or, dare I say, are even worse than the local alternatives, feature-wise. Vibe-coded tools like the Crafting Apps suite are still in their early stages and are not yet reliable based on my experience.

As someone who has spent half of their life in the photo/video industry with these commercial products made by large corporations, it is hard to step away from them. I still find myself opening my Windows 11 To Go installation to use Photoshop when my tools, psd-tools, and Photopea can't do what I want. But because of their actions in the past years, I am trying my best to look for alternatives.

In the last few months, I've been creating video snippets using raw ffmpeg. I download the video using yt-dlp, cut it into the part I want using ffmpeg, and send it to my friends.

# Download a YouTube video using `yt-dlp`, trim it to a specific start/end timestamp, and
# crop it into a 1:1 aspect ratio.
yt-dlp -f 'bestvideo+bestaudio' 'https://youtube.com/watch?v=some_youtube_video'
xdg-open ./some_youtube_video.webm  # Grab the timestamps using the default video player
ffmpeg -ss 00:00:44.778 -to 00:00:46.513 \
  -i some_youtube_video.webm \
  -vf "crop=min(iw\,ih):ow" \
  -an output.mp4
Command Breakdown▸

yt-dlp command breakdown:

  • -f 'bestvideo+bestaudio' grabs the highest quality video and audio, and merges them into a single file using a compatible container (.mkv or .webm most of the time)
    • In practice, you should not download the highest quality if you're discarding most of it later anyway. You should set -f to bestvideo[height<=1080]+bestaudio/best or even setting max height to 720, 480, or lower depending on what you're doing. I am archiving them as well, therefore the command above is valid for my use case.

ffmpeg command breakdown:

  • -ss 00:00:44.778 tells FFmpeg to start the output video at this timestamp (44.778 seconds).
  • -to 00:00:46.513 tells FFmpeg to end the output video at this timestamp (46.513 seconds).
  • -i some_youtube_video.webm uses some_youtube_video.webm as the input file.
  • -vf "crop=min(iw\,ih):ow" crops the video into a 1:1 aspect ratio.
  • -an removes the audio from the output.

After downloading the video, I open it using my default video player (Mpv) by invoking xdg-open, going to the frames I want the video to start and end, then copying the timestamps. I have my own Mpv configuration to make the process easier. Using it, I can seek or speed up the playback by tapping or holding the right arrow key, respectively. When I'm near the starting or ending point I want, I seek frame-by-frame using the , and . keys. Once I get to the exact frame I'm looking for, I press CTRL+t to copy the current timestamp.

# Create a GIF from `input_video.mp4`
ffmpeg -ss 00:01:46.607 -to 00:01:49.743 \
  -i input_video.mp4 \
  -vf "fps=24,crop=min(iw\,ih):ow,scale=800:-2:flags=lanczos,split[s0][s1];[s0]palettegen=max_colors=32:stats_mode=diff[p];[s1][p]paletteuse=dither=floyd_steinberg" \
  output.gif
Command Breakdown▸
  • -ss 00:01:46.607 tells FFmpeg to start the output video at this timestamp (1 minute, 46.607 seconds).
  • -to 00:01:49.743 tells FFmpeg to end the output video at this timestamp (1 minute, 49.743 seconds).
  • -i input_video.mp4 uses input_video.mp4 as the input file.
  • -vf "..." tells FFmpeg to apply the filtergraphs inside the double quotes.
    • fps=24 sets the frame rate of the output file.
    • crop=min(iw\,ih):ow crops the video into 1:1 aspect ratio.
    • scale=800:-2:flags=lanczos scales the width to 800 pixels and automatically calculates the height to preserve the aspect ratio while rounding to the nearest even number (-2), using the Lanczos scaling algorithm.
    • split[s0][s1]; clones the video stream into two identical outputs ([s0] and [s1]) so FFmpeg can generate and apply a custom color palette in a single command without needing a temporary palette file.
    • [s0]palettegen=max_colors=32:stats_mode=diff[p]; takes the first stream ([s0]) and builds a custom palette of up to 32 colors ([p]), prioritizing pixels that move between frames (defined by stats_mode=diff).
    • [s1][p]paletteuse=dither=floyd_steinberg takes the second stream ([s1]) and applies that generated palette ([p]) using Floyd-Steinberg dithering to smooth out color banding.

I used to create GIFs using the above command, but someone recommended AVIF so now I use the following command:

# Create an animated AVIF from `input_video.webm`
ffmpeg -ss 00:00:44.778 -to 00:00:46.513 \
  -i input_video.webm \
  -vf "fps=24,crop=min(iw\,ih):ow,scale=800:-2:flags=lanczos" \
  -c:v libsvtav1 -preset 8 -crf 30 -pix_fmt yuv420p \
  -an output.avif
Command Breakdown▸
  • -ss 00:00:44.778 tells FFmpeg to start the output video at this timestamp (44.778 seconds).
  • -to 00:00:46.513 tells FFmpeg to end the output video at this timestamp (46.513 seconds).
  • -i input_video.webm uses input_video.webm as the input file.
  • -vf "..." tells FFmpeg to apply the filtergraphs inside the double quotes.
    • fps=24 sets the frame rate of the output file.
    • crop=min(iw\,ih):ow crops the video into 1:1 aspect ratio.
    • scale=800:-2:flags=lanczos scales the width to 800 pixels and automatically calculates the height to preserve the aspect ratio while rounding to the nearest even number (-2), using the Lanczos scaling algorithm.
  • -c:v libsvtav1 tells FFmpeg to use the libsvtav1 encoder to encode the frames into AV1 video.
  • -preset 8 sets the encoding speed preset for libsvtav1.
  • -crf 30 sets the Constant Rate Factor (CRF) quality level.
  • -pix_fmt yuv420p sets the pixel format to standard 8-bit 4:2:0 chroma subsampling.
  • -an removes the audio from the output.
MP4 vs GIF vs AVIF Tangent▾

I frequently generate animated GIFs for use in Discord (I'm a personalized meme generator in our Discord server) so these ffmpeg commands are a must-have for me. I did a basic benchmark of MP4 (H.264), GIF, and AVIF (AV1) on a 3.14-second snippet to get the following results:

Input file:

  • Dimensions: 3840x2160 (4K, 16:9)
  • Codec/Container: AV1/WEBM
  • Frame Rate: 29.970 FPS (Constant)
  • Duration: 03m 07s (trimmed to a 3.14s clip)
  • File Size: 156 MiB (6,989 kb/s)

Output:

Format Resolution Frame Rate Color Depth Encode Time File Size
MP4 (libx264) 2160x2160 29.97 fps 8-bit (yuv420p) 6.93s 3,399 KiB (3.32 MiB)
GIF (palettegen + paletteuse) 800x800 24 fps 32-color (pal8) 8.65s 13,734 KiB (13.4 MiB)
Animated AVIF (libsvtav1) 800x800 24 fps 8-bit (yuv420p) 2.71s 685 KiB

AVIF has the fastest encoding time at 2.71s and its output is significantly better quality than GIF while being 20 times smaller at the exact same 800x800 resolution. At 13.4 MiB, the GIF even exceeds Discord's 10 MB free upload limit. MP4 is out of the options because (as of writing) it's non-looping on Discord. I just added it here for comparison's sake. Therefore, I started to use AVIF on my subsequent edits.

These are arguably easier and faster since I only have to run the command in the terminal (which I frequently have opened already) and there's no UI overhead (not to mention I'm a terminal native). However, it starts to become a hassle when I need to perform more complex tasks like overlaying other video tracks and/or elements. After months of doing everything in FFmpeg, I finally caved in and installed Kdenlive (again).

What is Kdenlive?

Kdenlive is an open-source Non-Linear Editor (NLE) based on the MLT Framework, and is part of the official KDE Projects suite.

8109f2ff-5f5a-466f-8849-b0b7ed60aae3.png

kdenlive.org's homepage as of writing

It is one of the most recommended video editors among Linux communities and I've seen a lot of people swearing by it. I chose Kdenlive instead of other notable NLEs like Shotcut or Flowblade because it has the most guides and community support available online and is maintained by KDE, one of the software communities I trust the most.

I chose to install it as a flatpak to be consistent with my system configuration, where most desktop applications are sandboxed and only essential system utilities are installed in the host.

flatpak install flathub org.kde.kdenlive
# ...or install it in your host system (apt and dnf)
if command -v apt &>/dev/null; then sudo apt install kdenlive; else sudo dnf install kdenlive; fi

On first launch, I am greeted by its welcome screen where I can create a new Kdenlive project or open a recent one.

67755424-3cea-4c49-b412-2132fb039c6b.png

e4bb49ab-a683-4f40-a140-3f7d853bc949.png

Setting Up Kdenlive

Before I touch any footage, I want Kdenlive to behave like the rest of my system. Out of the box, it’s a capable editor, but the defaults assume I'm coming from a generic workflow, not mine.

Editing the Settings

Everything lives under Settings > Configure Kdenlive (also accessible by pressing CTRL+SHIFT+,). These are the settings I changed:

Misc Tab

Enabling built-in effects is useful. When I add a new video clip to the timeline, for example, the built-in effects like volume and transform are automatically added to it, making simple edits faster and one step closer to Premiere Pro. I also find myself to always shorten the durations of transitions anyway so I decided to set the defaults to a lower value (1s).

Setting Value
Enable Built-In Effects On
Default Durations > Transitions 00:00:01:00
Default Durations > Mixes 00:00:01:00
Default Durations > Fades 00:00:01:00

166800aa-9181-439a-9f76-6149f7f03175.png

Proxy Clips

Generating proxies of high-quality footage is a good idea so that my machine wouldn't crash or slow down while editing.

Setting Value
Enable Proxy Clips On
Generate for videos larger than On, 1000 pixels
Encoding profile ProRes

b6435d11-8d1e-4b0c-9c60-2d632d4cdde1.png

Timeline

Disabling autoscroll while playing allows me to "detach" the timeline position from the playback's. I also decreased the default track height to pack more tracks in the screen.

Setting Value
Autoscroll while playing Off
Default track height 32

a30d94ca-3031-4bae-b924-4c928fec4492.png

Plugins

I did not realize at first that Kdenlive has these features. Apparently, it also has Speech-to-Text (STT) and object detection, so I install these plugins and configured them like this.

Speech To Text

Setting Value
Speech Engine Whisper
Model Turbo

71e2302e-bf14-400b-9567-04b3c4697e8c.png

Object Detection

Setting Value
Model Sam2.1_hiera_tiny

83484201-af6f-42a1-bbf6-b2738a07cce0.png

Where are the settings stored?▸

Since I installed Kdenlive as a flatpak, its config lives under ~/.var/app/org.kde.kdenlive/config/ instead of ~/.config/. The main file is kdenlive-flatpakrc (kdenliverc in native host installs), and it’s in plaintext, so it’s easy to track in my dotfiles.

Theming Kdenlive

I already use Catppuccin Mocha everywhere else, and a video editor I stare at for hours shouldn’t be the one bright window on my screen (I don't like most light mode themes).

Since Kdenlive is a KDE app, it follows KDE color schemes. I installed Catppuccin for KDE by downloading the Mocha .colors files to ~/.local/share/color-schemes, granting Kdenlive read-only access to it, then setting my desired theme from Settings > Color Scheme after restarting the app.

# Flatpak apps are sandboxed, so let Kdenlive see that folder
flatpak override --user --filesystem=xdg-data/color-schemes:ro org.kde.kdenlive

ea9cec83-6cc8-4969-9682-a958213c2162.png

Bug

You might have noticed that the text contrast on the top right menu is not good. I have not yet found a fix for this.

My Current Situation

Honestly, I don't think my search for a proper creative workflow on Linux is over yet. For now, I will try to do everything with this setup. For quick trims, my ffmpeg pipeline isn't going to change. I don't think any video editor can beat running a single command in a terminal. Kdenlive has the right features: proxy workflows, modern local AI integration, and most of the NLE features I need. I will have to use it in real-world scenarios to see if it can handle the actual production work I do. And also, I don't think my Windows 11 To Go installation will be deleted anytime soon. I'm pretty sure I will be using it when I'm in a rush to finish things.

I'll give it a few months and report back on my findings. That's all for now.