snippet for speeding up videos
This commit is contained in:
parent
31e363a4c8
commit
2462cddbd7
16
speedUpVideo
Executable file
16
speedUpVideo
Executable 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"
|
Loading…
Reference in New Issue
Block a user