Synchronizing baseball radio with TV part 2: the new season

Last year, I wrote a post about using linux and JACK to delay baseball radio broadcasts by 7 seconds in order to bring it into sync with the TV broadcast. Well, today’s broadcast is on FOX, so that provided all the encouragement I needed to get my setup working again. I have since upgraded my laptop, so I was expecting to spend another seven innings getting JACK to work again.

Luckily it was much easier this year. All I had to do was start JACK like this:
pasuspender qjackctl

On modern versions of linux, there’s a system program called “pulseaudio” that normally takes care of all the sound on the system. JACK isn’t compatible with pulseaudio, so it’s necessary to disable pulseaudio while jack is running. Thankfully there’s a little program called “pasuspender” that disables pulseaudio while a specified program is running. So the command above disables pulseaudio while jack is running.

After that, I just had to reproduce the various connections in the screenshot I posted and it all worked. No special kernels, no editing of security files. Phew.

PenguinTV 4.0

I’ve released a new stable version of PenguinTV, my RSS reader / podcast downloader / media player thing. I really don’t have a lot of time and energy to do proper releases these days, so it hasn’t been tested as well as it should have.

The real reason for doing this release is that there’s a lot of massive code refactoring that I want to do, but I can’t do it without introducing instability. It makes sense to finally release 4.0 before I make a clean break and start screwing around with things.

I’m past the point of trying to push really hard to sell this application to other people, because as long as it works for Char and me that’s all I care about. I spent years making posts, trying to get contributors, etc, but no one seemed really interested in giving it a chance. If someone else finds it useful, good for them.

Building an Online Suite: Mac Pro Card Slot Fun

In creating my online suite, I am attempting a feat which many say cannot be done: creating a system that can run both Avid and Final Cut. Furthermore, I wanted to have Avid and Final Cut hardware installed on the same machine — Mojo DX for Avid and AJA Kona for Final Cut.

This type of hybrid system is not for the faint of heart. Video editing is a high-performance activity, and the editing packages are very picky about what software is installed, which versions, and how the hardware is set up. I was able to get everything running fairly easily, but the question is, is it running well or just limping along?

For instance, when I first set up the system, I thought everything was working just fine. Avid was working handsomely, Final Cut seemed to be working ok, and my disk benchmarks showed that my hard drives were working very quickly. However, I found out that external video playback in Final Cut was very poor. The video image on my external monitor would lag behind the desktop window by several seconds. This evening, I discovered that I couldn’t capture more than 2 minutes of high-quality video (1080i uncompressed) into Avid without throwing up an error. Clearly, the two sides of this black and white cookie were not getting along1.

Both of these problems stemmed from hardware issues, specifically card slot configuration. The Mac has four slots inside it where one can install hardware cards. Two slots are extra-fast “16x” slots. The others are slower “4x” slots. But even then the two 16x slots are meant for different things. For instance, Slot 1 is for the graphics card. And tonight I found out that the 4x slots aren’t identical either.

Because of all the hardware I have (3 additional cards), there are 6 possible combinations for how I can install them. Trying each combination entails 15-20 minutes of rearranging cables and fastening tiny screws, and then another 15-20 minutes of testing. This is on top of the hours of troubleshooting to discover that, in fact, card slot arrangement was the source of my problems.

At this point I feel like I’ve tried all six. My first arrangement was like this:

  1. 16x: Graphics
  2. 16x: RAID
  3. 4x: Kona
  4. 4x: Mojo

Both the Kona and Mojo claim to be 4x devices, so I put them in the 4x slots. I wanted my storage to be as fast as possible, so I put that in the 16x slot.

But, I was getting these problems. Working with my colleagues on twitter, I discovered that the Kona card really wanted to be installed in Slot 2. Once I moved it there, my monitor playback in Final Cut was fixed. So for a couple months, I’ve had the cards arranged like this:

  1. 16x: Graphics
  2. 16x: Kona
  3. 4x: Mojo
  4. 4x: RAID

But then, my Avid problems. Well tonight, I found an obscure document that revealed that the Mojo card wants to be in Slot 2 or 4. Of course since I had it in slot 3, I had to move it again:

  1. 16x: Graphics
  2. 16x: Kona
  3. 4x: RAID
  4. 4x: Mojo

