snippet for speeding up videos

master
gutmet 2022-11-26 20:53:44 +01:00
parent 31e363a4c8
commit 2462cddbd7
1 changed files with 16 additions and 0 deletions

16
speedUpVideo Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "USAGE: $0 FILE FACTOR"
exit 1
fi
fullpath="$1"
factor=$(echo "1.0 $2" | awk '{printf "%.2f", $1/$2}')
source fileextensions
outfile="$dir/$filename""Speed.mp4"
echo "$outfile"
ffmpeg -y -i "$fullpath" -filter:v "setpts=$factor*PTS" "$outfile"