Video recorder in java