Create main_encode.sh