พอดีได้การ์ด WinTV PVR 150 มาจะเอามาใช้เป็น การ์ด capture google ดูได้วิธีตามนี้
ใส่ใน /etc/apt/source.list ว่า
deb http://www.hellion.org.uk/debian sid main
deb-src http://www.hellion.org.uk/debian sid main
$ sudo apt-get update
$ sudo apt-get install ivtv0.4-source module-assistant gcc-3.4 dpkg-dev
Next, you will need to tell module-assistant to get all dependancies. This will automatically get all required kernel header and associated packages.
$ sudo module-assistant prepare
Now you need to compile the driver into a package
$ sudo module-assistant auto-install ivtv0.4
$ sudo apt-get --compile source ivtv0.4-utils
$ sudo dpkg -i ivtv0.4-utils_0.4.3-1_i386.deb
# wget ftp://ftp.shspvr.com/download/wintv-pvr_150-500/inf/pvr_2.0.24.23035.zip
# wget ftp://ftp.shspvr.com/download/wintv-pvr_250-350/inf/pvr_1.18.21.22254_inf.zip
# unzip pvr_2.0.24.23035.zip
# ./ivtvfwextract.pl pvr_1.18.21.22254_inf.zip
# cp HcwMakoA.ROM /usr/lib/hotplug/firmware/v4l-cx25840.fw
# cp HcwFalcn.rom /usr/lib/hotplug/firmware/v4l-cx2341x-enc.fw
# mv /lib/modules/ivtv-fw-dec.bin /usr/lib/hotplug/firmware/
# mv /lib/modules/ivtv-fw-enc.bin /usr/lib/hotplug/firmware/
# cp ../v4l-cx2341x-init-mpeg.bin /usr/lib/hotplug/firmware
# ln -s /usr/lib/hotplug/firmware/ivtv-fw-dec.bin /usr/lib/hotplug/firmware/v4l-cx2341x-dec.fw
On breezy don't forget to link/copy the encoder to the /usr/local/lib/hotplug/firmware directory:
# sudo ln -s /usr/lib/hotplug/firmware/v4l-cx2341x-enc.fw /usr/local/lib/hotplug/firmware/
After this set of commands, if you execute
# ls -ltra /usr/lib/hotplug/firmware/
You should see
drwxr-xr-x 3 root root 4096 2005-12-18 10:04 ..
-rw-r--r-- 1 root root 262144 2005-12-23 20:05 ivtv-fw-enc.bin
-rw-r--r-- 1 root root 262144 2005-12-23 20:05 ivtv-fw-dec.bin
-r--r--r-- 1 root root 14264 2005-12-23 20:08 v4l-cx25840.fw
-r--r--r-- 1 root root 376836 2005-12-23 20:08 v4l-cx2341x-enc.fw
-rw-r--r-- 1 root root 155648 2005-12-24 13:33 v4l-cx2341x-init-mpeg.bin
lrwxrwxrwx 1 root root 41 2006-01-03 00:40 v4l-cx2341x-dec.fw -> /usr/lib/hotplug/firmware/ivtv-fw-dec.bin
drwxr-xr-x 2 root root 4096 2006-01-03 00:40 .
Now lets tell Ubuntu that we have ivtv modules.
Edit /etc/modules, and just stick "ivtv" at the end of the file.
Update:: this is not needed anymore because hotplug will detect the hardware at boottime and load the ivtv module. Also edit /etc/modprobe.d/aliases, and put the following line in where it fits:
alias char-major-81-0 ivtv
If you have a PVR-500, you also need to add the following line as well (increment the number for each card you have, the PVR-500 is actually 2 cards):
alias char-major-81-1 ivtv
Then, do the following:
# depmod
# modprobe ivtv
# dmesg
If, at the end of the output of dmesg (or /var/log/syslog), you see a section starting with ==START INIT IVTV== and ending with ==END INIT IVTV==, you are in good shape, as long as the text in between these markers is not filled with errors. Retrieved from "http://ivtvdriver.org/index.php/Howto:Ubuntu"
No comments:
Post a Comment