Just the info of how i stream to BATC.tv with ffmpeg...
ffmpeg -i /dev/video1 -deinterlace -acodec libmp3lame -s 352x288 -ac 2 -ab 64k -ar 22050 -f flv -r 15 -vcodec libx264 -preset fast -tune zerolatency -b:v 275k -minrate 275k -maxrate 275k -bufsize 275k "rtmp://fms.batc.tv/**********" -f image2 -updatefirst 1 -r 0.003125 -bt 80M -s 240x192 /var/www/thumbs/img%04d.jpg
This takes input from a hauppauge PVR-USB2, encodes to h.264 with mp3 audio and sends to the server.
The second part saves a raw image every five minutes from the capture device with a progressive number as file name.
I then use compare function in php from the webserver on the streaming pc to check if the image is different from the stock testcard images on GB3KM...
compare -metric PSNR image0005.jpg reference1.jpg
This returns a value which relates to the difference between the images, lower value means similar image.
Some more php removes the repeat testcard images and leaves the ones which are different (user images) and then spits out some html to create the image gallery on here:
www.batc.tv/streams/km
Hope that's useful for anyone else trying a similar thing!