|
|
@ -703,7 +703,7 @@ _CLEAN_PPA() { |
|
|
|
|
|
|
|
_STABILISE_VIDEO() { |
|
|
|
|
|
|
|
for i in "$PWD"/*.MP4; do |
|
|
|
for i in $(echo ./*); do |
|
|
|
echo "Processing vid $i ...${i%.*}" |
|
|
|
ffmpeg -i "$i" -vf vidstabdetect=stepsize=6:shakiness=4:accuracy=15:result=/tmp/transform_vectors.trf -f null - |
|
|
|
ffmpeg -i "$i" -vf vidstabtransform=input=/tmp/transform_vectors.trf:zoom=2:smoothing=10,unsharp=5:5:0.8:3:3:0.4 -c:v libx264 -preset slow -crf 18 -c:a aac -b:a 192k -pix_fmt yuv420p -movflags +faststart "${i%.*}-stable.mp4" |
|
|
@ -712,6 +712,12 @@ done |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
_YOUTUBE_ENCODE() { |
|
|
|
for i in $(echo ./*); do |
|
|
|
ffmpeg -i "$i" -c:v libx264 -preset slow -crf 18 -c:a aac -b:a 192k -pix_fmt yuv420p -movflags +faststart "${i%.*}-yt.mp4" |
|
|
|
done |
|
|
|
} |
|
|
|
|
|
|
|
# enable color support of ls and also add handy aliases |
|
|
|
# some more ls aliases |
|
|
|
#alias wp='/usr/bin/wp --allow-root' |
|
|
@ -794,4 +800,5 @@ alias update-wo-fast='python3 -m pip install -I "git+git://github.com/WordOps/Wo |
|
|
|
alias clone-wordops='git clone https://github.com/WordOps/WordOps.git -b updating-configuration' |
|
|
|
alias urbackup-client-setup=_URBACKUP_CLIENT |
|
|
|
alias delete-all-site=_DELETE_WO_SITES |
|
|
|
alias stabilise-video=_STABILISE_VIDEO |
|
|
|
alias stabilise-video=_STABILISE_VIDEO |
|
|
|
alias yt-encore=_YOUTUBE_ENCODE |