initializing codec value for video source