avi2mp4: support for spaces in filenames
authorHugo Villeneuve <hugo@hugovil.com>
Sun, 29 Mar 2020 19:05:07 +0000 (15:05 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Sun, 29 Mar 2020 19:05:59 +0000 (15:05 -0400)
scripts/avi2mp4

index 8ad5487..c9c3042 100755 (executable)
@@ -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}"