LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   trying to install easycap usb video capture device (http://www.linuxquestions.org/questions/linux-hardware-18/trying-to-install-easycap-usb-video-capture-device-4175475943/)

ihavequestions 09-04-2013 06:08 PM

trying to install easycap usb video capture device
 
http://linuxtv.org/wiki/index.php/Easycap

The above gives the driver:


https://git.kernel.org/cgit/linux/ke...edia/usb/usbtv


It lists 3 files:

Mode Name Size
-rw-r--r-- Kconfig 338 logstatsplain
-rw-r--r-- Makefile 37 logstatsplain
-rw-r--r-- usbtv.c 19399 logstatsplain



I've downloaded all 3 drivers into a directory and chmod them to 777, however, I can't seem to get them installed.

What is the exact syntax I would type in my shell to install this driver?




Quote:

Extra information from http://linuxtv.org/wiki/index.php/Easycap
#########################################################################
USBTV007 EasyCAP

This EasyCAP is based on a single UTV007 labeled chip.

This device is sold as "USB video capture QS702" from SHENZHEN FUSHICAI ELECTRONIC CO.,LTD

lsusb reports

Manufacturer: Fushicai
Product: usbtv007

Components Used

Single chip: UTV007 A614231.1 1136L1BK
Inscriptions on the board: FSC VIDEO DVR

Indentification

# lsusb
Bus XXX Device XXX: ID 1b71:3002

Full lsusb -v
Making it work

Linux kernel driver, enable CONFIG_VIDEO_USBTV: https://git.kernel.org/cgit/linux/ke...edia/usb/usbtv

From 3.11 ("Linux for Workgroups") on: Supports NTSC, Composite input
Queued for 3.12: S-Video input
In works: Controls (brightness, ...)

Also, a very experimental (for testing purposes only) userspace driver is available on github: http://github.com/memeruiz/usbtv007

Currently doesn't do anything beyond what kernel driver does
Written using Python libusb1 and v4l bindings
Requires v4l loopback
Could be useful for easy protocol testing, prototyping

Work needed

PAL support
Testing and fixing of eventual bugs is very welcome!
Audio? Windows XP does not provide an audio device for the grabber; maybe another Windows driver is needed? (Please let us know, if it works for you!)

The Windows driver shipped with the device was for another model. Here's the correct one: http://v3.sk/~lkundrak/usbtv/usbtv-wxp32.zip

Slides from talk describing setup for reverse-engineering what does the hardware do are available: http://www.slideshare.net/LubomirRintel/usb-reversing

Quote:

What I've tried already:

#~/Downloads/easycap$ ls
Kconfig Makefile usbtv.c
#~/Downloads/easycap$ Makefile
Makefile: command not found
#~/Downloads/easycap$ ./Makefile
bash: ./Makefile: Permission denied
#~/Downloads/easycap$ chmod 777 ./*
#~/Downloads/easycap$ ./Makefile
./Makefile: line 1: !DOCTYPE: No such file or directory
./Makefile: line 2: syntax error near unexpected token `newline'
./Makefile: line 2: ` "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'
#~/Downloads/easycap$ make install
Makefile:1: *** missing separator. Stop.
#~/Downloads/easycap$ sudo make install
[sudo] password for username:
Makefile:1: *** missing separator. Stop.
#~/Downloads/easycap$ ls
Kconfig Makefile usbtv.c
#~/Downloads/easycap$ config
No command 'config' found, did you mean:
Command 'fconfig' from package 'redboot-tools' (main)
Command 'zconfig' from package 'python-zconfig' (universe)
Command 'vconfig' from package 'vlan' (main)
Command 'mconfig' from package 'mono-devel' (main)
config: command not found
#~/Downloads/easycap$ ./configure
bash: ./configure: No such file or directory
#~/Downloads/easycap$ make
Makefile:1: *** missing separator. Stop.
#~/Downloads/easycap$ ls
Kconfig Makefile usbtv.c
#~/Downloads/easycap$ ./configure --CONFIG_VIDEO_USBTV
bash: ./configure: No such file or directory
#~/Downloads/easycap$ ./configure --Kconfig
bash: ./configure: No such file or directory
#~/Downloads/easycap$ ./configure Kconfig
bash: ./configure: No such file or directory
#~/Downloads/easycap$ help configure
bash: help: no help topics match `configure'. Try `help help' or `man -k configure' or `info configure'.
#~/Downloads/easycap$ man configure
No manual entry for configure
#~/Downloads/easycap$ ./configure --prefix=/usr/local
bash: ./configure: No such file or directory
#~/Downloads/easycap$ sudo ./configure --prefix=/usr/local
sudo: ./configure: command not found
#~/Downloads/easycap$ sudo configure --prefix=/usr/local
sudo: configure: command not found
#~/Downloads/easycap$ ./sudo configure --prefix=/usr/local
bash: ./sudo: No such file or directory
#~/Downloads/easycap$ configure
configure: command not found
#~/Downloads/easycap$ ./configure
bash: ./configure: No such file or directory
#~/Downloads/easycap$ sudo make
Makefile:1: *** missing separator. Stop.
#~/Downloads/easycap$ sudo ./make
sudo: ./make: command not found
#~/Downloads/easycap$ config VIDEO_USBTV
No command 'config' found, did you mean:
Command 'fconfig' from package 'redboot-tools' (main)
Command 'zconfig' from package 'python-zconfig' (universe)
Command 'vconfig' from package 'vlan' (main)
Command 'mconfig' from package 'mono-devel' (main)
config: command not found
#~/Downloads/easycap$ ./config VIDEO_USBTV
bash: ./config: No such file or directory
#~/Downloads/easycap$

gdejonge 09-05-2013 01:28 AM

The driver you are referring to is a new addition to the 3.11 kernel. So if you want to use it you have to compile your own 3.11 kernel or backport the driver to the kernel you're using at the moment.

As for the Kconfig and Makefile files, these are part of the kernel configuration and build system and not the driver itself.
The usbtv.c file is the source file for the driver.

Cheers

ihavequestions 09-05-2013 04:14 AM

Ok so I've never compiled my own kernel. Is it a dangerous thing to do? How would I do that and include this hardware driver to it?

nathank33 09-05-2013 03:09 PM

I'm having the same problem compiling the drivers, I was using these tutorials for a bit to try it:
http://www.wikihow.com/Compile-the-Linux-Kernel
http://www.rt-embedded.com/blog/arch...-with-kconfig/

I downloaded the newest kernel files and placed the information from the KConfig and the Makefile into respective files under linux-3.11/drivers/net and then I placed the usbtv.c into that directory as-well. I've never compiled my kernel before, am I on the right track? Is there an easier way to just load the driver without having to build it into the kernel?

ihavequestions 09-05-2013 03:26 PM

Quote:

Originally Posted by nathank33 (Post 5022551)
I'm having the same problem compiling the drivers, I was using these tutorials for a bit to try it:
http://www.wikihow.com/Compile-the-Linux-Kernel
http://www.rt-embedded.com/blog/arch...-with-kconfig/

I downloaded the newest kernel files and placed the information from the KConfig and the Makefile into respective files under linux-3.11/drivers/net and then I placed the usbtv.c into that directory as-well. I've never compiled my kernel before, am I on the right track? Is there an easier way to just load the driver without having to build it into the kernel?

I don't know how to do it but I found this tutorial:

http://mitchtech.net/compile-linux-k...-lts-detailed/

nathank33 09-06-2013 02:05 PM

I just received the Sabrent USB-AVCPT A/V-to-USB 2.0 Digital Video Adapter from Amazon, and I got it to work with Mplayer, VLC, and Skype right out of the box.

ihavequestions 09-06-2013 02:59 PM

Quote:

Originally Posted by nathank33 (Post 5023218)
I just received the Sabrent USB-AVCPT A/V-to-USB 2.0 Digital Video Adapter from Amazon, and I got it to work with Mplayer, VLC, and Skype right out of the box.

That's good to know for people who might buy the right hardware first, but I already bought the EasyCap and want it to work with Ubuntu.


All times are GMT -5. The time now is 01:28 PM.