ffmpeg streams/devices support

This patch enables the use of directshow devices, and live streams.

Based on https://github.com/CasparCG/Server/pull/120 by cambell-prince, with all the unnecessary changes removed.