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.
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
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.
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"
http://effectv.sourceforge.net/
cd /home/jjl/data/install/flashcam/flashcam-1.4.4
|