rodizio1 / EZ-WifiBroadcast

Affordable Digital HD Video Transmission made easy!
GNU General Public License v2.0
817 stars 200 forks source link

USBtv007 driver #102

Closed vonfrank closed 6 years ago

vonfrank commented 6 years ago

Would it be possible to add a driver for USBtv007? I have a gimbal which only provides analog video out, and it would be cool if i could plug an analog to usb converter on, and have my gimbal video as a stream/secondary stream.

rodizio1 commented 6 years ago

If it's just enabling a driver in the kernel I can do that. Just did a quick google search but couldn't find which driver it is exactly or how the kernel module or config option is named, do you happen to know that?

geofrancis commented 6 years ago

it would be better if you enabled the UVC drivers since they are universaly compatible so you can use a UVC camera, video capture etc. as far as i know the drivers should already be in raspberry pi os.

modinfo uvcvideo

vonfrank commented 6 years ago

@geofrancis would that work with the various easycap dongles? They come with serveral chips, the one i have is UTV007 (Fushicai)..

vonfrank commented 6 years ago

@rodizio1, have been digging into this, and i found this guide. http://raspberry-at-home.com/video-grabber-for-raspberry-pi/

According to this, unfortunately the driver isn't a part of the default kernel module, but the driver can be found in this package: https://github.com/gkaindl/ambi-tv/archive/master.zip

If it wouldn't be an included feature, could you guide me in a direction, so i can learn, how to do it myself? I would like to learn a bit more about linux, and i would like to be able to add this feature myself aswell..

Thanks

geofrancis commented 6 years ago

The problem with UTV007 chip is its only in a specific version of the easycap dongle so its a bit of a pain in the arse to find. where as with UVC you get compatibility with a lot of devices from cameras to capture cards.

just search for uvc capture, you can find them for less than $10

like this for analog https://www.ebay.co.uk/itm/Portable-No-Driver-UVC-USB-2-0-Video-Audio-Capture-Card-RCA-Composite/253108981866?hash=item3aee78906a:g:73MAAOSwxVpZjWxe

HDMI: https://www.ebay.co.uk/itm/HDV-UH60-UVC-HDMI-to-USB3-0-Video-Capture-Dongle-60FPS-Box-fr-Windows-C69-Local/122878527207?hash=item1c9c2186e7:g:g0EAAOSwcgNZG7p6

camera: https://www.ebay.co.uk/itm/2MP-1080P-30fps-60fps-120fps-CMOS-Wide-Angle-170degree-Lens-UVC-USB-Camera-Mini/322183447730?hash=item4b03a144b2:g:w1wAAOSwbYZXfNJb

vonfrank commented 6 years ago

i get your point, but i just had a couple of easycap lying around, and i just found it to be very popular when i was searching for a capture card..

rodizio1 commented 6 years ago

I'll have to agree with geofrancis, too much hassle and effort to get that special external driver working for just one (discontinued by now?) chip when there is a built-in generic uvc video driver.

The uvcvideo driver is already compiled-in in the current EZ-Wifibroadcast 1.6RC5 release, just checked it:

root@wifibroadcast(rw):~# modinfo uvcvideo
filename:       /lib/modules/4.9.35-v7/kernel/drivers/media/usb/uvc/uvcvideo.ko
version:        1.1.1
license:        GPL
description:    USB Video Class driver
author:         Laurent Pinchart <laurent.pinchart@ideasonboard.com>
srcversion:     FD649E242077291DE814978

If you want to have a stab at your usbtv007, you need to download the kernel sources and apply patches, compile it (see the /kernel/ directory in this repo for instructions and patches), install it and then compile and install the external drivers.

geofrancis commented 6 years ago

so how would i go about trying a uvc device with wifibroadcast?

rodizio1 commented 6 years ago

I have never used such a device. I guess connecting it, checking with dmesg if it's been detected and then running v4linux-something to configure it? Sorry can't help much there.