Tuesday, May 17, 2011

Batch Convert Images Without Photoshop

I forgot to mention how I batch resized images from some Timelapses we've been working on since Photoshop CS4 won't open .NEFs from a Nikon D7000.

Use Preview. Yup.

0. Launch Preview and hit Command + (comma) to open it's preferences and under General make sure either "Open all files in one window" or "Open groups of files in the same window" are ticked. This is important.

1. Drag the folder containing all the images for the Timelapse onto Preview's icon.

2. After Preview opens all the images in one window hit Command + A to highlight them all.

3. Goto Tools > Adjust Size… and type in the resize you want or need.

4. Hit Okay, and wait for Preview to do it's thing.

5. Hit either "Save All…" or "Save As…" as per your need.

Done.

Monday, May 16, 2011

How To Create A Timelapse with Quicktime Without A Black Screen

We've been shooting some timelapse with a Nikon D7000 and the stills are .NEF files which Photoshop CS4 doesn't like and apparently there's no update to open these particular files so yeah, there's that. Photoshop requires that it be CS5 to open the D7000's .NEF files. Thanks Adobe!

So the basic workflow for these sorts of Timelapse is this:

1. Shoot with the intervelometer setting on the still camera.
2. Bring the stills into the Mac (either while shooting or load them in afterwards).
2a. Monkey with them in your image editor of choice. (Optional)
3. Launch Quicktime Player 7.
4. Hit Shift + Command + O (letter o) and select the first image in the sequence and hit Open (Return). This is "Open Image Sequence…"
5. Let Quicktime Player do it's thing then Export it to the format of your choice.

Done.

However…I noticed an interesting quirk in all this while assembling timelapses from the Nikon D7000.

A native .NEF file from the D7000 is 4928 x 3264, and while you can open them willy-nilly with Preview and Aperture, Quicktime Player 7 really doesn't like them because they are rather large. You'll see a black screen. Converting them to something else, like a .TIFF doesn't seem to help.

So I tried an experiment to see what the maximum size is that Quicktime Player 7 can handle by opening the .NEF file in Preview and making it a bit smaller then saving it as a .TIFF and found that (for me at least on this one Mac) 41% reduction works.

42% didn't.

2020 x 1338 will open in Quicktime Player 7 while 2070 x 1371 will not.

So in order to load them into Quicktime Player 7 as an image sequence you'll need to reduce them by 41% en masse.

A TRICK:

A workaround to this is to use a little-known keyboard command in Quicktime Player 7: Option + Resize.

Open your image sequence as you would normally, as outlined above. If you see a black screen don't panic. Hold down Option and Resize the window to a size you like. Resizing the window with Option held down steps the resizing to multiples of the original frame size.

Once you get the Quicktime Player 7's window to screen size go ahead and make the quicktime movie despite it appearing as a black frame; the output video will have an image.

Keep in mind when you hit Export in QT7 you can then hit Options and then hit Size... and choose from a pre-selected list of commonly used sizes. Since these are smaller than the gigantic images you've imported as an image-sequence your video won't be a black screen once it's finished exporting.

UPDATE:

I've been messing around with timelapses again and discovered you can use the very handy MPEG Streamclip to make timelapses as well (even though the image size bug will still exist with MPEG Streamclip.

1. Launch MPEG Streamclip.
2. Highlight all your timelapse images and drag them into MPEG Streamclip's main window. NOTE: You may just see a neon-green image preview in MPEG Streamclip. Don't Panic. (also if you have a large number of images this can take a long long time)
3. In MPEG Streamclip's menu head to Export to Quicktime...
4. Select the size you'd like for the video. I tend to choose 1920x1080 (HDTV 1080i) because as I found out above the max image size for a image sequence in Quicktime is about 2020x1338.
5. Hit Make Movie and tell it where to save it.

Note: For some reason the "Options..." button in MPEG Streamclip will not do anything some of the time.

Another option is to hit Export to Other Formats and then hit the Options... button and select your frame rate.

How To Open Nikon D7000's .NEF files in Photoshop

We've been shooting a bit on a Nikon D7000 (I'll post about it's video capabilities later on) and the stills look amazing. However, Apple Digital Camera Raw Compatibility update which lets Aperture and Preview (and Quicklook) open the files, doesn't let Photoshop open up the D7000's .NEF files. Weird right?

Looking around you find this page at Adobe. Which has a plug-in to open all sorts of still image formats.

But if you read the page you'll see this:

"The Camera Raw 6.4 plug-in is not compatible with versions of Photoshop earlier than Photoshop CS5."

"Camera Raw 6 is not compatible with Photoshop CS4."

What that means is that Photoshop CS4 can't natively open the D7000's .NEF files.

What to do?

You can check here what the minimum version of the plug-in is needed to open files from your camera; in this case it's 6.3.

Next, you look here to see what the highest version of the plug-in your software supports is; in my case CS4 supports up to version 5.7. So, I'm SOL.

If this is you, you need to install CS5 in order to open them in Photoshop or convert them to something Photoshop can open which kinda defeats the purpose of shooting Raw in the first place. Nice right?

