Add function to get video codec