aboutsummaryrefslogtreecommitdiffstats
path: root/ffuse-frame
diff options
context:
space:
mode:
Diffstat (limited to 'ffuse-frame')
-rwxr-xr-xffuse-frame10
1 files changed, 10 insertions, 0 deletions
diff --git a/ffuse-frame b/ffuse-frame
index d556203..2541e7c 100755
--- a/ffuse-frame
+++ b/ffuse-frame
@@ -30,11 +30,21 @@ fi
in_file="$1"
if test -z "${in_file}"; then
usage
+elif test ! "${in_file}" = -; then
+ in_file="file:${in_file}"
+else
+ printf '%s: - is not supported for in-file\n' "$0" >&2
+ exit 1
fi
out_file="$2"
if test -z "${out_file}"; then
usage
+elif test ! "${out_file}" = -; then
+ out_file="file:${out_file}"
+else
+ printf '%s: - is not supported for out-file\n' "$0" >&2
+ exit 1
fi
ffmpeg -i "${in_file}" -ss "${ss}" -update 1 -frames:v 1 -c:v png -f image2pipe - | \