What and how to convert?

Head over to here to download Adobe DNG Converter software. Although it does retain all the information post conversion, I think this is a bit nuts; making me convert all the stills after importing them, it's an extra step and I don't like extra steps. So my solution is to get the production to buy a copy of CS5 which they actually did. Crazy.

So if you have Photoshop CS4 and a Nikon D7000 you basically have four options:

1. Don't shoot Raw format.
2. Shoot Raw format and convert them all to DNG.
3. Upgrade to Photoshop CS5
4. Use Aperture instead of Photoshop.

The Price of Blank Optical Discs Is Going Up

Hardmac has an interesting post about the rising prices of blank optical media. Apparently as people use them less and less the idea is to raise prices to compensate while making fewer at the same time.

Tuesday, May 10, 2011

You Cannot Replace The Internal Hard Drive In The New iMacs

UPDATE:

A company is developing a little bit of kit to enable hard drive replacement: the cBreeze (site in German).

It's beginning to look like the latest round of iMacs from Apple may be a poor choice for some users due to the fact that:

"As noted by OtherWorld Computing, Apple has implemented a new temperature sensor system on its latest iMac models that significantly hampers the ability of users to replace their original hard drives in the case of failure or a desire to upgrade. Without the custom 7-pin hard drive cable and proprietary firmware included on stock hard drives in the new machines, the new iMacs' fans spin to full speed and the machines fail to pass the Apple Hardware Test."


They have lots more info on it here, but the basics are that if you use a new iMac, and it's internal Hard Drive fails you can't really replace it on your own. It has a proprietary connector and custom firmware right on the drive itself.


More from them:


"From our testing, we’ve found that removing this drive from the system, or even from that bay itself, causes the machine’s hard drive fans to spin at maximum speed and replacing the drive with any non-Apple original drive will result in the iMac failing the Apple Hardware Test (AHT).
In examining the 2011 27″ iMac’s viability for our Turnkey Upgrade Service, every workaround we’ve tried thus far to allow us to upgrade the main bay factory hard drive still resulted in spinning fans and an Apple Hardware Test failure. We swapped the main drive out (in this case a Western Digital Black WD1001FALS) with the exact same model drive from our inventory which resulted in a failure. We’ve installed our Mercury Pro 6G SSD in that bay, it too results in ludicrous speed engaged fans and an AHT failure. In short, the Apple-branded main hard drive cannot be moved, removed or replaced."
Hard drives always fail in time.


It's like buying a new car and finding out that only the dealer can make an extra key for you...wait...my car is already like that...umm...


Apple has locked out another option for the customer (who should have the option of voiding their warranty if they so choose) who wants to replace a failing, failed or too limited in capacity or specs internal hard drive. Apple has effectively tacked on an extra bit of profit for themselves (replacing an internal hard drive) at the expense of customers for so far, what seems no valid reason.


Hopefully in time, the reason for this will make sense but as it stands right now it just seems rather unfair.

Soundtrack Pro's Temporary Files Folder

If you find yourself suddenly running out of hard drive space while working with Soundtrack Pro check it's Temporary Files folder which is likely located at:

Macintosh HD/Users/[YOURACCOUNTNAME]/Documents/Soundtrack Pro Documents/Temporary Files

The one on the Mac I'm using here on the road is several gigs large with stuff from way way back.

Monday, May 9, 2011

Easy Shallow Focus with Point-N-Shoot Cameras

Shallow focus is all the rage in print advertising because "It brings the customer closer to the product, ya know" or so they tell me. It's especially popular in food photography and once you notice it you'll see it EVERYWHERE.

Out on a shoot last week the producer wanted to see what some title cards looked like with some "flowery" stuff behind them, so they proceeded to take some photos with their smart phone and wasn't happy with the lack of shallow focus. That's because shallow DOF is tricky on small CCD cameras and they being a print person was used to seeing everything photographed with a razor-thin DOF.

I thought really hard on whether I should bring up the whole DOF vs small CCD issue but decided against it and ran outside to the hotel grounds and grabbed these shots:




With what? A very badly road-worn and banged-up Nikon S550. 

It's an old trick I'm surprised I don't see more people using and works fairly well across the spectrum of little cheapy point-n-shoot cameras provided you can:

1. Turn on Macro Mode.
2. Zoom all the way in (but no digital zoom!)
3. Get a proper exposure

The "trick" is to let the camera focus in macro mode while you're optically zoomed all the way in. Tighter zoom is shallower DOF and Macro Reduces the DOF even more. These were just some quickie test shots but after some work in Photoshop they looked great as backgrounds for some title cards for this project.

It's not perfect as diffraction can cause the image to lose a bit of resolution but in a pinch you can get some interesting selectively focused images.

Now this doesn't apply to all point-n-shoots since they all use different designs, chips, software and whatnot but it's worth trying out if you need a more shallower Shallow Focus shot than one macro alone will capture.

Saturday, May 7, 2011

Soundtrack Pro and removing Background Noise

