Broke video capturing into two threads

Image processing with background subtraction was taking too much thread
time and causing the H.264 decoder to take shortcuts in order to keep up
with the source