summaryrefslogtreecommitdiff
path: root/localvideowebencode
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2011-09-21 04:01:33 +0200
committerJonas Smedegaard <dr@jones.dk>2011-09-21 04:01:33 +0200
commitf6b93bfd787573c45081bdfc34a2f45db2a36168 (patch)
tree51e7ac0af281e908d0b2cbccb2dcc58dad865150 /localvideowebencode
parent0c0bccb5a8715ff12f17f6963817c97af14c1be6 (diff)
Resolve basename from last (not first) input file.
Diffstat (limited to 'localvideowebencode')
-rwxr-xr-xlocalvideowebencode4
1 files changed, 2 insertions, 2 deletions
diff --git a/localvideowebencode b/localvideowebencode
index d43285a..9fb22fd 100755
--- a/localvideowebencode
+++ b/localvideowebencode
@@ -46,7 +46,7 @@ Examples:
Arguments can be passed directly to the melt avformat consumer.
If multiple input files are provided, they are merged together and
-output files are named based on first input file.
+output files are named based on last input file.
Default options are optimal for 320x240 (qvga) and similar.
Suggested bitrates:
@@ -97,7 +97,7 @@ if [ $# -eq 0 ]; then
fi
# input filename (mandatory)
-infile="$1"
+infile="${$#}"
[ -e "$infile" ] || exit1 "Input file missing!"
filebase=$(echo "$infile" | perl -pe 's/\.[^.]*//')