Linux作業系統網路攝影機驅動的安裝

來源:互聯網
上載者:User

Linux作業系統網路攝影機驅動的安裝

a) 請根據核心版本和網路攝影機類型從http://mxhaard.free.fr/download.html
選擇下載最新驅動,該驅動支援市面上大多數網路攝影機。
b) 編譯、安裝以及裝載網路攝影機驅動
c
) # tar xvzf gspcav1-20061216.tar.gz
# cd gspcav1-20061216
# make
# make install
# modprobe gspca

注意:Ubuntu更新庫中也包含了該驅動,可以簡單的通過“m-a a-i spca5xx”命令來自動下載並編譯安裝,但是由於庫中的代碼並不是最新的,對於某些網路攝影機的驅動可能存在問題,所以推薦手動下載、編譯並安裝的方式。
d) 用Camorama程式測試網路攝影機及其驅動程式
# apt-get install camorama
從開始菜單啟動Camorama程式,如果驅動工作正常,將會在程式中顯示動態預覽視窗。

二、安裝驅動筆記


Linux下網路攝影機驅動不多,現在比較流行的好像就是那個法國大鬍子開發的那個spca5xx,我也來安裝一下試試。
先把網路攝影機插上,按照人家說的lsusb一把,來查看一下,唉,怎麼沒有這個命令,g之,哦,又沒裝,檔案叫usbutils,yum安裝。
lsusb,有羅技滑鼠,chesen的鍵盤,沒有網路攝影機,這是咋了,再試試,重新插了一次,這下有了,Z-Star Microelectronics Corp. ZC0301 WebCam, ID 0ac8:301b ,中芯微的片子,經典版本,有希望。

安裝網路攝影機的驅動,上那個fr結尾的法國網站,竟然上不去,這也被和諧了?代理,出去,終於看到了,
叫gspcavl,下下來,編譯,出錯,.owner =THIS_MODULE
這句錯誤,g之,看到openswan編譯也有這個問題,他們解決的方法就是注釋掉,那我也注釋掉好了,再編,OK, insmod
出錯,再看makefile,make
install,沒錯,但是沒用,ekiga裡面還是找不到device,g之,看到某位大俠寫的,需要先載入v4l,不懂其中道理,先照著做吧。所以只
要先
modprobe videodev
然後
insmod gspca.ko
就都OK了,在ekiga裡device選v4l類型,然後就可以看到可愛的網路攝影機了

三、安裝筆記


1.準備工作。在命令列裡打入 cat /proc/bus/usb/devices |grep "0ac8"
。如果有返回,比如P:Vendor=0ac8 ProdID=301b Rev=
1.00,記下ProdID號,這是你的網路攝影機的感應器產品號。如果沒有返回任何東西,不用擔心,這說明你的camera不是用的z-Star出的感測
器,但是安裝步驟沒什麼區別,打入cat /proc/bus/usb/devices ,找到PC
Camera一行的上面第2行,同樣記下ProdID。好了,去這個網站查查看你的感應器ID是否已經被支援了 http://mxhaard.free.fr/spca5xx.html
,這裡面z-Star的大多數產品都已經被很好地支援了。如果沒有支援,那真是遺憾了,向你表示慰問,下面的也不用看了。

2.去download頁面把最新的驅動下載下來,
http://mxhaard.free.fr/spca50x/Download/spca5xx-20050701.tar.gz
。同時把工具spcagui20050601.tar.gz也弄下來。
http://mxhaard.free.fr/spca50x/Download/spcaview-20050701.tar.gz
如果你有興趣,也可以用它提供的gui工具。順便說一句,開發的法國人長的像海珊。

3. 現在把第一個包解開,查看INSTALL,編譯要求你已經裝好相應核心的源碼樹和標頭檔。當然video4linux也得裝好。簡單地make;
make install 就行了。insmod spca5xx.ko。如果你是2.4的
核心,那就安照INSTALL裡的要求做。如果一切都沒問題,那你就可以把spcaview也編譯安裝,需要SDL的庫。
用spcaview -f yuv進行測試。如果你還有電視卡,那不要忘了把 -d /dev/video1添進去。

四、ubuntu下安裝網路攝影機(good)


1.a) 請根據核心版本和網路攝影機類型從http://mxhaard.free.fr/download.html
選擇下載最新驅動,該驅動支援市面上大多數網路攝影機。

  b) 編譯、安裝以及裝載網路攝影機驅動

  c) # tar xvzf gspcav1-20061216.tar.gz

  # cd gspcav1-20061216

  # make

  # make install

  # modprobe gspca

  注意:Ubuntu更新庫中也包含了該驅動,可以簡單的通過“m-a a-i spca5xx”命令來自動下載並編譯安裝,但是由於庫中的代碼並不是最新的,對於某些網路攝影機的驅動可能存在問題,所以推薦手動下載、編譯並安裝的方式。

  d) 用Camorama程式測試網路攝影機及其驅動程式

  # apt-get install camorama

  從開始菜單啟動Camorama程式,如果驅動工作正常,將會在程式中顯示動態預覽視窗。

插入USB網路攝影機

$ dmesg

Linux video capture interface: v2.00

zc0301: V4L2 driver for ZC0301[P] Image Processor and Control Chip v1:1.05

usb 1-2: ZC0301[P] Image Processor and Control Chip detected (vid/pid 0x0AC8/0x301B)

usb 1-2: No supported image sensor detected

usbcore: registered new driver zc0301

$ lsusb

Bus 001 Device 005: ID 0ac8:301b Z-Star Microelectronics Corp. ZC0301 WebCam

Bus 001 Device 004: ID 0bda:8150 Realtek Semiconductor Corp. RTL8150 Fast Ethernet Adapter

Bus 001 Device 002: ID 0ace:1215 ZyDAS

Bus 001 Device 001: ID 0000:0000

ZC0301 WebCam就是我們USB網路攝影機的晶片,核心是有驅動支援的。

drivers/media/video/zc0301/, 支援V4L2.

$ apt-get install spca5xx-source

[確認源:

deb http://debian.cn99.com/debian
etch main contrib non-free

deb-src http://debian.cn99.com/debian
etch main contrib non-free

]

看看源碼放在哪裡拉

$ dpkg -L spca5xx-source

/.

/usr

/usr/src

/usr/src/spca5xx-source.tar.bz2

/usr/share

/usr/share/doc

/usr/share/doc/spca5xx-source

/usr/share/doc/spca5xx-source/README-SONIX

/usr/share/doc/spca5xx-source/README-TV8532

/usr/share/doc/spca5xx-source/RGB-YUV%2fmodule-setting

/usr/share/doc/spca5xx-source/README.Debian

/usr/share/doc/spca5xx-source/copyright

/usr/share/doc/spca5xx-source/changelog.gz

/usr/share/doc/spca5xx-source/README.gz

/usr/share/doc/spca5xx-source/changelog.Debian.gz

/usr/share/modass

/usr/share/modass/overrides

/usr/share/modass/overrides/spca5xx-source

$ cd /usr/src

$ tar jxf spca5xx-source.tar.bz2

$ cd modules/spca5xx/

參考INSTALL檔案

$ make clean

$ make

$ make install

載入模組

$ modprobe spca5xx

$ lsmod | grep sp

spca5xx 642544 0

videodev 21120 2 spca5xx,zc0301

pcspkr 3072 0

usbcore 112644 7 spca5xx,zc0301,zd1211b,rtl8150,usbhid,ohci_hcd

[pcspkr是在modprobe之前原來就有的]

這個時候/dev/video0就建好了。

安裝一個應用程式

$ apt-get install camorama

運行camorama,就可以看到了。

另外: 換另一個網路攝影機(晶片sn9c101),因為裝過了spca驅動,所以這次可以直接用了。
一般情況下,就可以用了。
2.安裝視頻軟體

sudo apt-get install camorama

ubuntu下安裝網路攝影機2


在終端裡輸入 lsusb

Bus 005 Device 001: ID 0000:0000

