Hi,
I just played around with the idea to offload the motion detection for MJPG-streamer to the clients.

Instead of performing the motion detection on the potentially weak router, I would like to use the connected client and his web-browser. In order to have a simple to deploy client, I decided to try JavaScript (currently relies on Firefox >= 3.0.5) and its canvas element.

I wrote down my findings in a pdf file, hosted at: http://mjpg-streamer.wiki.sourceforge.n … Script.pdf

Have phun,
Tom