made video compression codec configurable; switched from xvid to h264 by default