muxsa-pngaac2mp4: restore default output file name
This commit is contained in:
parent
496816ae65
commit
4f2763c5e4
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# muxsa-pngaac2mp4
|
# muxsa-pngaac2mp4
|
||||||
#
|
#
|
||||||
# part of muxsa, https://git-nks-public.tik.uni-stuttgart.de/edu/muxsa
|
# part of muxsa, https://git-nks-public.tik.uni-stuttgart.de/edu/muxsa
|
||||||
#
|
#
|
||||||
@ -8,23 +8,23 @@
|
|||||||
# a series of slides in png file format (created with muxsa-kvm2png),
|
# a series of slides in png file format (created with muxsa-kvm2png),
|
||||||
# a soundtrack.aac (recorded with audacity), and
|
# a soundtrack.aac (recorded with audacity), and
|
||||||
# a ffmpeg concat multiplexer sequence file (created with muxsa-al2fc)
|
# a ffmpeg concat multiplexer sequence file (created with muxsa-al2fc)
|
||||||
# and multiplex everything together
|
# and multiplex everything together
|
||||||
# into a mp4 video of the slideshow with background narration
|
# into a mp4 video of the slideshow with background narration
|
||||||
|
|
||||||
# MIT License
|
# MIT License
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 Sebastian Kiesel <sebastian.kiesel@tik.uni-stuttgart.de>
|
# Copyright (c) 2023 Sebastian Kiesel <sebastian.kiesel@tik.uni-stuttgart.de>
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
# copy of this software and associated documentation files (the "Software"),
|
# copy of this software and associated documentation files (the "Software"),
|
||||||
# to deal in the Software without restriction, including without limitation
|
# to deal in the Software without restriction, including without limitation
|
||||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
# and/or sell copies of the Software, and to permit persons to whom the
|
# and/or sell copies of the Software, and to permit persons to whom the
|
||||||
# Software is furnished to do so, subject to the following conditions:
|
# Software is furnished to do so, subject to the following conditions:
|
||||||
#
|
#
|
||||||
# The above copyright notice and this permission notice shall be included
|
# The above copyright notice and this permission notice shall be included
|
||||||
# in all copies or substantial portions of the Software.
|
# in all copies or substantial portions of the Software.
|
||||||
#
|
#
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
@ -36,7 +36,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# see https://trac.ffmpeg.org/wiki/Slideshow
|
# see https://trac.ffmpeg.org/wiki/Slideshow
|
||||||
|
|
||||||
echo "This is muxsa-pngaac2mp4."
|
echo "This is muxsa-pngaac2mp4."
|
||||||
|
|
||||||
# first, we need to define 3 file names - check command line, then defaults:
|
# first, we need to define 3 file names - check command line, then defaults:
|
||||||
# SLIDES_IN - concat multiplexer control file with png slide names
|
# SLIDES_IN - concat multiplexer control file with png slide names
|
||||||
@ -74,6 +74,10 @@ shift "$((OPTIND-1))"
|
|||||||
if [ -z "$VIDEO_OUT" -a -n "$1" ] ; then
|
if [ -z "$VIDEO_OUT" -a -n "$1" ] ; then
|
||||||
VIDEO_OUT="$1"
|
VIDEO_OUT="$1"
|
||||||
fi
|
fi
|
||||||
|
# last resort: default output file name
|
||||||
|
if [ -z "$VIDEO_OUT" ] ; then
|
||||||
|
VIDEO_OUT="out.mp4"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "$AUDIO_IN" -a -r "soundtrack.m4a" ] ; then
|
if [ -z "$AUDIO_IN" -a -r "soundtrack.m4a" ] ; then
|
||||||
echo "Setting AUDIO_IN to default file name soundtrack.m4a"
|
echo "Setting AUDIO_IN to default file name soundtrack.m4a"
|
||||||
|
Loading…
Reference in New Issue
Block a user