Now, finally, I think I’ve nailed the right order. Avid is able to capture long clips in high quality, Final Cut plays back correctly, my RAID is still reporting very high read and write speeds, and nothing else has exploded (yet).

Moral of the story: If you can afford to have separate machines for Avid and Final cut, yeah, it’s probably wise to do it that way. I wouldn’t want to pay myself for the hours I’ve put in to fixing these issues. But for those adventurous-types, combining the two is not impossible.

  1. That’s right, I’m making a goddamn Seinfeld reference. []

Hurray for open source!

In 2001, I filed a bug for the Evolution email client because one of the email filter actions, “forward to email address,” didn’t work. Today, 8 years later, it got fixed. I don’t even remember exactly what I was trying to do, but I seem to recall others telling me to “just do it with procmail.” I know that if Apple Mail or Outlook was missing this feature there wouldn’t be a bug database to lodge the problem in the first place, but I also suspect that Mail or Outlook wouldn’t have overlooked such an obvious feature in the first place. That’s the open source conundrum for you.

Thanks to Milan Crha for finally closing it out.

Building an Online Suite: Almost done

Aside from the desk and some simple things like an end table and filing cabinet, my edit suite is done. I’ve already had one client in to do an HDCAM output, and other than my own ignorance of 720p issues, everything worked as expected. Other than my desk, I just need to take care of various paperwork and my company website.

The room turned out just like I wanted. It’s nice and quiet inside the edit suite, and the light is pleasing. All the equipment is hidden in the next room where I can get at it easily. One sucky thing is that I don’t have a rack, so inputs and outputs are spread across the back of the Mac Pro tower, the Mojo DX, and the loose Kona cables. I can probably solve that problem with some short BNC cables and female / female adapters. Then I’ll have short extension cables that I can bundle together and hook up as necessary without crawling around the back of the machines.

Everything up and running, still on a cheap desk

Everything up and running, still on a cheap desk

closer up image of work area

closer up image of work area

equipment in the next room

equipment in the next room, connected to HDCAM deck off-screen

Building an Online Suite: Early Messy Progress

Today I went to my new online room and started piecing things together. A lot of my gear has arrived, and now I’m just waiting on the major pieces of equipment from my reseller, and the desk. The desk will be the very last thing to arrive (end of January), so it’s going to look crappy for now while I use a temporary desk.

And here it is:

Wide view of temporary editing desk

Preliminary editing setup

What a mess. Here you can see the small, temporary desk I’m using for now, and the two Samsung desktop monitors. I also need room for the grading monitor and scopes. You can also see the chair I got, which is a used Aeron I scored today. I’ve resisted Aerons for a long time because I felt they were the symbol of all that was wrong with the dot-com era. But that was the year 2000, and 8 years later everyone still recommends the Aeron so I broke down and finally gave in. What I really like is that it has a feature that lets you either lock the back upright or allow you to recline. While I’m working I can lock the chair, and when I view cuts I can recline. Ahhhh.

You can also see a stuffed penguin1 and some other desk tchotchkes.

The RAID

8TB RAID, with one spare drive

Lifezero RAID and accessories

This is my LifeZero RAID, echoblack variation. It consists of a ProAvio Editbox 8MS, 8 1TB drives, and a RocketRaid 3522 hardware RAID card2. The target price for a LifeZero RAID is 2K$, but I decided it was ok to go a little higher than that by getting better-quality drives. The drives I bought are 1TB Hitachi 7K1000’s, which has a reputation as being a benchmark high-performance drive even though it’s a couple years old.

I also bought one extra drive as a spare. If a drive dies in a few years, it’ll be next to impossible to find the same model of drive so I would probably have to get something “similar” and hope everything works out ok. Instead, by spending an extra 110$ on a drive now, I have a nice insurance policy that should help extend the life of the RAID.

I ripped open all the packages, screwed the drives onto their rails, and inserted them into the enclosure. Even though I don’t have a computer to connect it to, I powered it up just to see what would happen. It did not explode. All the lights lit up and it’s extremely quiet. This is going to be fun!

Other bits and pieces

Aside from the RAID, I also took care of some little issues. The free couch I got was looking a little dirty, so I ripped off the cushions so I can wash them. They’re in the drier now :)

