Skip to main content
  1. Archives/

Using KWin as a Desktop Video Recording and Screencast tool

··259 words·2 mins·
Tips & How-To's Applications Linux

Not many know of this, but as of KDE 4.2, Kwin, the window manager has a nifty little feature - it can grab videos of desktop much like a screencasting tool such as Camtasia. This functionality requires Kwin’s composition mode to be enabled (ie, you must be using Kwin’s desktop effects).

Below video shows where and how you can enable the video recording feature. Note this video was recorded using KWin.

Though it isn’ the best, Kwin’s video recording plugin works pretty well, but its just a basic thing.  As of now it cannot grab any audio.

Another quirk with this is that KWin saves the video recorded as a .cps file (some weird capsury format).  Before this can be view you need to recode this using a tool called cpsrecode. The quirk isn’t over yet. After recoding, I found that the video was flipped by 180 degrees and mirrored. This meant I had to use mencoder to correct it. To make this worse, mencoder can rotate only by 90 degrees at a time. Which means to get the final video you need to

  1. Recode this using cpsrecode
  2. Flip it by 90
  3. Flip it by 90 degree and mirror it

Found these rather tedious, so I chained all three to a single command, and with Mehul‘s help made it into a script.

So click on the link below, make the file executable by typing

chmod u+x recode.sh

To convert goto the directory where the recode.sh file is, and type

<br /> ./recode <input-file-name> <output-file-name>

Here is the script: [dm]2[/dm]

Sathyajith Bhat
Author
Sathyajith Bhat
Author, AWS Container Hero and DevOps Specialist.

Related

File Associations:Changing/Removing/Adding default applications for particular filetypes in openSUSE 11 & KDE 4.1
··297 words·2 mins
Tips & How-To's Applications Linux
Consider this situation. You have multiple programs installed for a particular file type. Now double clicking it opens an application, but you want it to open in another application. For example, you want your images to open in showFoto instead of Gwenview, so how do you go about doing this? Let me show you how to do so! First, launch KDE settings, by clicking on the K menu and then Configure Desktop.
[How-To] Enabling Font Anti-Aliasing (aka ClearType) in KDE
··119 words·1 min
Tips & How-To's Linux KDE
While going through some of KDE settings I found this simple way to enable Anti Aliasing for Fonts (also known as ClearType in Windows). This will definitely make your fonts more pleasing to look at. For this, just launch KDE settings - this is generally known as Configure Desktop in openSUSE or System Settings in Kubuntu. From there, Under Look & Feel, Click on Appearance. Navigate to Fonts, and under use Anti-Aliasing, choose Enabled from Dropdown box
Mounting & Accessing Windows Shared Folders on Linux
··206 words·1 min
Tips & How-To's Linux
Well recently I’d bought an external 750GB USB hard disk, as I was running out of space on my laptop. Now this drive requires an external power source, so I just cant lug it everywhere with my laptop in my room so I thought I’ll connect this to my other laptop, and share the drive (the other laptop is my office one, runs on Windows) and I could access this drive over WiFi.