Fixed FFmpeg video timings and crashes. Also fixes the black screen problem with Ubuntu 14.04 #92