From f6b93bfd787573c45081bdfc34a2f45db2a36168 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 21 Sep 2011 04:01:33 +0200 Subject: Resolve basename from last (not first) input file. --- localvideowebencode | 4 ++-- 1 file 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/\.[^.]*//') -- cgit v1.2.3