A few hours ago my buddy emailed me a .wav file of "cat riding in car" for his short film. It's more of his ambient soundscapes projecthing™ and who am I to question his genius.

Listening to it, it sounds more like a cat hiding under the seat in a small airplane with one of the windows down; plus there are some crackling noises which I've chosen to ignore.

He asked (he's actually a really good friend) if I could make it sound more car-like even though it was already recorded in a real car with a real cat. His chosen recorder (a small point-n-shoot) for the audio really isn't all that good so the audio needed some fixin'.

Soundtrack Pro has a great feature called Noise Reduction which takes a sample or "print" of a background sound like a hum or an AC unit or something and can do a really wonderful job reducing this constant sound while leaving the rest of the audio more or less intact.

It was of little help here since the bulk of the audio spectrum was airpl...car noise so it's on to more drastic and dangerous methods.

Here's the spectrum of the sound After and Before I reduced the car noise.


You can see the yellow near the bottom on the right untouched side.
That's the car's interior road noise. Yikes.

Noise Reduction wouldn't do much here without distorting the important sounds, mainly, those little yellow blobs you see in the green portion: that's the cat meowing about being car sick. The goal is to get rid of the yellow along the bottom (harsh car noise), keep some of the green (car noise) and the cat's little yellow blobs of complaint.

The first step was to run though a light Noise Reduction to just clean up the audio a bit. It doesn't do much in this case but, whatever. 

1. Highlight a portion of the clip that has just the noise you want to remove. The longer the bit the better.
2. Process > Noise Reduction > Set Noise Print.
3. Command + A to select all (you're applying the "fix" to the entirety of the clip)
4. Process > Noise Reduction > Reduce Noise...
5. Monkey with it until you get something you think sounds okay.

Next up for me was applying the Channel EQ.

1. Highlight the whole clip with Command + A.
2. Process > Effects > EQ > Channel EQ

It looks like this:


The great thing about the Channel EQ is that you can drag around the EQ in real-time while the audio clip plays and refine your selections by moving the mouse up and down. Here you can see on the right the higher sounds have been brought up and on the left side the low rumble of the car has been brought down.

You can sweep with the mouse (button held down) and listen as the EQ does it's thing. That's how I located the rumble and eliminated most of it. There's still room to improve what's being removed but this is a good starting point for my friend to see if this is close to what he doesn't know he wants yet.

Again, you can toggle the button to the right of the volume slider to hear what effect the EQ has compared to the original audio clip.

This is just the very basics of this stuff. There are myriad ways to achieve the same thing, some better, some more complex, some just take longer. I'll post more as my friend hands me more stuff to fix.

Friday, May 6, 2011

Equalizing Audio Levels in Soundtrack Pro

A buddy of mine is working on a short film and needs lots and lots of "ambient location soundscapes" (his term :) and a few of the recordings have wildly different volume levels.

For example one recording is a person whispering between bouts of a person yelling a speech and thunderous applause. Yeah, I know; could you get any worse for post-production? Well, I did have a client once ask me if I had a "color filter" and I was like, "Yeah?" because we do but they meant something that turns black and white footage into color. I just told them yes (always say yes) but that it's VERY VERY EXPENSIVE (always say it's prohibitively expensive when you want to say no).

So, not really sure what my friend wanted this little bit of audio to sound like because they didn't either I tossed it into Soundtrack Pro, removed the background hiss/AC Unit/whatever it is via a noise print, and then used the Compressor filter.

It looks like this:


It's under Process >Dynamics I think and what this little HUD does is basically, bring up low levels and bring down high (or loud) levels. 

Set the Limiter Threshold to something like -6 or -3dB (don't forget to tick the blue box to activate this slider), monkey with the Gain so overall it's at a level you like and generally bring up the Compressor Threshold a bit to clear out some background noise.

Now, some audio people are undoubtedly reading this with one eyebrow raised but yes, I know what all this stuff does but this is Quick Fix Post Friday Madness.

See the little play button to the left of the volume slider? To the right of that slider is a preview button of sorts which will toggle the audio playback with and without this filter applied so you can see if you're making things sound worse or better; it's easy to mess with stuff so much and lose track of just how much you've changed things from the original.

Hit Apply to apply.

You'll see all sorts of fun adjustments happening and when I was done with this bit of audio the whispers were loud enough to hear but not overbearing, the applause was now less room rattling and a bit of the background hum was removed as well.

Sometimes on some systems there's a bit of a nasty bug with some of these effects. Occasionally you'll hit playback to see what your changes sound like and the resultant audio will be full volume and screeching from distortion. I don't know why. A few times toggling the play button usually resolves it, I'm told.

Monday, April 25, 2011

Solid State Drives are not Immortal

Hardmac has some fun information about the life expectancy of solid-state drives (SSDs) here. After writing over 250TBs of data some of the cells are reaching their 10,000 cycle life expectancy limit.

The good take-away from this is that under normal* use SSDs should last reliable for years.


* I'm not sure normal use qualifies for video editors since we thrash drives with HUGE files often.