projects
/
hvutilities.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17221ee
)
avi2mp4: support for spaces in filenames
author
Hugo Villeneuve
<hugo@hugovil.com>
Sun, 29 Mar 2020 19:05:07 +0000
(15:05 -0400)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Sun, 29 Mar 2020 19:05:59 +0000
(15:05 -0400)
scripts/avi2mp4
patch
|
blob
|
history
diff --git
a/scripts/avi2mp4
b/scripts/avi2mp4
index
8ad5487
..
c9c3042
100755
(executable)
--- 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}"