get meta info from input stream