parse tags and media info from file