Launch VLC as a background recorder and streamer

We have found an elegant solution starting vlc with the following command:

start /min “VLCStreamer” c:\”Program Files”\VideoLAN\vlc\vlc -vvv -Ihttp dshow:// :dshow-vdev=”Sony Visual Communication Camera VGP-VCC7″ :sout=#transcode{fps=10,vcodec=h264,vb=0,scale=0,acodec=mp4a,ab=128,channels=2,samplerate=44100}:duplicate{dst=file{dst=VlcStream.mp4},dst=http{dst=:8080/stream.flv}} :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep vlc://quit

To stop streaming and properly close VLC and the mp4 file we do a command:

wget “http://localhost:8080/requests/status.xml?command=pl_next”

Bad Behavior has blocked 95 access attempts in the last 7 days.