summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlocalvideowebencode8
1 files changed, 5 insertions, 3 deletions
diff --git a/localvideowebencode b/localvideowebencode
index a0a90c6..3b0a5d2 100755
--- a/localvideowebencode
+++ b/localvideowebencode
@@ -166,9 +166,10 @@ stem=${stem:-$(basename "$infile_first" | perl -pe 's/\.[^.]*//')}
title=${title:-$stem}
case "$profile" in
+ '') :;;
*@*)
while read s r foo; do
- size="${size:-$s}"
+ profilesize="${size:-$s}"
framerate="${framerate:-$r}"
done << EOF
$(echo "$profile" | perl -F@ -anE 'say join " ", @F')
@@ -176,14 +177,14 @@ EOF
;;
*p*)
while read s r foo; do
- size="${size:-${s}p}"
+ profilesize="${size:-${s}p}"
framerate="${framerate:-$r}"
done << EOF
$(echo "$profile" | perl -Fp -anE 'say join " ", @F')
EOF
;;
*)
- size="$profile"
+ profilesize="$profile"
;;
esac
@@ -200,6 +201,7 @@ case "$size" in
720p|wxga|hd) size=1280x720;;
esac
+size=${size:-$profilesize}
if [ -n "$size" ]; then
while read w h foo; do
width="${width:-$w}"