From: Hugo Villeneuve Date: Sun, 29 Mar 2020 19:05:07 +0000 (-0400) Subject: avi2mp4: support for spaces in filenames X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=1f1daa9003bda7b3c5beb0f30c8912b292043989;p=hvutilities.git avi2mp4: support for spaces in filenames --- diff --git a/scripts/avi2mp4 b/scripts/avi2mp4 index 8ad5487..c9c3042 100755 --- a/scripts/avi2mp4 +++ b/scripts/avi2mp4 @@ -59,7 +59,7 @@ if [ ${#} -ne 1 ]; then exit 1 fi -src=${1} +src="${1}" # Checking if input file exist. if [ ! -f $1 ]; then @@ -70,4 +70,4 @@ fi dest=`echo "${src}" | sed s/\.avi$/.mp4/g` -ffmpeg -i ${src} ${VIDEO_OPTS} ${audio_opts} ${dest} +ffmpeg -i "${src}" ${VIDEO_OPTS} ${audio_opts} "${dest}"