aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg/resize-and-transcode
diff options
context:
space:
mode:
Diffstat (limited to 'ffmpeg/resize-and-transcode')
-rwxr-xr-xffmpeg/resize-and-transcode2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffmpeg/resize-and-transcode b/ffmpeg/resize-and-transcode
index f3fe017..a8d2001 100755
--- a/ffmpeg/resize-and-transcode
+++ b/ffmpeg/resize-and-transcode
@@ -99,8 +99,10 @@ if test -z "$scale" && test "$codec" = '-c:v copy'; then
exit 1
fi
+ttysetting="$(stty -g)"
ffmpeg -i "$input" $scale $codec -c:a copy -- "$output"
ret=$?
+stty -- "$ttysetting"
if test $ret = 0; then
oldsize=$(stat -c '%s' -- "$input")