How to easily delete snippets using Kdenlive?
Solution 1:
1. How to quickly mark a segment to delete:
- Make sure the video track is selected.
- Press X to switch to the Cut (Razor) Tool
- Click once in the timeline at the start point
- Click once at the end point
-
Press S again to switch back to selection mode
2. Use xdotool to automate delete/remove space with a single keyboard shortcut
-
xdotool allows automation of keyboard and mouse clicks/movements; install it with
sudo apt-get install xdotool
-
Copy and paste the below to an
sh
file, saykdenlive_cut.sh
in your home directory:#!/bin/bash
DELAY=0.5 # delay in seconds between each action xdotool search --limit 1 -name Kdenlive > nul # activate only if kdenlive running if [ $? -eq 0 ] then xdotool click 1 && sleep $DELAY \ # left-click && xdotool key Delete && sleep $DELAY \ # DEL && xdotool click 3 && sleep $DELAY \ # right-click && xdotool key r; # 'R' to remove space fiMake it executable with
chmod +x ~/kdenlive_cut.sh
-
Open Settings...Keyboard, and go to the Shortcuts tab. Create a custom shortcut, naming it whatever you want, and setting the "Command" path to
/home/username/kdenlive_cut.sh
. Click Apply. The right-column will say "Disable", click on it and you'll see "New Accelerator": press your shortcut key combo. I choseCtrl+Del
since it doesn't conflict with the existing shortcuts in Kdenlive. -
Now go to Kdenlive, and mark a segment you want to cut (as explained in Section 1). Click on that segment to outline it in red, and without moving the cursor, press
Ctrl+Del
; you will see the segment deleted, an empty space appear, the right-click menu show and the space removed -- all in the space of about 2 seconds.Sometimes the shortcut fails the very first time it's invoked, giving you the longer right-click menu or the "Insert Space" option. Just cancel, and try it again...it works.
Here's a Youtube Demo of the shortcut in action.
Solution 2:
Despite requests of many users, there is no such function for just selecting a part and removing it out of the audio/video track.
But I think that you just could look where to cut, then cut two times, click on the middle part and then click Del
. And that is everything.
I think that this cutting process shouldn't take too long.