streamToInternet.sh

#!/bin/sh
 
VCODEC=mp4v
 
echo "--- $0 $@ ---"
 
if [ $1 == "-hq" ]; then
	VCODEC=h264
fi
 
vlc v4l:/dev/video0 --sout '#duplicate{dst=display,dst="transcode{vcodec=$VCODEC,vb=128}:standard{access=http,mux=ts,url=:8888}"}' --ttl 16 --noaudio