<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Talk Unafraid &#187; Awesome Stuff</title>
	<atom:link href="http://www.talkunafraid.co.uk/category/awesome-stuff/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.talkunafraid.co.uk</link>
	<description>The (occasionally coherent) ramblings of a geek</description>
	<lastBuildDate>Thu, 09 Feb 2012 02:27:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>MythTV and Freesat</title>
		<link>http://www.talkunafraid.co.uk/2011/06/mythtv-and-freesat/</link>
		<comments>http://www.talkunafraid.co.uk/2011/06/mythtv-and-freesat/#comments</comments>
		<pubDate>Sat, 25 Jun 2011 17:01:54 +0000</pubDate>
		<dc:creator>James Harrison</dc:creator>
				<category><![CDATA[Awesome Stuff]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[dvb-s]]></category>
		<category><![CDATA[dvb-s2]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[mythtv]]></category>
		<category><![CDATA[satellite]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[stuffisawesome]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.talkunafraid.co.uk/?p=1333</guid>
		<description><![CDATA[Or- how to make TV worthwhile if you happen to have a leftover Sky dish on your house. So when I moved in to my current university digs, the previous tenants had left a few things behind. Notably, they&#8217;d had Sky. So we had a Sky box in the living room and a dish on [...]]]></description>
			<content:encoded><![CDATA[<p>Or- how to make TV worthwhile if you happen to have a leftover Sky dish on your house.</p>
<p>So when I moved in to my current university digs, the previous tenants had left a few things behind. Notably, they&#8217;d had Sky. So we had a Sky box in the living room and a dish on the wall. In the UK, if you want fast internet these days, you need Virgin Media. VM gives you cable TV in the bundle, so I didn&#8217;t want to pay for Sky. But Freesat&#8217;s got some nice stuff on it, including BBC HD and that sort of thing. So how about we get ourselves some free TV?<span id="more-1333"></span></p>
<p>Now, Sky uses the same satellite for the UK as a lot of Freesat stuff. So ignore the dish- all you need is to leave that bit alone, and make sure that you&#8217;ve got a cable from the dish LNB to somewhere you can put your PC. Where it&#8217;s pointed is probably 28.2 East, which has a bunch of appropriate satellites.</p>
<p>What you then need is a capture card. DVB-S is the standard for satellite, though DVB-S2 is used for some HD encoding (specifically, BBC HD is now on DVB-S2). DVB-T is for terrestrial stuff, and comes in on coax from a standard TV aerial &#8211; you can get combo cards, which will let you pull down extra stuff if you&#8217;ve got the coax feed. Stuff from your LNB typically comes on F-type cables/connectors, down 75 ohm cable. I have yet to find a decent UK supplier for patch or extension leads &#8211; if you know one, let me know.</p>
<p>The LinuxTV wiki maintains a huge list of hardware compatibility with Linux and capture cards, so check there before you go buy anything. I got a Compro S350 card, which works great for DVB-S &#8211; I&#8217;ve also ordered a Technisat S2 HD card, which should do DVB-S2, and I&#8217;m going to look out for a DVB-T card.</p>
<p>Now, we need to tie all this together next. So we need some software and a PC. The PC wants to be a decent spec &#8211; I&#8217;m using a Pentium 4 box with 768MB of RAM as my server, which is on the low end of things. A faster machine would be better, obviously, but it&#8217;s all I have to hand. I stuck a decent (GeForce 6600) graphics card in there, too. Fast CPU is the priority, really- we&#8217;re talking high definition decoding, encoding, transcoding and playback. If you&#8217;re on a budget, look into Intel quad-core chips (Q6600s, that sort of thing). Intel is the way to go wherever possible. If you&#8217;re doing this properly, high-end i7 would be my choice- that or a Xeon or similar. 6-12 core chips would be just the ticket. High-end (newer 8800 series and above) nVidia cards support VPDAU, which lets you offload video decoding and processing to the GPU.</p>
<p>The software to use is MythTV. I&#8217;m using a standard Ubuntu 10.04/11.04 (&#8216;Classic&#8217; mode on 11.04) install, and then installing MythTV atop that. On the server, just install the mythtv, mythtv-themes, xmltv and mythweb packages. On any other clients you can install the mythtv-frontend package, and optionally the mythtv-themes package. The client-server model of MythTV means you can combine backends and frontends to build your system. It&#8217;s crazy powerful in terms of flexibility. But the short story is, you can have a very nice TV system in very little configuration.</p>
<p>See this <a href="http://parker1.co.uk/mythtv_freesat.php">excellent guide</a> for more information on how to set up MythTV with Freesat. Basically you just need to tune it in to the right satellite and set up the input properly so it&#8217;ll get the channel list. MythTV&#8217;s config options take some getting used to, but it&#8217;s eminently doable. And once you&#8217;ve gotten everything talking, you have a -very- capable system.</p>
<p>So, well done to the MythTV team. One hell of a package, that&#8217;s for sure. And Linux DVRs are now in my mind far, far more capable than any other potential choice for DVRs. With MythWeb, I essentially have my own private little iPlayer- but for every single bit of Freesat&#8217;s programming. What&#8217;s not to like?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.talkunafraid.co.uk/2011/06/mythtv-and-freesat/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Audio tools for Linux commandline geeks</title>
		<link>http://www.talkunafraid.co.uk/2011/01/audio-tools-for-linux-commandline-geeks/</link>
		<comments>http://www.talkunafraid.co.uk/2011/01/audio-tools-for-linux-commandline-geeks/#comments</comments>
		<pubDate>Sun, 23 Jan 2011 12:10:13 +0000</pubDate>
		<dc:creator>James Harrison</dc:creator>
				<category><![CDATA[Awesome Stuff]]></category>
		<category><![CDATA[Code Snippets and Examples]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Radio]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[insanity]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.talkunafraid.co.uk/?p=1224</guid>
		<description><![CDATA[At Insanity I&#8217;ve been doing a lot of things with audio. Clearly me being me, I wasn&#8217;t doing this using Windows &#8211; we&#8217;ve now finally made it to 50% Linux, 50% Windows at Insanity and I plan to keep nudging things in the Linux direction for ease of maintenance and use, and because it&#8217;s just [...]]]></description>
			<content:encoded><![CDATA[<p>At Insanity I&#8217;ve been doing a lot of things with audio. Clearly me being me, I wasn&#8217;t doing this using Windows &#8211; we&#8217;ve now finally made it to 50% Linux, 50% Windows at Insanity and I plan to keep nudging things in the Linux direction for ease of maintenance and use, and because it&#8217;s just _better_ for doing audio things with. What do I mean by that, though?</p>
<p>Well, here&#8217;s one thing- there&#8217;s so many fantastic audio editing, production and routing tools for Linux. And even better, there&#8217;s loads that can be run on a command line, without needing a desktop computer- so we can do audio processing on our server hardware, of which we&#8217;ve got plenty. But they&#8217;re a bit hard to find so I figured I&#8217;d just do a quick summary of the top few tools we&#8217;re using that you might&#8217;ve heard of, and a few you probably haven&#8217;t. So, in no particular order&#8230;</p>
<h3><span id="more-1224"></span>sox</h3>
<p>sox is an awesome little tool which bills itself as the swiss-army knife of audio tools. It&#8217;s not far off, either. While it&#8217;s not so great on the format support side of things, this little thing can do pretty much any common operation you want it to do (and a few not-so-common ones). We&#8217;re using it to automatically split up hour long MP3 files into half-hour chunks, as well as using it for trimming silence off audio and performing companding on audio before things get imported to our playout system. We use ffmpeg to get things into WAV for it, though.</p>
<h3>ffmpeg/ffprobe</h3>
<p>ffmpeg is one of those legendary tools. This thing will read anything and lets you seamlessly turn it into anything else. I&#8217;ve thrown the nastiest, strangest and most obscure files at this thing and had it spit out completely usable WAVs time after time. Learn to love this puppy. Oh, and it&#8217;s fast, too. ffprobe is it&#8217;s companion tool, able to quickly give you the rundown on any file and return metadata.</p>
<h3>exiftool</h3>
<p>If ffmpeg is the king of reading audio data, exiftool is the queen of metadata. While it&#8217;s aimed mostly at image files, it&#8217;s also incredibly good at pulling useful metadata out of various formats stored in audio files- MP3 ID3 tags, AAC metadata, you name it. We use this to get metadata out of pretty much anything and normalize it into MP3 ID3 tags for our playout system, which can&#8217;t recognize much unless you spoon-feed it in the right format.</p>
<h3>mp3info</h3>
<p>A blissfully simple little tool for querying and writing MP3 ID3 tags. Very handy, fast, and simple. What&#8217;s not to like?</p>
<h3>JACK</h3>
<p>JACK, the Jack Audio Connection Kit is yet another one of the more well-known tools. Capable of routing audio signals inside a virtual patchbay it&#8217;s very powerful, and we use it extensively all over the place. NetJACK is an interesting development that is really starting to take shape now, and is one to watch in the coming years. JACK is supported by tons of stuff, including a lot of the software aimed at the broadcast and professional audio crowd.</p>
<h3>jack_meter</h3>
<p>jack_meter is a really nice little script that can do command-line monitoring of levels on a given set of JACK ports. It&#8217;ll draw you a nice little meter, or spit out numerical information. We&#8217;ve actually now got this hooked up to a Nagios script to check to ensure our self-operated studio is in the right ballpark levels-wise and isn&#8217;t driving the net TX system overly hard- works a treat!</p>
<h3>rotter</h3>
<p>Not so handy for _everyone_, but certainly has its place. Rotter is a recording of transmission tool, intended for radio stations and other people who want to make a continuous recording of an audio source (using JACK again) and store it in files split up based on a fairly flexible partitioning system. We&#8217;re required to do regulatory logging and such, and this is used for both that and for presenters who want to make podcasts of their shows &#8211; and this is a darn sight cheaper (and better!) than the £1500+ commercial products to do this.</p>
<h3>audacity</h3>
<p>Okay, not a command-line tool, but it&#8217;s by far one of the best audio editors out there right now, in my opinion matched only by Pro Tools for just doing quick and simple composition and editing of assets. And since it&#8217;s crossplatform and free, the presenters can take it home with them and work there instead of having to use our production room to do simple edits!</p>
<p>I&#8217;m sure I&#8217;ll remember a few after I post this but that&#8217;s certainly a good start. Do you have any tools you couldn&#8217;t live without for audio processing?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.talkunafraid.co.uk/2011/01/audio-tools-for-linux-commandline-geeks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arduinos and Telemetry for Radio</title>
		<link>http://www.talkunafraid.co.uk/2010/11/arduinos-and-telemetry-for-radio/</link>
		<comments>http://www.talkunafraid.co.uk/2010/11/arduinos-and-telemetry-for-radio/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 02:47:22 +0000</pubDate>
		<dc:creator>James Harrison</dc:creator>
				<category><![CDATA[Awesome Stuff]]></category>
		<category><![CDATA[Radio]]></category>
		<category><![CDATA[am]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[fm]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[insanity]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[radio]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[snmp]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[stl]]></category>

		<guid isPermaLink="false">http://www.talkunafraid.co.uk/?p=1164</guid>
		<description><![CDATA[So, those of you who come here expecting EVE Online content &#8211; well, this blog started out as a personal blog and that&#8217;s all it ever has been. I&#8217;ve moved on, so here&#8217;s stuff on what I&#8217;ve moved on _to_. Recently I&#8217;ve been building equipment for Insanity Radio, the student radio station where I currently [...]]]></description>
			<content:encoded><![CDATA[<p>So, those of you who come here expecting EVE Online content &#8211; well, this blog started out as a personal blog and that&#8217;s all it ever has been. I&#8217;ve moved on, so here&#8217;s stuff on what I&#8217;ve moved on _to_.</p>
<p>Recently I&#8217;ve been building equipment for Insanity Radio, the student radio station where I currently serve as Head of Technology. We&#8217;re a student radio station and this poses lots of problems to successful technology implementation:</p>
<ul>
<li>Cost &#8211; our budget is very small, and mostly goes on licensing fees to PRS/PPL/MCPS.</li>
<li>Reliability &#8211; the station as a whole has to be able to operate unattended for months at a time over the summer holidays</li>
<li>Ease of operation &#8211; the station is typically only crewed in the live segments of our programming by the presenters doing their show. We have no full-time or on-shift producers or crew</li>
<li>Ease of expandability, upgrades and maintenance &#8211; the technical staff of the station changes on a year-by-year basis</li>
</ul>
<p>Bearing all these in mind we have to be careful when implementing new tech or building new systems that we don&#8217;t make anything that the technical staff after us won&#8217;t be able to handle, and which (where relevant) can be operated by an unskilled user.</p>
<p>We&#8217;ve recently been granted a FM license by Ofcom, and are currently waiting on lots of paperwork and things to be done so we can get the ball rolling on that particular project &#8211; namely, setting up a complete FM STL and new transmission system. Of course, the transmission system is something we&#8217;re getting outside broadcast engineers with a lot more experience than us to do (namely Radica, who did our AM mast many years ago). But facets of the system- namely, the STL (Studio-Transmitter Link) and telemetry (allowing us to, via remote operation pins and monitoring outputs on equipment, remotely monitor the status of equipment and control equipment where needed) can be done without needing to splash out on consultants. In fact, most of the solutions you can buy off-the-shelf for transmission site telemetry are quite restrictive, using proprietary protocols that only work with the supplier&#8217;s software. In my mind this completely doesn&#8217;t fit the bill for a telemetry system. What you basically need is an open, non-proprietary protocol that you can use to query devices.</p>
<p>Is this sounding familiar? It should be &#8211; datacenters got this problem solved years ago. And the networking industry came up with SNMP. It&#8217;s extensively used on switches but also on UPSes, environmental monitoring gear, and more.</p>
<p>SNMP is the Simple Network Management Protocol and it supports a very flexible schema for remotely monitoring equipment. And somebody&#8217;s rather handily built a library to run on an Arduino microprocessor platform with an Ethernet shield for the TCP/IP component.</p>
<p>Now, going back to the issue of cost &#8211; £30 for the Arduino Mega and £40 for the Ethernet shield brings us to £70 per node. But now to interface with all that gear we need pull-up resistors (trivial), relays (not so much &#8211; £4 each for DIL mounting reed relays) and optoisolators. All of which brings our total cost closer to the £100 mark once we&#8217;ve bought all this and soldered it up on to a breadboard and interfaced it all. In theory. I&#8217;m currently working on an Arduino Shield to provide the relay and optoisolator etc outputs on screw terminals, and I&#8217;m looking to get the PCBs made by BatchPCB.</p>
<p>I have yet to actually build one of these nodes but plan to do so soon as a proof of concept. We have roughly 125 pins of I/O from our mixing console to interface (mostly on 25 and 15 pin d-subminiature connectors), 15 pins of I/O on our silence detector, 15 pins of I/O on the AM transmitter, and soon we will have an entire remote transmission site to monitor. The first one of these devices will be a proof of concept, and hopefully will pave the way to future development of this sort of technology.</p>
<p>Of course, the huge benefit of SNMP is that it can be tied into anything. Let&#8217;s go back to the reliability and ease of operation points in the list above &#8211; we&#8217;re now using Nagios for monitoring all of the station&#8217;s IT resources (Not a small challenge in and of itself), and we&#8217;ll be expanding that to cover the STL and network itself. Now imagine we can bring hardware and environment into Nagios &#8211; now we have complete monitoring, end-to-end, from the studio playout computer being happy and running the radio playout program, all the way to the transmission site, all in one open and extensible monitoring system. No proprietary systems, no vendor lock-in, nothing &#8211; just a flexible and reliable system that many people are already familiar with.</p>
<p>There&#8217;s another huge benefit of keeping things flexible, of course. We&#8217;ve recently installed a set of RGB LED lights in the studio, as well as a LED matrix display. These are driven by a pair of Arduinos hooked up to serial over USB on our monitoring PC. We can have the monitoring software feed presenters information, or set the lights to indicate problems. This has already yielded fruit &#8211; we have the silence detector alarms hooked up so the lights go red when presenters are being so quiet (ie getting their levels wrong) that the studio fails over to a backup playout system. This quick visual feedback has provided presenters with real instant feedback on their show and lets them correct a problem, rather than the issue going unnoticed. In the world of student radio that means you&#8217;ve now saved several phone calls and potentially large swathes of missing content, not to mention made presenters happier because they now get positive feedback when everything&#8217;s going well! Lots of small steps like this can lead to big changes in the professionalism and quality of shows and allows presenters to be more daring and experimental in their shows, meaning better and more interesting shows and content. And if that&#8217;s not a huge success for a few simple additions, I don&#8217;t know what is.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.talkunafraid.co.uk/2010/11/arduinos-and-telemetry-for-radio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

