Browse Source

fix for

master
VirtuBox 1 year ago
parent
commit
1fcd2aa31d
Signed by: virtubox GPG Key ID: 22EB296C97BAD476
1 changed files with 9 additions and 9 deletions
  1. +9
    -9
      mybashrc

+ 9
- 9
mybashrc View File

@ -703,18 +703,18 @@ _CLEAN_PPA() {
_STABILISE_VIDEO() {
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"
rm /tmp/transform_vectors.trf
done
for i in "$PWD"/*; 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"
rm /tmp/transform_vectors.trf
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"
for i in "$PWD"/*; 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
}
@ -801,4 +801,4 @@ alias clone-wordops='git clone https://github.com/WordOps/WordOps.git -b updatin
alias urbackup-client-setup=_URBACKUP_CLIENT
alias delete-all-site=_DELETE_WO_SITES
alias stabilise-video=_STABILISE_VIDEO
alias yt-encode=_YOUTUBE_ENCODE
alias yt-encode=_YOUTUBE_ENCODE

Loading…
Cancel
Save