Trap and return error in video writer
Print more error info with hr result
Progress on encoding h264 but rate rate must be set