couch with removed cushions

laundry day, or pillow fight aftermath?

There’s also a window near the ceiling letting in ugly fluorescent light from the rest of the office, so I blocked that with a hi-tech rectangle of cardboard. It’s not as hideous as it sounds:

cardboard blocking a window

Sophisticated light blocking device

The room is still a mess, but I can start to see the editing suite underneath it all. Within a week or two I should get all of my equipment delivered, and then I can really start to set things up.

  1. more on that in a later post []
  2. I’ll post a more complete analysis of the RAID once I get the rest of the system []

Designing an online edit suite: An alternative desk

My last post was a good attempt at brainstorming how my new video editing desk should look. Unfortunately, the guy at Home Depot constructed the quote incorrectly, and didn’t include a 7.50$ charge for every linear foot of countertop for finishing the edges. Using the correct numbers, my previous design would cost 400$ more than I thought.

That put the price was back up to 1000$, which is just too high for a self-built desk. It was time to rethink the complicated concept of the strangely-shaped desk with wings. I recently went back to Powderhouse to do some work in their online suite where they just have a basic rectangular desk that’s 7 feet wide and 3 feet deep with a riser. I’ve been using that desk for close to four years now, and despite the square shape it works well.

The only problem with that desk is I can’t rotate the CC monitor as far as I’d like. It’s an older CRT model1, and CRT monitors are big, heavy cubes. The riser is 18″ deep, but even that depth isn’t enough to rotate the monitor properly. As I spin the monitor, the feet on the bottom quickly fall off the edges of the riser. I won’t have that problem in my suite because my CC monitor will be a shallow LCD panel on a swiveling base. I went home and created a new, simpler design nearly identical to what I’d been using at Powderhouse. Using the new, more accurate numbers I had from Home Depot, I got a total price of $600 or so.

About this time, another option presented itself. Char told me that just up the road was a furniture liquidators store — they have thousands of square feet of warehouse space and buy old cubes and desks from companies for reselling. Although standard office furniture doesn’t work right for me, the company also fulfills custom quotes. I took a short drive up the street2 and worked with the nice woman at the warehouse to draw up a design. What I got back was just what I wanted — the desk I’d been using all this time:

Custom desk design

Custom desk design

The price was higher than the Home Depot + Ikea option, but not by much, and I wouldn’t have to attach the legs or construct the riser myself. I only had a vague plan for nailing lengths of shelving together to make the riser, so having it included was a big plus. Furthermore, it’s a real desk, not a homebrew combination of countertops, legs, and lumber. It will be all black with matching legs. So I ordered the custom desk. It won’t be ready until the end of January, but it’ll be worth the wait.

Eventually I will need at least one side desk, but I’ve decided I can wait until the last minute to buy it. Unlike huge, editing-specific desks, small desks are a dime a dozen and can be had everywhere. When I need one, I’ll stop by Staples or Ikea and get it.

  1. “Older” does not mean “out of date.”CRT monitors are still considered the best for color correction because they produce extremely dark blacks, but they just aren’t manufactured any more. []
  2. it was very cold, or else I could have walked []

Designing an online edit suite, Part 2: Furniture and Space

This is my second post about my plans to construct an online editing and color correction suite for my own work.

As I suspected, this designed changed and the quote below is inaccurate. So, please disregard the plans contained within. Instead, check out the final desk I decided to purchase

Last time I talked about what computer equipment I would probably need in my edit suite. Now that I’ve got all this great (hypothetical) hardware, where do I put everything? I could just get a cheap desk and a folding chair, but that’s the wrong way to go. I need to work efficiently, and a plain rectangular desk is not the right shape for working with three monitors, a keyboard, and a tablet. I also can’t cheap out on the chair unless I want to get carpal tunnel syndrome.

I also have other reasons for not skimping on furniture. For a production, online editing and color correction are some of the highest dollar-per-hour expenses. The equipment is expensive, the labor is highly-skilled (IMHO), and the time-frame per job is short. Clients rightly want to feel like they’re getting their money’s worth. It’s hard to see where that money is going if the equipment is in another room, and watching someone use a computer is notoriously boring.

