This is just some sample code on how to stream video from a USB camera connected to a raspberry pi. Can be modified as required