GettingStarted - Manouchehri/smi2021 GitHub Wiki
Summary
Step-by-step guide to using your Somagic EasyCAP under Linux
Table of contents
- Getting help
- Prerequisites
- Downloading and installing official releases
- Downloading and building git sources
- Extracting firmware
- Performing user space capture
Getting help
Go here: Home#Getting_help_or_contributing
NOTE: Comments added to this wiki page are not actively monitored.
NOTE: To get the device to appear in /dev, so you can use it with Video4Linux
enabled applications, you will need to use the kernel module see BuildingKernelModule
Prerequisites
- GNU/Linux. There has also been success with OS X, see here: http://code.google.com/p/easycap-somagic-linux/issues/detail?id=7
- USB 2.0 capable USB port. USB 1.1 will not work (it's too slow, for one thing).
- Somagic variant of the EasyCAP. To determine that: plug in the EasyCAP, run "
lsusb
", and verify "1c88:0007 Somagic, Inc
" or "1c88:003d Somagic, Inc
". - EasyCAP USB 2.0 Video Adapter with Audio or EasyCAP002 4-Channel USB 2.0 DVR installation CD-ROM.
Downloading and installing official releases
Go to the Downloads tab, and select the appropriate file for your system. Specific details follow:
somagic-capture Debian package
- Install dependencies and suggested packages with "
apt-get install libusb-1.0-0 libgcrypt11 mplayer usbutils
". - Install the Debian package with "
dpkg -i somagic-easycap_
VERSION_
ARCH.deb
".
somagic-capture-tools Debian package
- Install dependencies and suggested packages with "
apt-get install libgcrypt11 wine
". - Install the Debian package with "
dpkg -i somagic-easycap-tools_
VERSION_
ARCH.deb
".
somagic-capture source package
- Install build and usage dependencies: make, gcc, libusb-1.0-0 (and development headers), libgcrypt11 (and development headers), mplayer (optional), lsusb (optional).
- Unpack the source package with "
tar xvf somagic-easycap_
VERSION.tar.gz
". - Change to the source directory
- See the README file for additional instructions.
- Run "
make
". - Run as root "
make install
".
somagic-capture-tools source package
- Install build and usage dependencies: make, gcc, libgcrypt11 (and development headers), wine (optional).
- Unpack the source package with "
tar xvf somagic-easycap-tools_
VERSION.tar.gz
". - Change to the source directory
- See the README file for additional instructions.
- Run "
make
". - Run as root "
make install
".
Downloading and building git sources
- Install the following programs and libraries: git, make, gcc, libusb-1.0-0 (and development headers), libgcrypt11 (and development headers), wine, mplayer, lsusb. If you are running Debian or Ubuntu, install the following packages: git, build-essential, libusb-1.0-0-dev, libgcrypt11-dev, wine, mplayer, and usbutils.
- For Debian package building, additionally install the fakeroot, devscripts, and debhelper packages.
- Go to the directory where you want the source tree, then run "
git clone https://code.google.com/p/easycap-somagic-linux/
". - If you have git commit access, update your ~/.netrc and ~/.gitconfig files, as appropriate.
- To update the git tree in the future, use "
git pull"
. - Run "
./build_packages 1.1
" from the source tree root directory to build Debian packages.
Extracting firmware
- Please do not ask for or provide links to the copyrighted firmware. If you don't have your driver CD, you might be able to find the firmware online via a web search.
- Using wine, run "
Drivers/Setup.exe
" (or sometimes "Driver/Setup.exe
"), on the EasyCAP installation CD. For the EasyCAP DC60, this should create a file named "Program Files/Common Files/Somagic/SmiUsbGrabber3C/xp/SmiUsbGrabber3C.sys
". For EasyCAP002 this should create a file named either "Program Files/Common Files/Somagic/SmiUsbGrabber3E/xp/SmiUsbGrabber3E.sys
" or "Program Files/Common Files/Somagic/SmiUsbGrabber3F/xp/SmiUsbGrabber3F.sys
". - Run "
cp ~/.wine/drive_c/Program\ Files/Common\ Files/Somagic/SmiUsbGrabber3*/xp/SmiUsbGrabber3*.sys SmiUsbGrabber.sys
". - Run as root "
somagic-extract-firmware SmiUsbGrabber.sys
", to create "/lib/firmware/somagic_firmware.bin
".
Performing user space capture
- Plug in the EasyCAP device.
- Run "
somagic-init
" to initialize the EasyCAP device, which changes its USB id. This step is not necessary for the EzCAP USB 2.0, which is automatically initialized. If there is no output, initialization was successful. However, to manually verify whether initialization was successful, re-run "somagic-init
" or check "lsusb
" for the new id "1c88:003c Somagic, Inc
" (EasyCAP DC60), "1c88:003e Somagic, Inc
" (EasyCAP002), or "1c88:003f Somagic, Inc
" (EasyCAP002). You can also run "somagic-capture --test-only
" and check for a return code of 0 with "echo $?
". - For EzCAP USB 2.0 only, run "
modprobe -r usbhid
". - Activate your video source and ensure video is connected, either via CVBS/composite (any device), or S-VIDEO (EasyCAP DC60 or EzCAP USB 2.0). For the EasyCAP002 the correct plug may vary. First try "2", then "3".
- Choose and run a usage example from "
man somagic-capture
".