Bugfix in VideoCapture - the calculated buffer size was 32 bytes off. Got encoding to mp4 working (had to select the ultrafast preset)