coolliz / easycap-somagic-linux

Automatically exported from code.google.com/p/easycap-somagic-linux
0 stars 0 forks source link

EasyCap on Fedora Core 16 64 Bit #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi all.
Fist my compliments for all your wonderful work!
I've a EasyCap-002 4 Video Composite input connected to a Linux Fedora 16 64 
bit distro, with 3.1.7 kernel 
[root@vitohost kernel]# uname -a
Linux vitohost 3.1.7 #1 SMP Mon Jan 16 13:15:31 CET 2012 x86_64 x86_64 x86_64 
GNU/Linux
Without compiling(installing any drivers this is kernel log and lsusb output 
when i attach the device:

---
[28414.021049] usb 1-3: new high speed USB device number 3 using ehci_hcd
[28414.135897] usb 1-3: New USB device found, idVendor=1c88, idProduct=0007
[28414.135904] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[28414.135909] usb 1-3: Product: SM-USB 007
[28414.135913] usb 1-3: Manufacturer: Somagic, Inc.
[28414.135917] usb 1-3: SerialNumber: SMBL007
[root@vitohost ~]# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 0461:4d2e Primax Electronics, Ltd Optical Mobile Mouse 
(HID)
Bus 001 Device 003: ID 1c88:0007 Somagic, Inc. 

---
I've downloaded the last git easycap-somagic-linux source version.
After, i've compiled and installed the easycap kernel diver without any problem.
I've extracted and installed firmware from 
SmiUsbGrabber3E/xp/SmiUsbGrabber3E.sys without any problem, whit 
somagic-extract-firmware tool.
When i attach the usb device this is the kernel messages:

---
[29694.284044] usb 1-3: new high speed USB device number 6 using ehci_hcd
[29694.398923] usb 1-3: New USB device found, idVendor=1c88, idProduct=0007
[29694.398930] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[29694.398935] usb 1-3: Product: SM-USB 007
[29694.398939] usb 1-3: Manufacturer: Somagic, Inc.
[29694.398943] usb 1-3: SerialNumber: SMBL007
mtp-probe: checking bus 1, device 6: 
"/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-3"
mtp-probe: bus: 1, device: 6 was not an MTP device
[29694.539021] Somagic-Easycap version: 0.1
[29694.539059] somagic_usb_probe: Probing for 1c88:0007
[29694.558967] usb 1-3: USB disconnect, device number 6
[29694.559443] usbcore: registered new interface driver somagic_easycap
[29694.792039] usb 1-3: new high speed USB device number 7 using ehci_hcd
[29694.906923] usb 1-3: New USB device found, idVendor=1c88, idProduct=003e
[29694.906930] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[29694.906935] usb 1-3: Product:  SMI Grabber Dev
[29694.906939] usb 1-3: Manufacturer:  Somagic, Inc.  
[29694.906943] usb 1-3: SerialNumber: SMIVIDEO3E9876543210
mtp-probe: checking bus 1, device 7: 
"/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-3"
mtp-probe: bus: 1, device: 7 was not an MTP device

---
There is no device /dev/videox created.
Now i've changed easycap-somagic-linux/kernel/somagic.h whit this:
//#define SOMAGIC_USB_PRODUCT_ID 0x003c
#define SOMAGIC_USB_PRODUCT_ID 0x003e
After loaded the kernel module now i see:

---
[33731.697050] usb 1-4: new high speed USB device number 22 using ehci_hcd
[33731.811886] usb 1-4: New USB device found, idVendor=1c88, idProduct=0007
[33731.811893] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[33731.811898] usb 1-4: Product: SM-USB 007
[33731.811902] usb 1-4: Manufacturer: Somagic, Inc.
[33731.811905] usb 1-4: SerialNumber: SMBL007
[33731.973709] Linux media interface: v0.10
[33732.001611] Linux video capture interface: v2.00
[33732.005997] Somagic-Easycap version: 0.1
[33732.006246] somagic_usb_probe: Probing for 1c88:0007
[33732.006250] somagic_usb_probe: Uploading FW,Pid:0007
[33732.025023] usbcore: registered new interface driver somagic_easycap
[33732.026174] usb 1-4: USB disconnect, device number 22
[33732.259045] usb 1-4: new high speed USB device number 23 using ehci_hcd
[33732.373886] usb 1-4: New USB device found, idVendor=1c88, idProduct=003e
[33732.373893] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[33732.373898] usb 1-4: Product:  SMI Grabber Dev
[33732.373902] usb 1-4: Manufacturer:  Somagic, Inc.  
[33732.373906] usb 1-4: SerialNumber: SMIVIDEO3E9876543210
[33732.374349] somagic_usb_probe: Probing for 1c88:003e
[33732.374354] somagic_usb_probe: valid Somagic-Easycap device. Now we setup 
the driver!
[33732.374514] somagic:somagic_dev_init_video:: First Ctrl msg returned 2 
bytes: 01 03
[33732.374519] somagic::somagic_dev_init_video: Setup PAL!
[33732.395630] somagic:somagic_dev_init_video:: SAA7113 Setup sent!
[33732.395851] Somagic[0]: registered Somagic Video device video0 [v4l2]

---
Now When i use vlc for capturing the program wait indefinitelly 
vlc -vvv "v4l2:///dev/video0"
whith this cutted output:

---
[0x7fb598001300] v4l2 demux debug: Found maximum framerate of -1.000000
[0x7fb598001300] v4l2 demux warning: Could not find optimal width and height, 
falling back to driver default.
[0x7fb598001300] v4l2 demux debug: Driver requires at most 829440 bytes to 
store a complete image
[0x7fb598001300] v4l2 demux debug: Interlacing setting: interleaved (bottom top 
if M/NTSC, top bottom otherwise)
[0x7fb598001300] v4l2 demux debug: added new video es UYVY 720x576
[0x7fb5a4000d10] main input debug: selecting program id=0
[0x7fb598001300] main demux debug: using access_demux module "v4l2"
[0x7fb598001300] main demux debug: TIMER module_need() : 9.521 ms - Total 9.521 
ms / 1 intvls (Avg 9.521 ms)
[0x7fb598002350] main decoder debug: looking for decoder module: 26 candidates
[0x7fb598002350] rawvideo decoder warning: invalid frame rate 0/0, using 25 fps 
instead
[0x7fb598002350] main decoder debug: using decoder module "rawvideo"
[0x7fb598002350] main decoder debug: TIMER module_need() : 9.930 ms - Total 
9.930 ms / 1 intvls (Avg 9.930 ms)
[0x7fb598002350] main decoder debug: thread (decoder) created at priority 0 
(input/decoder.c:301)
[0x7fb598002350] main decoder debug: thread started
[0x7fb598014710] main demux meta debug: looking for meta reader module: 1 
candidate
[0x7fb598014710] lua demux meta debug: Trying Lua scripts in 
/home/vito/.local/share/vlc/lua/meta/reader
[0x7fb598014710] lua demux meta debug: Trying Lua scripts in 
/usr/lib/vlc/lua/meta/reader
[0x7fb598014710] lua demux meta debug: Trying Lua playlist script 
/usr/lib/vlc/lua/meta/reader/filename.luac
[0x7fb598014710] lua demux meta debug: Trying Lua scripts in 
/usr/share/vlc/lua/meta/reader
[0x7fb598014710] main demux meta debug: no meta reader module matching "any" 
could be loaded
[0x7fb598014710] main demux meta debug: TIMER module_need() : 2.141 ms - Total 
2.141 ms / 1 intvls (Avg 2.141 ms)
[0x7fb5a4000d10] main input debug: `v4l2:///dev/video0' successfully opened

And in this point wait..............
Using userspace somagic_capture utility the situation is identically.
the cose is looped in this while loop, witouoit any output:
while (pending_requests > 0){
    libusb_handle_events(NULL);
}
Can i do something?
Thanks in advance.
Best regards.
Vito.

Original issue reported on code.google.com by vcov...@gmail.com on 17 Mar 2012 at 4:28

GoogleCodeExporter commented 9 years ago
Does the user space capture (somagic-capture) work when you have active video 
connected to composite plug "2" on the device?

Original comment by calam...@gmail.com on 18 Apr 2012 at 5:16