A bash script to convert all your video/image files from a folder, into the most efficient way to compress them.
Right now the compressor can't read the files that have spaces in them, I suggest you run this command in the folder with your files
for f in *; do mv "$f" `echo $f | tr ' ' '_'`; done
-i input, takes a directory
-o output, takes a directory
-q quallity, it's only for the webp right now ( higher = better | 0 - 100 )
-v verbose
-i
- "./"
-o
- "./"
-q
- "40"
-v
- "0"
- png
- jpg
- flv
- mp4
- mov
- Ubuntu 19.04
- png -> Webp Images
- jpg -> Webp Images
- mp4 -> mp4 compression
- flv -> mp4 compression
- mov -> mp4 compression
- Detect if png or webp is smaller
- Custom quallity parameters ( for each format )
- Parameters to Only convert certain images and video files
- Learn how to use github
- Automatically install dependencies
- Allow nesting
- webp project(cwebp)
sudo apt install webp
- ffmpeg
sudo apt install ffmpeg
./ultimateCompressor.sh -i ~/Pictures/memes/ -o ~/Pictures/memes_compressed -q 30 # This is bellow average
./ultimateCompressor.sh -i ~/Pictures/memes/ -o ~/Pictures/memes_compressed -q 0 # It's not going to look too good....
This is one of my first public github projects, if you have any suggestions please don't shy to help me out.