Catalogue

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

Recode this using cpsrecode

Flip it by 90

Flip it by 90 degree and mirror it

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