Record your desktop

[I've written elsewhere about video screen capture (a.k.a. screencast) applications. This is KDE4 specific.]

If you’re using KDE4 and have found the screencast feature ( System Settings > Desktop > [All Effects] : Video Record) you’re probably wondering how to play the files it produces. By default (during your KDE4 session) when you toggle “Video Record” mode on and then off with Ctrl-Meta-V it drops a file called kwin_video1.cps into your home directory which none of my video player apps could read - mplayer complained about avisynth.dll, but this doesn’t appear to be the real problem. The file is in the format used by captury, just don’t ask me why.

Playback your KDE4 “Video Record” files

You’ll need a couple of things:

mplayer OR vlc (or anything that can play y4m, a.k.a YUV4MPEG2 files)
capseo (just apt-get install it, it provides cpsrecode)

Then, if you’ve a faster machine use:

cpsrecode -i kwin_video.cps -o - | mplayer -

On my Athlon 1.1GHz that doesn’t do anything. Instead I need to transcode the file first and then play it.

cpsrecode -i kwin_video1.cps -o kwin_video1.cps.y4m

Note that cpsrecode’s man page also gives the option to transcode to “Theora” (using switch “-c theora”) but this didn’t work for me initially, failing with

ERROR: Unsupported output codec: theora

I then tried installing ffmpeg and ffmpeg2theora, neither cpsrecode nor ffmpeg could do the conversion still. Though you could convert the raw output from the .y4m file if you wished using ffmpeg or mencoder or something (thanks to Harald Sitter for this line).

cpsrecode -i kwin_video1.cps -o - \
| mencoder - -o
kwin_video1.avi -ovc lavc -lavcopts vcodec=xvid:autoaspect=1

Hope that helps.

Update:

This doesn’t work at all for me on my main computer (a dual core athlon) running Kubuntu. I get the .cps files made but cpsplay isn’t finished:

user@localhost:~/Videos/screencasts$ cpsplay ./kwin_video2.cps
error: This piece of cursed code is under development!
Please use `cpsrecode movie.cps | mplayer -` to view your movie.

and cpsrecode doesn’t operate (don’t use their suggestted code either, it’s the wrong format, see the man page or read above). The test binary cpsinfo reports the file size and resolution information however:

media:             : ./kwin_video2.cps

video:
frame width      : 1680
frame height     : 1050
frame scale      : 0
fps hint         : 30

cursor
present          : likely

Seems “Video Record” is not yet ready for service. Wonder why .cps was chosen.

Mouse spins player instead of normal movement

When I started Enemy Territory: Return to Castle Wolfenstein (ET:RTCW) everything came up fine but as soon as I entered a server to play an online game then the mouse would mess up. Basically any movement would cause the character on screen to spin / rotate / turn around on the spot without being able to look up and down. The games pretty tricky if you can’t look up from the ground!

/seta in_dgamouse 0

in ET console seems to do it, also when I have console open I can then switch apps (without a minimiser app running) cool!—

That does fix it, but it’s not actually the dgamouse that doesn’t work! Setting as above makes the mouse jumpy and hard to control. All I actually need to do is

/seta in_dgamouse 1

which is strange in that it doesn’t change the dgamouse state - but it fixes things. Also to move between apps and ET I use CTRL-F1 (etc.) to move desktop then I can alt-tab into ET. When ET resumes a new map it grabs the pointer so you have to CTRL-F4 (or whatever) to bring up ET, then open console with “backtick” (next to number 1 key near Q) then you can click on the application bar to choose the app you wanted to switch too … it’s a pain in the butt, but better than not being able to switch.

Enemy Territory cfg (config) files

I’ve now entered

/set in_dgamouse 1

into a otherwise blank file at /installation/directory/enemy-territory/etmain/autoexec.cfg and the fix is now applied on loading.

Short version: Alt-F3, M, then use cursor keys.

Alt-F3 enters the “window menu” or “window configuration menu” for the currently focussed application / program.

M is the underlined letter in Move, this will then bring up the “compass” cursor over the window to be moved.

Cursor keys - up, down, left, right - then move the window around.

So can I take someone else’s hard work from Wikipedia - though it’s probably lots of peoples light work - and paste it into Google’s Knol, add some adwords and make a huge steaming pile of cash? Not likely.

From Wikipedia, GFDL (Text of the GNU Free Documentation License (GFDL)):

“You may copy and distribute the Document [wikipedia article] in any medium, either commercially or noncommercially, provided that this [GFDL] License, the copyright notices, and the license notice saying this License applies to the Document are reproduced in all copies, and that you add no other conditions whatsoever to those of this [GFDL] License.”

As for modifications:
Read the rest of this entry »

Posted in copyright | 1 Comment »

The Times [of London] are reporting, 23 July 2008. that a new trojan is now making waves in the UK having already hit US sites:

Eastern European hackers are suspected of placing the Asprox virus on more than a thousand British websites, including those run by the NHS and a local council, in the past two weeks. [...] Last week, Asprox infected the Norfolk NHS website, used by thousands of people a day. Hackney Council’s website was one of 12 local council websites also compromised, meaning that anyone logging on to pay a parking ticket or council tax was at risk over a three day period. [...] In the US, the virus has successfully penetrated mainstream sites belonging to Sony’s Playstation, the city of San Francisco and Snapple.

Asprox is an automated SQL injection attack that Read the rest of this entry »

I hate that .. when organisations (the biggest offenders I see appear to be the .gov.uk sites) don’t do their redirects properly.

I always just type the root domain, example.com. But for sites that I manage I choose “www.example.com” to be canonical - mainly because in print it’s best to use the www. address as it’s easy to pick out as a web address. For .com’s this isn’t as important as for .org or .net, IMO, as nowadays most people recognise that “.com” refers to a website.

Under  Apache this is easy, add this to your .htaccess file in the document root:

Read the rest of this entry »

Hmm. I thought that the bar was pretty low for using the internet nowadays. Clearly people no longer need to find the button to switch on the computer …

An AOL Living website (they have a blog called ParentDish which I frequent) gives advice on such tricky tasks as cooking marshmallows (”Smores”?) and unpacking a Chinese takeaway and putting it on a plate. Advanced readers wanting to learn a trade can make furniture.

The overly smiley pair on the video entreat us that “we discovered this by chance” … pile up some books and put a piece of flat wood on top, voila, a coffee table. Not exactly penicillin is it.

Google Calendar - Newport school term dates

I’ve been getting acquainted with Google calendar and it’s features and to be honest I’m pretty impressed.

For Barefoot Ceramics pottery painting studio I’ve created a Google calendar with Newport City Council school term dates (as taken from their website) up until 2010. Hopefully, having made this a public view calendar, it’ll be useful to someone - parents with pda’s? other business folk wanting to track school holidays. I shall probably add the standard diary dates too, Easter / Hannukah / Christmas / &c..

iCal format export and import

Having created several calendars now I feel I’ve got the jist of it’s limitations and benefits. It’ll be great, I think, for use as a collaborative calendar tool - not least because it does (slightly hidden away but otherwise effortless) import and export of .ics files (iCal format).

So if you’d like the Newport, South Wales, school term dates until 2010 in iCal format (.ics) then hit up the link OR use the above link to see the public view. To add teh calendar to your own Google Calendar, click that little “+Google Calendar” icon at the bottom-right …

Smart AX MT882 ADSL modemJust taken receipt of a Smart AX MT882 modem from TalkTalk (UK) which will hopefully give us broadband at our studio.

Initial research shows this is an Ethernet (browser based admin at 192.168.1.1) or USB (ditto, 192.168.1.2) model. A manual is available by searching for  SmartAX_MT882_V200R002C01B021_User_Manual.pdf with your favourite search engine or from DriverGuide by having a subscription or viewing ads.

That’s all for now, will add details later if I have any problems installing it. As it has an Ethernet port it should be a breeze compared to previous efforts with USB modems on Linux distros … should be!

Posted in admin, linux | 1 Comment »

I’ve a little note on my desk from last time I had to clean up a dodgy sermon recording. It was a spur of the moment idea to record onto the laptop, little did I know that the laptop had a built in microphone and so recorded not only on the line-in from the mono out (post-mix) of the mixing desk but also the hiss, flutter and buzz of the laptop via it’s own mic.

Here’s what I did in audacity to get a bearable result:

Read the rest of this entry »