This expense is why million-dollar online rooms have track lighting, espresso machines, and leather couches. It’s similar to the broken-windows theory1. If I have a cheap desk and a broken couch, that implies I take the same attitude toward my hardware purchases — it’s probably a bunch of half-working cobbled-together junk. Sure, I could charge the client less if I didn’t spend so much on the decor, but the percentage of the budget spent on furniture is small compared to the hardware and software. Physical goods are more cost-effective than electronic, so a smaller amount of money goes a longer way.

The Desk

The most expensive piece of furniture is The Desk. Entire companies exist just for making media desks and furniture. These desks are very nice. They curve around, so the operator can look directly at all the monitors. They have risers, which provides more space for mixers, consoles, and other gadgets. They are also really, really expensive, like $3000+.

I want to hit a sweet spot — not a regular rectangular craigslist desk, but not a crazy-expensive professional media desk. My best option is to build it myself. I don’t have a CAD program, but I do have a vector-graphics program called Inkscape that is similar to Illustrator. I set my units to inches, and simply drew the room with a desk in it:

Desk drawing



For the monitors, tablet, keyboard, and chair, I drew rectangles the same size as the items themselves. I let these objects determine the size of the desk. Right now the space between the chair and the couch looks a little tight, but the couch and door are estimations2. The speakers are shown free-standing, but I may end up just putting them on the desk.

I wanted to get the wrap-around effect using simple shapes, so I started with a rectangular top and chopped the corners off. Then I can make two smaller wings that fit flush onto the diagonal sides. The wings may have four legs (so they can move), or I might give them only two legs and have them attach to the main desk. The riser consists of a simple bookshelf with some more board screwed and glued to elevate it.

I went to Home Depot3, and found they can make a custom countertop with a simple flat black finish for 14$ a square foot. I can get them to make the tops and then attach adjustable-height legs from Ikea to complete the desk. Adding everything up, this is what I get:

Note: I haven’t built this desk, so I may discover that the legs are no good or the particleboard counter needs reinforcement. This post is not sound construction advice.
Desk Tops:
per sqft w h
Main Desk $248.76 $13.82 72 36
Desk Wing L $55.28 $13.82 24 24
Desk Wing R $55.28 $13.82 24 24
Legs:
per leg # of legs
Main Desk $90.00 $15.00 6
Desk Wing L $30.00 $15.00 2
Desk Wing R $30.00 $15.00 2
Main Desk Riser:



Regular shelf $14.00
wood to rise $10.00
Main Desk Total $362.76
Single Desk Wing Total $85.28
Subtotal $533.32
Tax $26.67
Total: $559.99

Is 560$ too much to pay for a good desk? It’s half the lowest price I’ve been quoted for either professional edit furniture ($3000) or a custom-made birch desk ($1000). It’s only 5% of the cost of the rest of the editing suite.

Other than the desk, there are a few other basic things I will need, all of which I can get for free or are inexpensive:

  • Couch: I may have access to a free loveseat, and if it’s presentable and comfortable I’ll use that. Otherwise, Ikea to the rescue again!
  • Main lighting: I will probably bring my nice floor lamp from home, where I’m not really using it
  • Back lighting: I just need a small fixture to aim at the wall. This can be inexpensive because it’s hidden

The nice thing about this room is that the server room is on the other side of the wall. This means I can run the cables through the wall and put all of the computers with their loud, whiny fans in there, keeping the online room quiet.

  1. see also this dutch study. []
  2. Char insisted I include the cat for scale []
  3. I’m not even going to link to their web site, it’s worthless []

Designing an online edit suite, Part 1: Can I Afford It?

This is the first in a series of posts I’m planning that will cover the budgeting, design, and possibly even construction of my own online editing suite. The whole plan could fall apart if the income doesn’t justify the cost, but my preliminary spreadsheet-fiddling has been promising.

I left a staff position in September to become a freelance editor, and while I’m happy I made the switch, there’s one big problem I have: I don’t have my own editing suite. All I have is a copy of Avid that I use to edit my reel, and for basic editing that works fine. But the work I get paid for is color correction and online editing, and a dinky laptop is not powerful enough to handle that type of work.

