add broader herlp func for media encoding