flashcam

Dernière modification : 2010/03/28 19:17

Comment utiliser une webcam avec flash sous linux.

Tout est la http://www.swift-tools.net/Flashcam/
L'idée est de streamer la video v4l2 vers un device loopback v4l1 seuls supportés par le flash player 10.

install

wget http://www.swift-tools.net/Flashcam/flashcam-1.4.4.tgz
tar xvzf flashcam-1.4.4.tgz
cd flashcam-1.4.4/
make
sudo make install

pour désinstaller:
sudo make uninstall


utilisation

Voir les devices supportés :
$ ./flashcam -S
Scanning devices
------
Found V4L2 Capture device: /dev/video1. spca561/Camera. Current Size:  160x120 Format: GBRG
------
No video loopback devices found.
As root, start video loopback driver with:
# modprobe vloopback pipes=1


Installer le loopback:
./flashcam -L
# ou le modprobe ci-dessus


lancer le streaming :
$ ./flashcam
Scanning devices
------
Found V4L2 Capture device: /dev/video1. spca561/Camera. Current Size:  320x240 Format: S561
Found V4L Video loopback input: /dev/video3
------
Forwarding frames from /dev/video1 to /dev/video3
Input device: /dev/video1
Size = 160 x 120
Pixel format = GBRG
Bpl = 160


Enfin lancer l'appli en question:
$ ./flashcamwrap firefox ./Test/webcamtest.html


Et voila.

AVLD

http://allonlinux.free.fr/Projets/AVLD/

sudo modprobe avld
sudo modprobe avld width=352 height=288 fps=25
mencoder /home/jjl/data/fortcigogne/Videos/hsm3.avi -nosound -ovc raw -vf format=bgr24 -of rawvideo -o /dev/video4
mplayer tv:// -tv "driver=v4l:device=/dev/video4:noaudio:outfmt=rgb24"


effectv

http://effectv.sourceforge.net/

Chez moi

cd /home/jjl/data/install/flashcam/flashcam-1.4.4