Bus 003 Device 001: ID 0000:0000

Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID 0ac8:301b Z-Star Microelectronics Corp. ZC0301 WebCam(注意本行就是網路攝影機資訊)

Bus 001 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000

在終端裡輸入 ekiga,然後進行設定(應用程式>Internet>Ekiga軟電話),效果


太棒了!至今為止,我的ubuntu什麼驅動都沒裝過,系統內建了都,呵呵

#upgrade:經我測試,ubuntu7.04和ubuntu7.10都是可以的
ubuntu下安裝網路攝影機3


可使用EasyCam安裝網路攝影機,

EasyCam 2
EasyCam 2 是EasyCam的新版本。如果您在使用EasyCam時出現問題,請嘗試使用EasyCam 2。

安裝
把下一行中的代碼添加到您的 /etc/apt/sources.list 檔案中

deb http://blognux.free.fr/debian
unstable main
然後更新您系統中的軟體包並安裝easycam

sudo apt-get update
sudo apt-get install easycam2
EasyCam 1
EasyCam是一個用於自動安裝網路攝影機的程式。它可以自動檢測您的網路攝影機,選擇並安裝適合的驅動程式。

這裡有一個能夠被EasyCam檢測到的網路攝影機的列表。這個列表的規模現在還比較小,但是它正在持續擴大。

原始碼可以從這裡找到。

安裝
把下一行中的代碼添加到您的/etc/apt/sources.list檔案中

deb http://blognux.free.fr/debian
unstable main
然後更新您系統中的軟體包並安裝easycam

啟動easycam

您可以使用下面這條命令來啟動easycam(在系統->系統管理菜單中有一個表徵圖,您也可以通過它來啟動easycam):

lauchcam2
EasyCam 2
現在請從螢幕上出現的列表中選擇您的網路攝影機型號,然後easycam會向您詢問是否安裝驅動程式。

經過一段時間的編譯,您的網路攝影機應該就可以使用了。

問題
您如果遇到困難,可以到Documentaion Ubuntu Francophone (法語)或者他們的論壇(法語)查詢。

測試您的網路攝影機
camorama是一個用於觀看,修改和儲存從網路攝影機中獲得的映像的小工具。您可以使用APT安裝它:

sudo apt-get install camorama
介紹一些額外軟體
如果您想在網路攝影機開啟的時候在系統托盤上顯示一個表徵圖,您可以試試Camera Monitor。debian和ubuntu使用者可以直接使用這個deb包進行安裝。

手動安裝spca5xx
您可以在這裡找到手動安裝spca5xx驅動程式的指南。

EasyCam 2
EasyCam 2 is a New Release of EasyCam. Please try if you have any problems with EasyCam

Installation
Add the following line to your /etc/apt/sources.list

deb http://blognux.free.fr/debian
unstable main
Then you need to update the packages and install easycam

sudo apt-get update
sudo apt-get install easycam2
EasyCam 1
EasyCam is a software for an automated webcam installation. Thanks to
the auto detection it will install the needed driver for your webcam.

There is are lists of the autodetected webcam's . At the moment the list is small, but it's constantly growing.

The source code is here

Installation
Add the following line to your /etc/apt/sources.list

deb http://blognux.free.fr/debian
unstable main
Then you need to update the packages and install easycam

sudo apt-get update
sudo apt-get install easycam
Start easycam
with the following command you start easycam (There is also an icon under System->Administration):

lauchcam2
Now you can choose your webcam from the list. The software asks you if you want to install the driver.

After a some compilation your webcam should be ready.

Problems
If you get in trouble you can check on their thread (in french) or on the Documentaion Ubuntu Francophone (in french)

Testing your webcam
There is a nifty little application called camorama to view, alter and save images from a webcam. Simply install it via apt:

sudo apt-get install camorama
Additional software
If you want to have a little tray system icon that notifies you when
your Webcam is on, try Camera Monitor. There is even a debian/ubuntu
package available.

Installing spca5xx manually
You can find howto's for manual installation of the spca5xx driver here

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.