特殊:Badtitle/NS100:MactelSupportTeam/AppleiSight
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/MactelSupportTeam/AppleiSight }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/af | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|Afrikaans| [[::MactelSupportTeam/AppleiSight/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/ar | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|العربية| [[::MactelSupportTeam/AppleiSight/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/az | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|azərbaycanca| [[::MactelSupportTeam/AppleiSight/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/bcc | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|جهلسری بلوچی| [[::MactelSupportTeam/AppleiSight/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/bg | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|български| [[::MactelSupportTeam/AppleiSight/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/br | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|brezhoneg| [[::MactelSupportTeam/AppleiSight/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/ca | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|català| [[::MactelSupportTeam/AppleiSight/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/cs | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|čeština| [[::MactelSupportTeam/AppleiSight/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/de | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|Deutsch| [[::MactelSupportTeam/AppleiSight/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/el | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|Ελληνικά| [[::MactelSupportTeam/AppleiSight/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/es | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|español| [[::MactelSupportTeam/AppleiSight/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/fa | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|فارسی| [[::MactelSupportTeam/AppleiSight/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/fi | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|suomi| [[::MactelSupportTeam/AppleiSight/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/fr | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|français| [[::MactelSupportTeam/AppleiSight/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/gu | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|ગુજરાતી| [[::MactelSupportTeam/AppleiSight/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/he | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|עברית| [[::MactelSupportTeam/AppleiSight/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/hu | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|magyar| [[::MactelSupportTeam/AppleiSight/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/id | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|Bahasa Indonesia| [[::MactelSupportTeam/AppleiSight/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/it | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|italiano| [[::MactelSupportTeam/AppleiSight/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/ja | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|日本語| [[::MactelSupportTeam/AppleiSight/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/ko | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|한국어| [[::MactelSupportTeam/AppleiSight/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/ksh | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|Ripoarisch| [[::MactelSupportTeam/AppleiSight/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/mr | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|मराठी| [[::MactelSupportTeam/AppleiSight/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/ms | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|Bahasa Melayu| [[::MactelSupportTeam/AppleiSight/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/nl | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|Nederlands| [[::MactelSupportTeam/AppleiSight/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/no | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|norsk| [[::MactelSupportTeam/AppleiSight/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/oc | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|occitan| [[::MactelSupportTeam/AppleiSight/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/pl | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|polski| [[::MactelSupportTeam/AppleiSight/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/pt | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|português| [[::MactelSupportTeam/AppleiSight/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/ro | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|română| [[::MactelSupportTeam/AppleiSight/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/ru | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|русский| [[::MactelSupportTeam/AppleiSight/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/si | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|සිංහල| [[::MactelSupportTeam/AppleiSight/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/sq | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|shqip| [[::MactelSupportTeam/AppleiSight/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/sr | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|српски / srpski| [[::MactelSupportTeam/AppleiSight/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/sv | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|svenska| [[::MactelSupportTeam/AppleiSight/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/th | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|ไทย| [[::MactelSupportTeam/AppleiSight/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/tr | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|Türkçe| [[::MactelSupportTeam/AppleiSight/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/vi | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|Tiếng Việt| [[::MactelSupportTeam/AppleiSight/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/yue | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|粵語| [[::MactelSupportTeam/AppleiSight/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/zh | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|中文| [[::MactelSupportTeam/AppleiSight/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/zh-hans | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|中文(简体)| [[::MactelSupportTeam/AppleiSight/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight | UbuntuHelp:MactelSupportTeam/AppleiSight | {{#if: | :}}MactelSupportTeam/AppleiSight}}/zh-hant | • {{#if: UbuntuHelp:MactelSupportTeam/AppleiSight|中文(繁體)| [[::MactelSupportTeam/AppleiSight/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:MactelSupportTeam/AppleiSight|:MactelSupportTeam/AppleiSight|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :MactelSupportTeam/AppleiSight/zh | | {{#ifexist: MactelSupportTeam/AppleiSight/zh | | {{#ifeq: {{#titleparts:MactelSupportTeam/AppleiSight|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:MactelSupportTeam/AppleiSight|1|-1|}} | zh | | }}
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
NOTE: The following firmware extraction currently works with the AppleUSBVideoSupport file from OSX 10.5 (Leopard). It will fail with OSX 10.6 (Snow Leopard).
The easiest way to get it is by mounting the MacOSX drive under Ubuntu with the lines:
sudo mkdir /media/MacOSX sudo mount -t hfsplus /dev/sda2 /media/MacOSX
Then install the firmware extractor and let it do the work for you:
sudo apt-get install isight-firmware-tools
Check that the path begins with /media/MacOSX/System... and then click OK. If the path is incorrect, you will not be prompted for another location. You must purge the installation before trying again.
sudo apt-get purge isight-firmware-tools sudo apt-get install isight-firmware-tools
When it's done check that the firware has been found:
ls /lib/firmware/isight.fw
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. (note: placing the isight.fw file at /lib/firmware/ uses to hang always the boot process with the message 'unable to enumerate USB device on port 7' repeatedly )
GStreamer Test
Run gstreamer-properties
and test video input in the Video tab.
Green Capture Issue
(Observed on Macbook 1,1, Macbook 2,1, Macbook 3,1 and Macbook 4,1) If testing the video input through gstreamer-properties results in a green-tinted image, try setting Default Input to 'Custom' and in the Pipepline box, enter the following:
v4l2src device="/dev/video0" ! videoscale
Click on Test to see if these new settings correct the issue. There is a bug report for this problem here.
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
Virtual Machines
Since OSX takes care of the firmware loading itself, there is not much you have to do to use the iSight within a VM. Just enable the Built-in Isight USB device, Then start Cheese. (I could not get Camorama to work. But Cheese works great, athough it does consume a lot of resources. No downloads or modifications necessary.