67834399CC708646102FF78944E110NN.xyz
My Video Editing Workflow on Linux (So Far)
Video Editing on Linux using ffmpeg, Kdenlive, and Mpv
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.mp4Command 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 (.mkvor.webmmost of the time)- In practice, you should not download the highest quality if you're discarding most of it later anyway. You should set
-ftobestvideo[height<=1080]+bestaudio/bestor 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.
- In practice, you should not download the highest quality if you're discarding most of it later anyway. You should set
ffmpeg command breakdown:
-ss 00:00:44.778tells FFmpeg to start the output video at this timestamp (44.778 seconds).-to 00:00:46.513tells FFmpeg to end the output video at this timestamp (46.513 seconds).-i some_youtube_video.webmusessome_youtube_video.webmas the input file.-vf "crop=min(iw\,ih):ow"crops the video into a 1:1 aspect ratio.-anremoves 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.gifCommand Breakdown▸
-ss 00:01:46.607tells FFmpeg to start the output video at this timestamp (1 minute, 46.607 seconds).-to 00:01:49.743tells FFmpeg to end the output video at this timestamp (1 minute, 49.743 seconds).-i input_video.mp4usesinput_video.mp4as the input file.-vf "..."tells FFmpeg to apply the filtergraphs inside the double quotes.fps=24sets the frame rate of the output file.crop=min(iw\,ih):owcrops the video into 1:1 aspect ratio.scale=800:-2:flags=lanczosscales 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 bystats_mode=diff).[s1][p]paletteuse=dither=floyd_steinbergtakes 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.avifCommand Breakdown▸
-ss 00:00:44.778tells FFmpeg to start the output video at this timestamp (44.778 seconds).-to 00:00:46.513tells FFmpeg to end the output video at this timestamp (46.513 seconds).-i input_video.webmusesinput_video.webmas the input file.-vf "..."tells FFmpeg to apply the filtergraphs inside the double quotes.fps=24sets the frame rate of the output file.crop=min(iw\,ih):owcrops the video into 1:1 aspect ratio.scale=800:-2:flags=lanczosscales 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 libsvtav1tells FFmpeg to use thelibsvtav1encoder to encode the frames into AV1 video.-preset 8sets the encoding speed preset forlibsvtav1.-crf 30sets the Constant Rate Factor (CRF) quality level.-pix_fmt yuv420psets the pixel format to standard 8-bit 4:2:0 chroma subsampling.-anremoves 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.

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; fiOn first launch, I am greeted by its welcome screen where I can create a new Kdenlive project or open a recent one.


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
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
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
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
Object Detection
Setting Value Model Sam2.1_hiera_tiny
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
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.




