Categories
Uncategorized

PIY vs. Buy

Camera Mount

PIY stands for “Print It Yourself” which is a little like “DIY” but involves things you can easily print on a home 3D printer instead of buying.

Remember last year when I made this hot shoe audio mount? Well, a few months back we picked up a Zoom H4n to use for some DSLR shooting, and for the quick & dirty stuff it makes sense to just mount the Zoom on the camera. I just printed another one of my mounts, added two nuts and a bolt, and had one we could use. They’re cheap enough that I could probably print 10 of them so we have spares on hand if needed and still come in under $20.

HS-1

The story doesn’t end there though… at some point I was looking up specs on the Zoom and wanted to check out the accessories and came across the HS-1 Hot Shoe Mount Adapter. It’s basically the same as the mount I made, except it’s probably metal, and it’s about $20 for one of them.

So this time around it was the opposite of my GoPro Frame. For that one, I saw the frame on the GoPro web site and sat down to design my own. For the Zoom mount I ended up making my own before I even knew they had one.

This is the amazing world we live in now… where open source 3D modeling software allows you to quickly and easily design something, and open source 3D printers allow you to quickly and easily print them out.

PIY is the new DIY.

Categories
Uncategorized

A Guide to Video for Smart People

The Interview

Every now and then I see a post that talks about photography, and how many factors go into the cost of hiring a “real” photographer (and by “real” I mean “professional”) so for my own reference in the future, I wanted to write up my thoughts on the topic of shooting video. (For our purposes today, assume you’ll be shooting a few talking-head videos for a presentation.)

I’m calling this “A Guide to Video for Smart People” because someone very intelligent, who I greatly respect, hired me to do a video shoot. Since, we had to talk about pricing, I figured I’d share some of my thoughts.

1. When you hire a professional, you get a professional.
What is a professional, exactly? It’s someone who uses pro-gear, and has the knowledge to use it. Someone who has experience, and has done professional shooting before. Someone who knows about shooting, and lighting, and pacing, and talking to talent, and audio, and composition, and dozens of other things you don’t even think about because it’s second nature after a while.

2. Professionals use professional gear.
Everyone’s got a camera nowadays, but there’s more to shooting than a camera. For a typical interview shoot you might have a camera, lens, lights, audio recorder, microphone, studio headphones, tripod, stands, spare batteries, spare cards, spare XLR cables, reflectors, and a dozen other things you bring on every shoot. I’m not suggesting you need top-of-the-line everything, but even on the low-end it can be $2,000 for a basic set-up.

3. Professionals are thinking.
If you haven’t had the luxury of scouting locations, you might show up and get a quick tour of the location so you can pick a spot to shoot in. When I walk into a room, I’m looking at the layout, the lighting, determining where all the outlets are, looking at the height of the ceiling, figuring out where the tables and chairs can go, etc. If there are windows in the room, is it cloudy outside? How will the changing sunlight affect the lighting during the shoot? And that’s all before setting up the tripod.

4. Professionals respect your work.
Besides taking the shoot seriously and doing a great job capturing the footage, a pro-shooter will make sure your work is preserved. Anyone with clients will know that even though you might provide them with files, there’s a chance they’ll come back a year later (or five years later!) and ask for it again. For a recent shoot the raw footage came out to be about 9GB of data. After editing it was about 30GB of data. That all gets backed up, and archived, and managed so that you can go back a year later and provide the footage again.

5. Professionals edit.
Even if the client thinks it’ll be quick and easy and there won’t be any editing… there’s always editing. Unless you’re just doing camera ops for someone else and they want the raw footage, you’re editing. So much DSLR shooting is done today with secondary audio that at a minimum there’s the syncing of audio with the video. Add bump-in and bump-out, a few cross-fades, choosing the best take, and render time, and you’ve got some time invested. (I’m not even getting into the copying, burning, and delivering of the work, but hey, that’s another aspect.)

OK, that’s part one of my “Guide to Video for Smart People”. We covered five points. There are more, but I wanted to keep this brief. The great thing about working with smart people is that they’re smart (duh!) so educating them to some of these facts shouldn’t be too hard to do. Chance are after the first shoot you do, they’ll get it, and it’ll be the start of a great (working) relationship. :)

Categories
Uncategorized

Linux Woes

Linux

Oh Linux… sometimes you make it really hard to love you.

While the recent data rescue went well, other things have not been as easy. Let’s see where we are, shall we?

Home Server
This is the old dead-screen PowerBook that ran for years without issue. Until it had an issue. I rescued the data from it, and then I figured I would do a re-install of Linux on it, but so far it’s been all failure. The external VGA connection doesn’t seem to want to display anything, so without a screen to see the install, I don’t even know if it’s booting up properly. (This is a recurring theme, btw.)

Raspberry Pi
One of my Raspberry Pis occasionally hangs on boot. Sometimes. Other times it works fine. Since it’s headless I needed to attach it to a TV to see this. The other Raspberry Pi I have does have an HDMI-VGA adapter, which works when you edit config.txt properly. Sometimes. And yeah, my RF Modulator to use the composite video seems to have died, so that option was out as well. Also, the SD card cracked. These are all fairly minor things, but they add up.

(New) Xubuntu Laptop
While it’s a new machine to me, it’s a 10 year old laptop running Xubuntu. It was going to be (will be?) my new Lab Computer, controlling the RepRap, and hopefully running Octoprint, which won’t run on the Eee PC I now use to control the RepRap. I left it running with my account logged in and it went offline… kernel panic. Hmmm, let me check right now. Yeah, it’s hosed up. I try to ssh in and get ‘Input/output error’ so something isn’t right. Dammit.

