Guest User

Untitled

a guest
Feb 16th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. [someone@someones-pc ~]$ for i in *.mp4; do ffmpeg -i "$i" -i watermark.png -filter_complex "overlay=1623:25" /output/directory/"${i%.*}.mp4"; done
  2.  
  3. #!/bin/bash
  4.  
  5. WM=$HOME/public_html/image/catalog/logo-website/watermark.png # This is the path to your watermark image
  6. SCALE=100 # This sets the scale % of your watermark image
  7. STARTDIR="/home/whatever/images" # This is the directory to start in
  8.  
  9. for imagedir in $( find $STARTDIR -type d )
  10. do
  11. echo "Running in $imagedir ..."
  12. cd $imagedir
  13. file -i * | grep image | awk -F':' '{ print $1 }' | while read IMAGE
  14. do
  15. echo "Watermarking $IMAGE"
  16. composite -dissolve 40% -gravity SouthEast -quality 100 ( $WM -resize $SCALE% ) "$IMAGE" "$IMAGE"
  17. done
  18. done
Add Comment
Please, Sign In to add comment