Multiple changes

This commit is contained in:
J. Fernando Sánchez
2018-09-12 19:04:59 +02:00
parent 6f97821cae
commit ea78b16bd9
17 changed files with 622 additions and 72 deletions

14
scripts/.bin/deshake-video.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
# Encode a video in DVD quality (-crf 23) and use the video stabilization/deshaking plugin
# https://ffmpeg.org/ffmpeg-filters.html#toc-vidstabdetect-1
for VIDEO in "$@"
do
DEST=converted/$VIDEO
if [ -f $DEST ]; then
echo "File $VIDEO already converted"
continue
fi
mkdir -p converted
ffmpeg -i $VIDEO -vf vidstabdetect -f null -
ffmpeg -i $VIDEO -vf vidstabtransform=smoothing=30:input="transforms.trf" -crf 23 $DEST
done