projects
/
fgen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
79f431e
)
Use variable for video output file
author
Hugo Villeneuve
<hugo@hugovil.com>
Mon, 23 Oct 2023 21:28:56 +0000
(17:28 -0400)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Tue, 24 Oct 2023 16:04:17 +0000
(12:04 -0400)
fgen.sh
patch
|
blob
|
history
diff --git
a/fgen.sh
b/fgen.sh
index
686fff9
..
f303f1a
100755
(executable)
--- a/
fgen.sh
+++ b/
fgen.sh
@@
-171,10
+171,15
@@
function generate_video()
if [ x"${png_files}" != x"" ]; then
log_dbg "generate_video start"
if [ x"${png_files}" != x"" ]; then
log_dbg "generate_video start"
+
+ local outfile
+
+ outfile=${dest}/${group}.mp4
+
if [ ${dry_run} -eq 1 ]; then
if [ ${dry_run} -eq 1 ]; then
- touch ${
dest}/${group}.mp4
+ touch ${
outfile}
else
else
- ffmpeg ${FFMPEG_OPTS} -r ${fps} -pattern_type glob -i "${dest}/${
group}-f*.png" ${dest}/${group}.mp4
+ ffmpeg ${FFMPEG_OPTS} -r ${fps} -pattern_type glob -i "${dest}/${
dest}-${group}-f*.png" ${outfile}
fi
log_dbg "generate_video: end"
fi
log_dbg "generate_video: end"