个人工具

UbuntuHelp:AppleiSight

来自Ubuntu中文

Wikibot讨论 | 贡献2008年12月16日 (二) 17:53的版本

跳转至: 导航, 搜索

Background

There are two major types of Apple iSight cameras - the external firewire camera and the internal USB iSight cameras in the more recent Intel Macs and some of the latter PowerPC Macs. This document focuses on the internal USB type. The newer Mac``Books and Mac``Book``Pros coming out have a working iSight out-of-the-box without needing to do anything, but for older iSights, firmware loading is still required. All you have to do is get the firmware out of OS X and place it in the correct location in the filesystem. Let’s do it step by step.

Installation

First you need to get the firmware out of a particular file located on your OS X install (or find it online somewhere. I will not link any here because of legal reasons). You can copy it to a USB drive or other location so that you can acess it from Ubuntu. It is located in /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport

  1. Boot into Ubuntu and install isight-firmware-tools. If you are using a version earlier than Intrepid Ibex 8.10 or if the isight-firmware-tools from the repositories cannot extract the firmware for your particular version of AppleUSBVideoSupport, then you can use the mactel support ppa at https://launchpad.net/~mactel-support/+archive to obtain a more recent package. You may install isight-firmware-tools in a terminal by running (after enabling the mactel support ppa if necessary):
sudo apt-get install isight-firmware-tools
  1. Go ahead and place the AppleUSBSupportVideo file in /lib/firmware
sudo cp AppleUSBVideoSupport /lib/firmware/
  1. Now, extract the iSight firmware from the file
sudo ift-extract -a /lib/firmware/AppleUSBVideoSupport
  1. This should place a file called isight.fw in the /lib/firmware directory. It would be a good idea to save a copy of this file somewhere so that you can find it again later and not need to extract it from the AppleUSBVideoSupport file. If you remove the isight-firmware-tools package, it will delete the isight.fw file too. If you want to remove isight-firmware-tools, make sure to create a copy of your isight.fw file and put it in a safe location so you can copy it back later.

Once that is done, you need to completely SHUTDOWN your Mac (not just reboot) and start it back up again (this clears the hardware state of the camera). In the future, you just need to place the isight.fw file you saved in /lib/firmware/ and then shutdown and reboot as instructed above.

GStreamer Test

Run gstreamer-properties and test video input in the Video tab.

Ekiga Test

  • Launch Ekiga (Applications > Internet > Ekiga Softphone)
  • Configuration. You may have to select the iSight device.

Edit > Preferences > Devices > Video Devices >

  • Video plugin: V4L2
  • Input device: Built-in iSight

Cheese Test

Cheese is a fun webcam app similar to photobooth in OS X. First Install Cheese

sudo apt-get install cheese

Then start it from Applications > Graphics > Cheese Webcam Booth