Menu

only smartcam app works, no external app

Help
Jozef Riha
2009-09-11
2013-05-28
  • Jozef Riha

    Jozef Riha - 2009-09-11

    hello, i got the module compiled, loaded and smartcam does display the camera input. the problem however is that nothing else than smartcam works with it. gstreamer-properties reports:

    Video for Linux 2 (v4l2): Could not open device '/dev/video0' for reading and writing.

    In fact there could be something wrong:

    cat /dev/video0
    cat: /dev/video0: Bad address

    does anyone know how to cure this?

     
  • named

    named - 2009-09-24

    Same here. I had to comment out line 599, /*.vfl_type = VID_TYPE_CAPTURE,*/ in smartcam.c in order to be able to compile the module. The smartcam app is working fine with bluetooth and wifi connection, however no other appliaction can recognize/open the device. I have tried with skype, kopete, tvtime, cat.

     
  • Jozef Riha

    Jozef Riha - 2009-10-13

    anyone able to fix this? paypal reward

     
  • Anonymous

    Anonymous - 2009-11-04

    The same issue shows up under Ubuntu Karmic, kernel 2.6.31.

    The error message is: "Cannot open '/dev/video0': 14, Bad address"

     
  • Anonymous

    Anonymous - 2009-11-04

    I analyzed the code a little bit.
    The error message comes from the open() call in src/SmartEngine.cpp.

    The -EFAULT comes from the kernel module in the call_to_user() function in smartcam_read().

     
  • Jozef Riha

    Jozef Riha - 2009-11-05

    @stephan79: are you able to fix it too?

     
  • Anonymous

    Anonymous - 2009-11-11

    I found a working patch in the smartcam ubuntu package at
    http://revu.ubuntuwire.com/p/smartcam.

    The patch is also available at http://en.pastebin.ca/1666682

     
  • named

    named - 2009-11-24

    Thanks for the info stephan79. It's working for me now.

     
  • Ulli_H

    Ulli_H - 2010-01-24

    Hello to everyone,

    it has been over 6 years that I patched a file. I mean I can not do much with the above  information.
    Could someone please tell me which exactly file(s) and with which commands I should patch?
    Thank you in advance.

     
  • Anonymous

    Anonymous - 2010-01-24

    hi ullli_h, i don't know which kernel version are you using but you can take some inspiration from http://aur.archlinux.org/packages/smartcam/smartcam/PKGBUILD. if it fails for you, i'm in touch with a very nice v4l programmer who is currently fixing the current smartcam driver to be able to compile (and work of course) with the latest kernel so if you want to test his patches you're welcome to. joe

     
  • Ulli_H

    Ulli_H - 2010-01-25

    Hi Joe,
    thank you for your reply and the very interesting link. I hope the programmer comes up with a complete deb that automates everything, like installing module etc.
    After making the first posting I googled around and found the following posting from fatihsanli58 which worked great for me with a small change:

    null

    After compiling the module I copied it to /lib/modules…. and made depmod -a
    then to point 8 of the instructions above :
    "gksu gedit /etc/modules add this line
    videodev"

    I didn't add videodev because my system didn't need it. I have Karmic on my lappy with newest kernel. I just added "smartcam" so that after reboot the /dev/video1 would always be created. But adding it wouldn't harm I suppose.
    Since I have a build-in webcam I also put first the module of my webcam and then smartcam in the file, otherwise smartcam becomes video0 and my webcam video1 which I want to avoid.
    I noticed that /dev/video0 and /dev/video1 are 0660 instead of 0666 as  mentioned in other postings but it works great for me and no complaints from smartcam when starting.
    As I mentioned, I still would be happy to see a complete deb package one day that automates everything. Unfortanetily I didn't have time untill today to get into packaging myself.
    Have all fun with smartcam it is fantastic and many many thanks to fatihsanli58 for his great tutorial.

     
  • Ulli_H

    Ulli_H - 2010-01-25

    Sorry people, something went wrong when putting the link.

    null is:  http://wwww.ubuntuforums.org/showthread.php?t=970777&page=3

     

Log in to post a comment.

MongoDB Logo MongoDB