Still some threading issues. Not sure what the problem is, but sometimes the thread writing to ffmpeg locks up for some reason..