Eee PC
Well, this little beast keeps chugging along. Besides the fact that it can’t do much, it can control the RepRap, and it does a pretty good job of not losing the wifi connection. All good.

Another One
Since I may need a replacement for the old PowerBook that was the Home Server, I figured I’d try an old G4 iMac with a dead display. Multiple attempts with Ubuntu Server and Xubuntu Desktop all failed. Won’t boot from a CD or DVD. I did read about an NVIDIA driver conflict, urgh. I may try some other distros, but I’m thinking it may be an issue with the fact that the built-in display is dead and the external VGA connection isn’t doing the right thing. Bummer.

Keep in mind I’m considered really good at this stuff… but I guess when shit goes wrong, it really goes wrong.

Categories
Uncategorized

MPD Radio Controller

If you read about my Radio Milwaukee Radio and thought having just one station to listen to was rather silly, we can do something about that.

One station means no choices (and no controls) but with multiple stations we need a way to select which one you want to hear, and there are clients that can make that possible. Since the Raspberry Pi is on our home network via WiFi, that means any other device on the network can control it.

mpd

I first tried MPD-Web-Remote, which looks great on iOS devices, and fine in any WebKit-based browsers, but I’m a Firefox fan, and it looks like total crap in Firefox, so I kept looking…

mpd

I prefer MPD-Webinterface, which looks good in Firefox, and not as great on iOS devices. Of course, since these are just web applications running on the Raspberry Pi you can install as many of them as you like. (You’ll obviously need to have a web server running on your Pi. I dropped Apache on mine along with PHP using the standard apt-get method.)

And since these are PHP web apps, you’ve got the source, and can edit the CSS as you see fit, so customizing the look should be pretty simple.

Want more options? There’s a giant list of MPD clients on the Music Player Daemon Community Wiki.

And hey, if you’re wondering how I got 3 stations listed instead of just one, compare the original code to this code:

#!/bin/bash
 
mpc clear
mpc add http://radiomilwaukee.streamguys.net:80/
mpc add http://129.89.70.253:80/wuwm_1.mp3
mpc add http://75.102.5.99:80/wpr-ideas-mp3-64
mpc play
 

This creates a playlist with 3 items, and will start playing the first item in the list, so put whatever you want as the default first. This list will play the 88.9 Radio Milwaukee stream until you select another one.

mpd

You can even add new streams (temporarily) using the MPD-Webinterface. At the bottom of the interface is a text field, just paste in a stream URL and hit return to add it to the list. (I pasted in http://wmse.msoe.edu:9000 for WMSE 91.7) I said ‘temporarily’ because only the three that are hard-coded in our bash script above will survive a reboot/restart.

Oh, keep in mind you need the actual stream URL, not the playlist URL, which is one that usually ends with a .pls file extension. Normally you’ll need to view the source of a .pls file to see the stream(s) listed within it.

That’s it for now kids… have fun with your Raspberry Pi Radio!

Categories
Uncategorized

Linux Data Rescue

Rescue Me!

Sometimes it’s hard to believe my adventures with Linux go back nearly 15 years. For the first few years I kept a notebook titled The Road to Linux, which, looking back now, I find mildly entertaining.

I have a history of cobbling together old hardware into working Linux machines, and it wasn’t until 2007 when I actually bought a working Linux laptop. The Eee PC was a tough little machine, and after I got a MacBook Pro I didn’t use it much, until last year when I made it control my RepRap. It’s worked well for that. (The external monitor at home helped quite a bit too.)

I’ve been running a Linux server at home for a long time, and a few years back a friend offered me a broken PowerBook, so I managed to get Ubuntu on it and made than my low-powered Linux home server. It’s worked well, and really had no issues… until I decided to go crazy and run a system update on it. I know, and you know, that backups are important, and you know, and I know, we all still fail to do them properly sometimes.

Well, the system update failed, leaving the system unbootable. And yeah, I had two things on it that I sort of needed. Urgh. Time for some data rescue! I’ve got lots of experience doing data rescue with Macs, but not as much with Linux. Still, it was fairly easy.

Since this was my “home server” and not anything for work, I was probably a bit lax on properly administering it. (I won’t be in the future.) Most of my boxes with databases have cron jobs to dump them to disk every now and then. This one didn’t, and that’s where the fun begins.

I ended up opening the PowerBook and pulling out the drive (thank goodness I’ve got a full set of Torx drivers) and connecting it to the Universal Drive Adapter to turn it into an external USB drive. But what could I connect it too?

As luck would have it, a few months back a relative gave me an old Dell laptop to “wipe clean” and dispose of. I of course dropped Linux onto it. I ended up using Xubuntu, which works well on a 10 year old laptop. Seriously, I do love the ability for Linux to turn old, old, old hardware into something useful.

I plugged the Universal Drive Adapter into the Dell running Xubuntu and copied all the files I needed from the drive. Done. Mostly… except for that one database.

The database rescue took a few more steps. Luckily, I had installed MariaDB onto the laptop. I’ve always used MySQL but in a “what the hell” moment, I decided on MariaDB, which is “an enhanced, drop-in replacement for MySQL.” Indeed it was.

I ended up running a few familiar MySQL commands, first to create an empty database, then to add a user with the proper permissions, and then it was just a matter of copying the correct files from /var/lib/mysql into place from the old drive to the new drive, and bam! My data was all in MySQL, well, in MariaDB.

Just to confirm all was good, I dropped the proper files in /var/www and poked at Apache enough to get my app running and test the database connection. All good.

So now that I’ve got all the data I needed from the PoweBook’s drive, I should probably wipe it and re-install Linux on it. Again. ;)