2009. január 3., szombat

SmartCam - Howto --- http://divilinux.netsons.org/index.php/archives/815

Mobil bluetooth webcam on linux

-------------------------------------------------------------------------------------------------

Download smartcam

Decomprimiamo il pacchetto .zip nella nostra /home directory:

cd ~/
unzip smartcam_v_2008.06.13.zip

Installazione Ubuntu

Sia il modulo che l’applicazione sono già stati compilati per il kernel 2.6.24-18-generic. Se abbiamo installato e in uso il 2.6.24-18-generic dobbiamo semplicemente caricare il modulo smartcam.ko (per emulare la webcam) e lanciare smartcam. Apriamo un terminale e spostiamoci nella directory smartcam/release:

cd ~/smartcam/release
sudo /sbin/insmod smartcam.ko
sudo /sbin/modprobe videodev

Nella directory smartcam/release/phone_files troviamo 3 files: se il nostro cellulare accetta file java (.jar) inviamo tramite bluetooth:

jSmartCam.jar

In caso contrario carichiamo gli altri due files:

  • SmartCamS603rdEd.SIS
  • SmartCamS602ndEd.SIS
  • Lanciamo il programma:

    cd ~/smartcam/release
    ./smartcam

    NB: La seguente versione è stata testata con Ubuntu 8.04 e il kernel 2.6.24-18-generic. Tuttavia potrebbe non funzionare con le utlime release delle bluez-utils.

    Installazione su kernel diverso da quello indicato:

    Piccolo check:

    1- Bisogna avere tutto l’occorrente per compilare
    2- Bisogna avere i kernel-headers installati o i sorgenti del kernel in uso
    3- Bisogna installare la libreria di sviluppo libbluetooth

    sudo apt-get install libbluetooth-dev

    Spostiamoci in:

    cd ~/smartcam/src/driver

    Compiliamo il driver:

    make -C /lib/modules/`uname -r`/build M=`pwd` modules

    Carichiamo il modulo con insmod:

    /sbin/modprobe videodev
    /sbin/insmod smartcam.ko

    NB: videodev è il driver dal quale smartcam.ko dipende. L’utility Insmod ha effetto solo fino al successivo riavvio. Per una installazione persistente di smartcam.ko è necessario copiare il modulo nella directory:

    sudo cp -v smartcam.ko /lib/modules/`uname -r`/kernel/drivers/media/video/

    Per avviare il modulo al boot, bisogna aggiungerlo alla lista in /etc/modules.

    Saliamo di una directory, entriamo in smartcam/src/app e compiliamo l’applicazione:

    cd ..
    cd apps
    gcc `pkg-config --cflags --libs gtk+-2.0 gthread-2.0` -lbluetooth smartcam.c -o smartcam

    Se tutto funziona correttamente, possiamo avviare il programma .jar o .sis appena installato sul nostro telefono e collegarlo (via bluetooth) al computer. Contemporaneamente dovremo attivare anche smartcam.

    -----------------------------------------------------------

    ----------------------------------------------------------

    -----------------------------------------------------------

    VideoDev-hez: http://ubuntuforums.org/showthread.php?t=664596

    Howto : DV camera as v4l device (webcam)

    Ok i've got a solution working on my gutsy install now to use my dv camcorder connected on 1394 to work as a webcam, its not pretty but it does work, I've never written a how to or guide but i'll do my best. This is also done using subversion packages so is probably unstable/unlikely to work perfectly however its still worth a go i think.

    this assumes that you've got the camera workin alright in programs such as kino etc first.

    You need a few things to start with so in a terminal do

    1:sudo apt-get install libdv-dev libiec61883-dev libraw1394-dev subversion build-essential camorama linux-headers-$(uname -r)

    that should be everything (unless i've forgotten things, i wasnt taking notes)(duh)

    firstly you need the vloopback module loaded and working properly,

    1: download the package from here http://www.lavrsen.dk/twiki/pub/Moti...ack-1.0.tar.gz
    (vagy innen)
    2: untar it
    3: in a terminal cd to the directory
    4: make
    5: sudo -s
    6: make install
    7: modprobe videodev
    8: modprobe vloopback
    9: exit

    that should be the vloopback module loaded. next is to install the dependencies for dv4linux

    Plug in your camera and switch it on (i forgot the first few times)

    Now to actually download DV4L

    1: cd
    2: svn checkout svn://svn.berlios.de/dv4l/trunk
    3: cd ./trunk
    4: ./configure
    5: make
    6: sudo make install

    that should be it installed, open a run dialog (press alt + f2 i think) or type in a terminal

    1: "dv4l"
    2: start camorama from the graphics menu and see if you have anything , it should come up like the screenshots.

    good luck - any corretions more than welcome, i just scribbled this down before i forgot.

    A huge thanks to the developer of DV4Linux !! http://developer.berlios.de/projects/dv4l/

    Nincsenek megjegyzések: