Thursday, January 27, 2011

Tutorial: Vevo to iTunes on Mac OS X, Video and Audio (Youtube and others too)

Vevo offers HD videos of your favorite music. Here is how to download them on Mac OS X. This procedure probably works for other sites too like youtube, and tons and tons more.

Getting the Video
  1. In Firefox, get the Video DownloadHelper add-on.
  2. Go to Vevo (or youtube or most any other tube site), and start watching your video in the resolution you want.
  3. Click the arrow next to the rotating DownloadHelper icon at the top of the browserBe careful of downloading the advertisement that plays. It should be pretty obvious (i.e. if an ad plays, don't click on the top file in the list, wait for the video to load and check the list again. Same goes for changing resolutions.)
  4. Choose the file you want. For high quality stuff on Vevo, you'll most often get the Apple-ish MP4 version (AAC+h264). For older or lower quality stuff, you'll have to get the flash format (FLV file). I'll assume MP4 video from here on out.
  5. If it was 720p (or lower) MP4, this should immediately drop into iTunes and be syncable on AppleTV2/iPhone4/iPad. Enjoy your video!
  6. If it was 1080p MP4 or FLV, use Handbrake to convert to iTunes friendly format.

Converting the Audio for iTunes
If you want just the audio ripped from such a file, you just have to remux the audio to the appropriate Apple container. I tried using Quicktime to make a MP4 movie with audio only in it; while that plays correctly in iTunes, its recognized as a video file, which annoys me. So use ffmpeg to remux just the audio to the right container.

  1. Get remux. This is a ffmpeg gui, but ships with a current build of ffmpeg, which is easier than installing it from source, fink, or macports, and is more up-to-date than ffmpegX which hasn't been updated in 3 years.
  2. Make a symlink to the ffmpeg that lives inside the remux application so you can call it from the command line. I called the link remux_ffmpeg to avoid potential naming conflicts with other tools on my system:
    sudo ln -s /Applications/remux.app/Contents/Resources/ffmpeg /usr/local/bin/remux_ffmpeg
  3. Use ffmpeg to get the audio out and remux to the right container. I had to RTFM to figure out exactly how to call it:
    remux_ffmpeg -i in_video.mp4 -vn -acodec copy out_music.m4a
    Just so you know, -vn says no video output, -acodec copy specifies the audio codec should be a passthrough/no re-encode.
  4. Now drop into iTunes, and there you go!

Tuesday, January 25, 2011

Rip Blu-rays with MakeMKV for Mac OS X

There is this cool multiplatform program called MakeMKV that strips DRM off of your Blu-ray collection, and it works natively for Mac. Its currently in beta, so you can use the following beta key (though I'm not sure how this is really different from the 30 day trial, since the beta seems to be running out soon):

T-1kXI22tN1leidXUU8rW81qqCvCyckQQgOJ4W7XB6n6eEfXwRK6K5UEOIVNNflFq87K

It takes whatever is present on the disk and muxes it all into an MKV container without changing codecs. By default, it will copy the video, multiple audio tracks, and subtitles. There are a few problems with this kind of rip though:

  • The file size is HUGE, barely smaller than the original Blu-ray.
  • Only PCs or certain dedicated media streamers can play 1080p, MKV, or recognize multiple/multichannel audio and subtitles.

Re-encoding the video to 720p h264 and the audio to 2 channel AAC in an MP4 container simultaneously fixes all issues; this format is about 1/4 the file-size of the original video, and is supported on AppleTV2/iPad/iPhone4, and pretty much everything else. Here is my workflow for this process.

Use MakeMKV on a Blu-ray.
Use Handbrake on the resulting files.
Start with the high profile.
1280 x 720 resolution.
Turn off decomb and deinterlace
RF of 20
Check large file size
Remove extra audio passthrough
Drop into iTunes and sync with devices.

Of course, if you have terabytes upon terabytes of storage, forget the Handbrake re-encode, and just watch on your streaming/media box. Enjoy!

Wednesday, January 5, 2011

Jailbreak iOS 4.2.1 on iPhone 4 (with links)

Update 1: Bluetooth doesn't work as of this release, and neither does Skype. New redsn0w should fix it when it leaves beta status.

Update 2: Betas 5 and 6 have been released since I wrote this, which fix bluetooth and skype, respectively. The link to redsn0w has been updated. The Dev team also says on twitter that they are working on porting the untether to work with a 4.1 IPSW, instead of the 4.2b3 beta firmware only available to developers.

This link has the instructions you need. But the short of it is:

1. Jailbreak with redsn0w.
2. Boot tethered.
3. Update Cydia.
4. Boot tethered again.
5. Install openssh in Cydia.
6. Use jailbreak monte in redsn0w. Note that this requires the 4.2b3 restore file


Here are the files you'll need:


4.2b3
Don't pirate this. You should have joined Apple as a developer and downloaded it legitimately.
iphone3,1.4.2.8c5115c.restore.ipsw


Enjoy! I'll probably be doing this with iPad, so I'll post another one of these when I do.