So far I’ve been able to work around the problem by using my clients’ equipment. I have a tablet and monitor calibrator that I bring to the gig, and I spend a few minutes getting everything set up. Even so, this means the color is inconsistent because I use a different monitor every time, and often the process is slowed down because the system I’m using isn’t fast enough. And frankly, I’m picky about ergonomics, so I get frustrated when the chair is uncomfortable or when the light isn’t right. To do this work properly, I really need my own edit suite.

First and foremost, a fully-equipped online editing system is expensive. Can I get enough work to afford it? If I buy the system, will that allow me to do more work, or will I have to raise my rates to pay for it and therefore price myself out of the market? Taking advice from my girlfriend, I’m not going to let the price of the system determine how much work I need to bring in. I will try first to figure out how much work I can get, then see if that’s enough to pay the expenses. If the numbers don’t work, then I can’t afford the system.

Tasks

To know what I need to buy, I need to know exactly what I’m going to be using the system for. Based on the past couple months, I will continue finishing and grading independent projects in Final Cut and Apple Color, possibly outputting to various tape formats. I do not foresee working with high-res 2K 4:4:4 images, so I don’t need a super-fast RAID or the highest-end Kona card. Similarly, I’m not doing audio mixing, so while I don’t want tiny computer speakers, they don’t need to be stellar.

Taking all of this into account, I specced out the following system1:

Hardware
Mac Pro tower (dual-quad 3.0GHZ w/ 8g 3rdparty RAM) $4,000.00
Samsung 22” monitor $260.00
HP DreamColor monitor $2,500.00
E-SATA external 1TB drive $120.00
E-SATA cable and bracket $30.00
AJA KonaLH I/O card $1,300.00
Blackmagic Sync Generator $300.00
Wacom Tablet $500.00
Mouse and pad2 $23.00
Blue Sky 2.1 speakers $350.00
Behringer Audio Mixer $60.00
Power strip / cables $20.00
Software
Final Cut Studio $1,130.00
Magic Bullet Looks $400.00
Already invested $900.00
Total Additional Necessary
$10,093.00

This is just a rough back-of-the-envelope calculation. It does not include tax and shipping, for instance. But it serves to get me in the ballpark — 10 grand. That 10 grand, spread out over the lifetime of the various parts, comes to about 3700$/year that this system needs to bring in to justify itself.

There are choices I’ve made that might be surprising: is a DreamColor really good enough for professional color grading work? Is 1TB of un-RAIDed storage a good idea? Should I get an Avid Mojo DX so I can finish in Avid as well? Or should I just get The Duck?

Based on my experience, the DreamColor is a big step forward for LCD reference monitoring. It’s no high-end CRT, but for the price range I’m targeting it’s great. For most indie projects, 1TB of storage will be fine. As long as I back up project files, I’ll be working on duplicated media anyway. If the drive should die, the client will still have their own files. As for Avid compatibility, that’s up to the work I can get. Right now everyone is using FCP. But if I have to turn away Avid customers, I’ll have to consider the Duck or a Mojo DX.

What if I want to take it to the next level, though? What if I want to do Avid work, and uncompressed HD work? I’m going to need to add equipment:

Hardware
Second Monitor $260.00
LifeZero 4TB RAID $2,000.00
Upgrade to Kona3 $1,200.00
Blackmagic SDI to HDMI converter3 $500.00
Avid Mojo DX $7,500.00
Additional Cost $11,460.00

Ouch, double the cost. Have I complained yet about the high cost of Avid equipment? It’s really tough to justify a Mojo DX unless I get a big contract or something.

Now that I have an idea of what the system looks like, what about where to put it? There’s more to a suite than the hardware and software. My next post will cover room design, desks, and other environmental considerations.

  1. I’ve added links for price reference, but I will probably buy the whole package through my local reseller []
  2. I love these mice. They feel great, are cheap, and last forever []
  3. So that, with the Mojo, I can use the DreamColor as a reference monitor []

Elect-o-meter for linux

Boingboing had a neat post about an “elect-o-meter” that one could hack up — basically a plastic cup that glows red or blue depending on who is winning the election.

I don’t have the necessary hardware though, so I took the code and made a software version:

elect-o-meter

The purple will become more blue or more red depending on who is winning, and then when a winner is declared it will turn fully red or blue. Because the purples are very difficult to discern by eye, I print the actual percentages below.

Here’s the source code. Just run it on a Linux machine and it should work.