Linux上的偷窺裝置


作者﹕A.H.
前言: 阿,什麼時候Study-Area也搞偷窺?別緊張,Study-Area不搞這個的!為了提振大家的 學習興趣,才用這個標題。 測試配備: H/W: MS-6340(M/B) ‘ MS-6932(IEEE-1394 Card) O.S: Linux(RedHat 7.1) Test device: SONY DCR-PC110(IEEE 1394) Software utility: Libraw 1394_0.9.0 Dvgrabe 1.0 Libdc1394-0.8.2 Kernel 2.4.6 or latest version(2.4.6 recommanded) Pgk-config 0.8.0 安裝步驟: 1. 同IEEE-1394 H.D一篇的 1~2,不再廢話。 2. 開始make Kernel時,於 code maturity leave options 要取選 prompt for development and/or incomplete code/drivers. 3. 同時在make kernel時,在IEEE 1394的部份,要取選 Ieee 1394 support ‘ OHCI support ‘ Video 1394 support ‘ Raw IEEE1394 I/O support. 4. 請也別忘了取選SCSI support.完成Kernel的設定之後,請make kernel.之後,設定新的 kernel開機.就可以載入IEEE 1394模組. 5. 用新Kernel進入Linux之後,接著解壓縮Libraw 1394_0.9.0: tar zxvf libraw1394_0.9.0.tra.gz cd libraw1394-0.9.0 看 INSTALL 說明安裝 make dev reboot linux 6. 接著解壓縮Libdc1394-0.8.2: tar zxvf libdc1394-0.8.2.tra.gz cd libdc1394-0.8.2 看 INSTALL 說明安裝 ./configure make make install 7. 接著解壓縮 pgk-config-0.8.0 tar zxvf pgkconfig-0.8.0.tar.gz cd pgkconfig-0.8.0 看 INSTALL 說明安裝 ./configure make make install 8. 接著安裝 Drgrabe: tar zxvf dvgrabe-1.0.tar.gz 看 INSTALL 說明安裝 ./configure make make install 9. 然後到 /usr/local/bin底下,打 ./dvgrabe –frames 200 qa 。說明:此行指令用意 在測試由 Dvgrabe 來接收 ‘ 控制 D.V的錄製檔案模式。錄製完成之後,會 看到一個 qa.avi 的檔案。 10 然後,就看到產生了一個 qa.avi 的檔案。我們可以在在 Linux or Microsoft O.S 底 下撥放所錄製的檔案是否可撥放及內容是否正確。 11. 同樣的,進X-Windows來使用 Gscanbus 驗證IEEE1394 bus連接狀態: Download gscanbus-0.7.1.tgz tar zxvf gscanbus-0.7.1.tgz cd gscanbus-0.7.1 看INSTALL 說明安裝 打 ./ gscanbus 之後,便可以在X-Windows上顯示現在所連接的device ,並且Gscanbus也可以即時反應Hot-plug的狀況。 結語: 有了Linux + SONY D.V + IEEE 1394 H.D = ?大家可以慢慢的想像可以拿來做那些” 有意義又不會虛擲光陰”的事情。 我問過一個 Coriander A.P 的維護者,他有提到關於IEEE 1394 Device對應建立的相關資 訊,提供給大家參考: Hello, You need to build the devices, of course. This can be done like this: mknod -m 666 /dev/raw1394 c 171 0 mknod -m 666 /dev/video1394 c 172 0 Damien Douxchamps (°- PhD Student / Research Assistant //\ Image Processing Group, Telecom Laboratory, UCL, Belgium V_/_ http://www.tele.ucl.ac.be/MEMBERS/Douxchamps_Damien_e.html 所須的檔案都在底下的參考資料找的到,祝大家使用愉快! 參考資料 IEEE 1394 for linux http://linux1394.sourceforge.net/start_req.html Gscanbus http://www.ivistar.de/0500opensource.php3?lang=en Libware 1394 http://download.sourceforge.net/libraw1394 Libdc 1394 http://sourceforge.net/projects/libdc1394 Dvgrab http://www.schirmacher.de/arne/dvgrab/dvgrab_download_e.html Pkg-config http://www.freedesktop.org/software/pkgconfig
Copyright 2001 A.H