QUIET='n'
SIMULATE="n"
-VERSION="0.5"
+VERSION="0.6"
# console colors:
RED=""
info "Start converting '${src}' => '${tgt}' ..."
sleep 2
- local verbose_opt=""
- if [[ "${VERBOSE}" == "y" ]] ; then
- verbose_opt="--verbose "
- fi
-
RM -f divx2pass.log frameno.avi
echo
- local cmd="${CONVERT_SCRIPT} ${verbose_opt}-y -S ${RESOLUTION} -T \"${title}\" \"${src}\" \"${tgt}\""
+ local cmd="${CONVERT_SCRIPT}"
+ if [[ "${VERBOSE}" == "y" ]] ; then
+ cmd+=" --verbose"
+ fi
+ if [[ "${SIMULATE}" == "y" ]] ; then
+ cmd+=" --simulate"
+ fi
+ cmd+=" --yes --scale ${RESOLUTION} --title \"${title}\" \"${src}\" \"${tgt}\""
echo
sleep 2
if [[ "${SIMULATE}" == "y" ]] ; then
info "Executing: ${cmd}"
else
debug "Executing: ${cmd}"
- eval ${cmd} "$@"
fi
+ eval ${cmd}
echo
if [[ -n "${LINK_DIR}" ]] ; then