[UPDATE:] http://marclandolt.ch/script/vlc.tar (2016-04-11)
explizit crasht der vlc das Linux Video System, somit kann ein Kind das erfolgreicht mit trial und error funktionsmodule (z.B. Software) lernt, und somit nicht nur den schmalen vorgegebenen weg lernt sondern die ganze Wissens-Map getriggert werden weil es immer rebooten muss; workaround USB System automatisch neu starten ohne reboot
#!/bin/bash
#explizit crasht der vlc das video system, somit kann ein kind das erfolgreicht mit trial und error die ganze map lernt getriggert werden workaround automatisch ohne reboot, usb video system neu starten:
sudo rmmod uvcvideo
sudo rmmod videobuf2_core
sudo rmmod v4l2_common
sudo modprobe v4l2_common
sudo modprobe videobuf2_core
sudo modprobe uvcvideo
dir=$(date +%y%m%d%H%M%s)
mkdir ./$dir
for i in 0 1 2 3
do
vlc v4l2:// :v4l2-dev=/dev/video$i :v4l2-width=320 :v4l2-height=240 \
--sout "#transcode{vcodec=VP80,vb=1500,deinterlace,acodec=vorb,ab=128,channels=2,samplerate=44100} \
:standard{access=file,dst=standard.avi}" \
:sout="#duplicate{dst=std{access=file,dst=./$dir/Cam$i.avi}, dst=display}". &
done
#Fenster auf 2 Reihen und 2 Zeilen verteilen
sudo apt-get install x-tile
x-tile g 2 2
oder als Stream
cvlc v4l2:// :v4l2-dev=/dev/video1 :v4l2-width=320 :v4l2-height=240 :adev=:0,0 --sout '#transcode{vcodec=mp1v,vb=8000,scale=1,acodec=mpga,ab=256,channels=2} :duplicate{dst=std{access=http,mux=ts,dst=:8080}}'
mit Player
apt-get install mplayer mplayer http://localhost:8080
oder beides zusammen
vlc v4l2:// :v4l2-dev=/dev/video1 :v4l2-width=320 :v4l2-height=240 :adev=:0,0 –sout ‹#transcode{vcodec=mp1v,vb=8000,scale=1,acodec=mpga,ab=256,channels=2} :duplicate{dst=std{access=http,mux=ts,dst=:8080}, dst=std{access=file,dst=./Cam1.avi}, dst=display}›
Beispiel Script: webcam_808x.sh
Script für Upload auf FTP Server
cam-upload.sh
allenfalls braucht es vor dem «put …» noch ein «binary»