Category Archives: Useful Things

Recording a Jitsi conference

Remember: recording a conversation without other people’s knowledge is illegal in the UK (and elsewhere).

There’s a decent guide to setting up streaming Jitsi with YouTube already – but as I wanted to take just the audio and post it on our internal blog there were a few extra steps required that took me a little while to put together.

  1. Download ffmpeg command line tools.
  2. Download Audacity (if you think you’ll need to do some basic editing).

There are a few tools for ripping from YouTube, I use this plug-in as it does audio straight away: YouTube Video and Audio Downloader. It needs to know where ffmpeg is installed in the setting panel.

You will need to wait a few hours before you can download the audio – the video can be private, but it seems like YouTube need some time to process it first.

At this point you can use the raw file you’ve downloaded, but if you need to edit it at all you can use Audacity. First use ffmpeg to convert to a WAV file.

ffmpeg -i "downloaded audio file.m4a" newfilename.wav

Then open that in Audacity and make any changes you want to (for e.g. trimming beginning and ending of meeting). Export audio and you can save it as another WAV file. ffmpeg can then convert to whatever format you decide to use.

ffmpeg -i edited.wav finished.m4a

I actually convert to a mono recording in Audacity as well then you can make the target file smaller using ffmpeg commands like:

ffmpeg -i edited.wav -b:a 64k finished.m4a

There are good instructions for encoding as MP3 and AAC (which is the .m4a codec) on the ffmpeg website.

Canvassing – a packing list

Last weekend I went canvassing for the first time – here’s are some good things to bring:

  • Charged battery pack with multiple cables (everyone’s phone was dead!)
  • Light waterproof / umbrella.
  • Blu-tack for posters / give out with posters.
  • Bottle of water.
  • Backpack for above and extra leaflets.
  • Comfortable shoes

Productivity lunch’n’learn

Here’s a great Scott Hanselman talk about productivity – he’s been giving it for a while so there are a lot of versions out there, however this is probably a good balance between length / audience interaction and sound quality.

It’s not directly development related but was received really well by the team here.

Splitting/cutting an m4a or FLAC file

Every so often I have an audio file that I need to break into sections. With more files coming as .m4a, the various GUI options I’d used before no longer work.

Now I’ve found a method that doesn’t need a GUI – use command line ffmpeg to split these files. The basics I found from a superuser question that was automatically breaking a file into smaller pieces. Taking out the Ruby sections, here’s the useful snippet.

ffmpeg -ss 1:01:42 -i c:\Data\temp\in.m4a -vn -c copy -t 1:00:00 out.m4a

  1. The first time (1:01:42) is the start time of the cut.
  2. -vn means that only the audio stream is copied from the file.
  3. The second time (1:00:00) is the duration of the cut. It can be longer then the length of the whole file.

Note that the cut is made at the nearest point to that time that the stream allows, so it might be a little out.

For FLAC change to “-c flac”.

Get rid of black menu bar on HTC One/Desire phones (X/C/S/V, yadda yadda)

Black bar on htc one x

If you have a recent HTC phone then you probably find that there’s often a big black bar across the bottom of your screen, taking up space you spent hard cash on getting.

In a way, HTC were doing the right thing and the apps were supposed to change so that it wasn’t necessary. Other manufacturers kept the menu button, though, and so the apps never got changed.

To fix on One X: Slide down the top menu and get to Settings (in top right). Select Display, gestures & buttons, then Recent apps button, then you can choose to either change that button to be the menu button (“Press for menu, press and hold for recent apps”) or you can hold it down to get to the menu (“Press for recent apps, press and hold for menu”).

By the way, if you want a screenshot on an HTC phone, hold the power button and press Home. It should let you know that it’s worked as well.

Seeing Russell Howard’s Good News live recording

Brilliant seats to see Russell Howard’s Good News last night from – tickets really go to the fastest responders to the newsletter as far as I can tell. Update 2013: I’ve not had as many e-mails from them recently, you may have to follow them on Twitter now.

I thought I’d write up the format of the show a little bit in case anyone ever searches for it and wants advice on when to arrive and stuff – because I’ve previously tried to get there and I was turned away.

The doors say 6, but we weren’t sat in the studio until gone 7 – there was a lot of outside waiting. There are nearby shops – people had MacDonald’s, Subways, Costa Coffee stuff.

The seats we got were in no way linked to when we arrived – we were two-thirds of the way back in the queue but were seated in the second row – although quite a bit off to the right so  I suppose there were bits of the show we didn’t really get to see.

There is an audience reaction camera which is on the right hand side of the audience as you look at the stage (i.e. where I was). The boom camera (jig?) is also on this side, so it doesn’t really get any shots of you (you’re beneath it).

Outside of half term, I arrived at 4:45 and I reckon they were turning people away at 5pm. The previous time I went it was half term and it looked like you had to arrive really early to get in.

The sticker person was there by that point and not particularly happy that people had popped off to the shops so best wait until you’ve got your stickers.

They prefer you to print your tickets out but it is possible to show them on your phone if you let them know you’re going to do that in advance.

Toilets impossible during the show but they are available while you’re queueing – go to the front of the queue and follow the road to studios.

If you have travelled a long way and you didn’t get in, you might ask them for priority tickets as it sounded like some of those holding priority had done that.

Running order: Run through of the show. Mystery guest. Mystery guest callbacks. Stand up. Callbacks. Trails.

Russell Howard is a very funny man and it’s really nice to see a performer interacting with audience when possible – his talents as a compere work really well for this show and it was good to hear him make NSF-TV jokes up and share them with the audience. Then back up and record one that can be broadcasted. I suppose you get that sense from the odd “this won’t be on telly” comment on the TV shows but there’s quite a bit more of that than is shown.