This device is quite inexpensive (AUD$52 delivered, on ebay), and can be used to capture composite video and sound, eg. from vhs videotapes. It also has an analogue Tv tuner which I have not tried yet. I have been able to watch videotapes using xawtv, tvtime, zapping, etc. and record them using mencoder, both with quite decent quality. There is plenty of info on the web about the Gadmei utv330 and 310 but not about the 330+.I bought it after I found a page detailing a succesful installation
http://hadiariawan.web.id/2008/01/12...er-gadmei-330/
This page is in indonesian but it was not too hard to work out with the help of a web translation tool
http://www.toggletext.com/
The instructions from there did not work for me but adding a few bits and pieces from other places did the trick. It apparently contains an em2861 chip which is supported by the em28xx driver. I am using Kubuntu 8.04 Hardy.
Here is the result of lsusb showing the manufacturer/product id.
My process to install this device was as follows.Code:michael@AsusKubuntu:~$ lsusb Bus 004 Device 005: ID eb1a:50a6 eMPIA Technology, Inc.
I used Adept (Can use Synaptic or sudo apt-get install PackageName on the command line.)
install the package mercurial
install the package linux-headers-$(uname -r) (May need the terminal for this one)
I have linux-source but I don't think I needed it.
install the package build-essential
install the package gcc
I think these packages are all you need.
Open a terminal so you can download the Video4Linux source to build the em28xx module and type
I ended up with a folder called /home/michael/v4l-dvb-kernel (117 MB) containing all the source code.Code:hg clone http://mcentral.de/hg/~mrec/v4l-dvb-kernel/
In the indonesian page above he says do
But when I did this, if my dvb card was connected and I did "modprobe em28xx" I got errors. This doesn't happen with non experimental.Code:hg clone http://mcentral.de/hg/~mrec/v4l-dvb-experimental
Within the v4l-dvb-kernel folder edit the file "linux/drivers/media/video/em28xx/em28xx.h" using kate or gedit etc.
Below the line
add a new lineCode:#define EM2882_BOARD_KWORLD_VS_DVBT 61
Now edit the file "linux/drivers/media/video/em28xx/em28xx-cards.c"Code:#define EM2861_BOARD_GADMEI_UTV330 62
Search for "EM2860_BOARD_GADMEI_UTV330"
Copy the block starting from
up to the line beforeCode:[EM2860_BOARD_GADMEI_UTV330] = {
and paste it where the block started so there are now two blocks the same.Code:[EM2820_BOARD_GADMEI_UTV310] = {
Edit the second block as follows,
On the first line of the block replace
withCode:EM2860_BOARD_GADMEI_UTV330
On the second line of the block add a plus sign to the end of the .name string to makeCode:EM2861_BOARD_GADMEI_UTV330
Now search for "0xa316", and after the lineCode:.name = "Gadmei UTV330+",
add a new lineCode:{ USB_DEVICE(0xeb1a, 0xa316), .driver_info = EM2883_BOARD_KWORLD_HYBRID_A316 },
This will cause the em28xx driver to be loaded when you plug it in (if it has a different lsusb id then put it in the above line). In the indonesian page above he says create the file /etc/modprobe.conf with "options em28xx card=62" in it but this was not necessary for me.Code:{ USB_DEVICE(0xeb1a, 0x50a6), .driver_info = EM2861_BOARD_GADMEI_UTV330 },
Now search for "EM2860_BOARD_GADMEI_UTV330" again, and below the line
add a new lineCode:case EM2860_BOARD_GADMEI_UTV330:
This is the code to turn on IR for the remote, which I have not tested.Code:case EM2861_BOARD_GADMEI_UTV330:
Now search for "EM2860_BOARD_GADMEI_UTV330" again, and below the line
add a new lineCode:case EM2860_BOARD_GADMEI_UTV330:
This is the code to turn off IR for the remote, which I have not tested.Code:case EM2861_BOARD_GADMEI_UTV330:
The next step is to compile and install. Open a terminal, cd to the folder v4l-dvb-kernel and type the commands as follows
There will be lots of output and it takes a while, I had some warnings but no errors.Code:cd v4l-dvb-kernel make sudo make install
You can now try
And hopefully get no errorsCode:sudo modprobe em28xx
The next step is to restart and plug the Gadmei into a usb port, then try
which should give something likeCode:dmesg
I'm not sure why it says "you're using the experimental/unstable tree" when I usedCode:[ 211.616025] usb 4-4: new high speed USB device using ehci_hcd and address 5 [ 211.671736] usb 4-4: configuration #1 chosen from 1 choice [ 212.191972] Linux video capture interface: v2.00 [ 212.239990] em28xx v4l2 driver version 0.0.1 loaded [ 212.240042] em28xx new video device (eb1a:50a6): interface 0, class 255 [ 212.240049] em28xx: device is attached to a USB 2.0 bus [ 212.240053] em28xx: you're using the experimental/unstable tree from mcentral.de [ 212.240058] em28xx: there's also a stable tree available but which is limited to [ 212.240062] em28xx: linux <=2.6.19.2 [ 212.240065] em28xx: it's fine to use this driver but keep in mind that it will move [ 212.240071] em28xx: to http://mcentral.de/hg/~mrec/v4l-dvb-kernel as soon as it's [ 212.240075] em28xx: proved to be stable
http://mcentral.de/hg/~mrec/v4l-dvb-kernel/ and not http://mcentral.de/hg/~mrec/v4l-dvb-experimental/
But it works. It creates /dev/video0 for video input (or video1 etc. if video0 is used I think).
I can connect my vcr to the composite and audio inputs of the Gadmei and watch videos using TVtime, xawtv, and motv but I need to plug the cable from the line out on the Gadmei to the microphone input (line in did not work) of my soundcard as these programs cannot connect to the digital sound inputs (Apparently a later version of TVtime can). I had to turn on the microphone input and adjust the sound levels using kmix to get sound and no distortion. I was not able to record to the hard disc using any of these programs so I used mencoder as follows
This command gets the audio from dev/audio1 (can use /dev/dsp1 too) and you don't need the soundcard cable. Mencoder has a vast array of sometimes confusing options but once you find the command line that works you can just use the up arrow in the terminal and edit your last command.Code:mencoder -tv driver=v4l2:width=720:height=576:input=1:norm=PAL-DK:fps=25:adevice=/dev/audio1 tv:// -o OutputFile.avi -ovc lavc -oac mp3lame
Useful hints:
You can find out the settings of the device using v4lctl (part of xawtv) as follows:
Also v4l2ucp is a useful graphical utility for setting volume, colour, etc. Tvtime, mencoder, and all the others mentioned seem to change some of these values when they start but you can still adjust just after you start a capture for example. The deb linked to from the v4l2ucp page did not install properly but I extracted the executable using ark and ran it in the home directory.Code:michael@AsusKubuntu:~$ v4lctl -c /dev/video0 list attribute | type | current | default | comment -----------+--------+---------+---------+------------------------------------- norm | choice | NTSC | NTSC | NTSC PAL-DK input | choice | Televis | Televis | Television Composite1 S-Video audio mode | choice | mono | mono | mono stereo lang1 lang2 bright | int | 0 | 0 | range is -128 => 127 contrast | int | 16 | 16 | range is 0 => 31 color | int | 16 | 16 | range is 0 => 31 volume | int | 31 | 31 | range is 0 => 31 mute | bool | on | on | Red chroma | int | 0 | 0 | range is -128 => 127 Blue chrom | int | 0 | 0 | range is -128 => 127 Gamma | int | 32 | 32 | range is 0 => 63
Many em28xx related posts that I found suggest installing a >2.6.24 patch, but you don't need to, it is in the v4l-dvb-kernel code already.
Good Luck.
Bookmarks