fixing some errors in transcode.sh