aboutsummaryrefslogtreecommitdiffstats
path: root/ffextract-frame
diff options
context:
space:
mode:
Diffstat (limited to 'ffextract-frame')
-rwxr-xr-xffextract-frame6
1 files changed, 5 insertions, 1 deletions
diff --git a/ffextract-frame b/ffextract-frame
index b946550..577298d 100755
--- a/ffextract-frame
+++ b/ffextract-frame
@@ -46,8 +46,12 @@ else
out_file="$(removeext "${in_file}").png"
fi
+if test ! "${in_file}" = -; then
+ in_file="file:${in_file}"
+fi
+
if test "${out_file}" = -; then
exec ffmpeg -i "${in_file}" -ss "${ss}" -update 1 -frames:v 1 -c:v png -f image2pipe -
else
- exec ffmpeg -i "${in_file}" -ss "${ss}" -update 1 -frames:v 1 ${ffmpeg_flag_y} -- "${out_file}"
+ exec ffmpeg -i "${in_file}" -ss "${ss}" -update 1 -frames:v 1 ${ffmpeg_flag_y} -- file:"${out_file}"
fi