Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Having trouble with my digital video camera and my Linux Red Hat workstation.
When I attache my Canon ZR50 to my laptop via firewire the camera shows me [DV IN] (which is normal as far as I remember) but the device does not show up on my workstation.
lspci shows the firewire port as active but I never get an entry in /dev/fw* ... so I am not sure if my laptop has an issue or my camera.
I have not used it in a while and the last time I captured video from it was 2-3 years back when I still used Windows (different PC from what I have now)
Any idea where I can start digging to get to the bottom of this? I see no error in /var/log/messages ... a bit of a mystery.
Details: Lenovo T61p
OS: Red Hat 2.6.18-194.11.1.el5PAE
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 0c)
00:01.0 PCI bridge: Intel Corporation Mobile PM965/GM965/GL960 PCI Express Root Port (rev 0c)
00:19.0 Ethernet controller: Intel Corporation 82566MM Gigabit Network Connection (rev 03)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 (rev 03)
00:1c.4 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 5 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)
00:1f.0 ISA bridge: Intel Corporation 82801HBM (ICH8M-E) LPC Interface Controller (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)
01:00.0 VGA compatible controller: nVidia Corporation Quadro FX 570M (rev a1)
03:00.0 Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN [Kedron] Network Connection (rev 61)
15:00.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ba)
15:00.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 04)
15:00.2 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 21)
15:00.3 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 11)
15:00.4 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 11)
15:00.5 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 11)
You can load them via the modprobe command. i.e.
If all goes well you will not see any messages. The two applications that I have used in the past are dvgrab and kino to download video from the camera. If all that works you can add the modules to the /etc/modprobe.conf file.
I don't seem to have those modules. I checked and have raw1394.i386 inswtalled so I uninstalled it and re-installed .. no change:
# modprobe ohci1394
FATAL: Module ohci1394 not found.
# modprobe raw1394
FATAL: Module raw1394 not found.
# modprobe dv1394
FATAL: Module dv1394 not found.
# modprobe video1394
FATAL: Module video1394 not found.
I looked in the /lib/modules/2.6.18-194.11.1.el5PAE/kernel/drivers nd could not find any of the modules, just the firewire folder that contains the firewire-core.ko firewire-ohci.ko firewire-sbp2.ko modules.
I also looked in the left over kernel folders /2.6.18-194.3.1.el5PAE and /2.6.18-194.8.1.el5PAE and there was nothing there either. BTW - I never know .. can I ge rid of those old kernel folders or do I need to leave them hanging around? Unrelated to my current prpblem but I want to tidy up is necessary.
I found a firewire blacklist int eh system and commented the firewire out and restarted. I am kind assuming I might have to re-compile the kernel? Not sure, anybody who can point me in the right direction?
aha - so that means the modules I need to start with modprobe would then be these three firewire-core.ko firewire-ohci.ko firewire-sbp2.ko modules? I'll give that a wiz tonight at home and see if dvgrab works ... I should have though of trying that last night but it was LATE last night and I was burnt.
I tried the above and I can see the modules running. I am able to read the video from my flea2 camera connected through firewire , using Coriander. However, when I use this simple code from opencv, the camera is not being detected.
cout<<"Camera not detected"<<endl;
The output is always that the camera is not detected. Considering the value of the variable can be wrong, I even tried displaying the image from the frame and I got an error saying empty image and thus an error thrown by the Mat funtion. Can you please help me and tell me how to make it work in Opencv? Thanks in advance.