add upload.sh. fix the encoder delay