How to reduce quality of multiple JPEG image files using ffmpeg? -


i want reduce quality of bunch of images @ time. -q:v x x number between 1 , 30 (the bigger number, worse quality). i'm able save lot of space x=1. now, when comes process multiple files, i'm stuck.

i've tried these 2 batch files:

mkdir processed f in *.jpg;     name=`echo $i | cut -d'.' -f1`;     echo $name;     ffmpeg -i $i -q:v 1 processed/$name.jpg; done 

and

mkdir processed f in *.jpg;     ffmpeg -i "$f" -q:v 1 processed/"${f%.jpg}.jpg";  done 

both create processed folder nothing else.

thanks @squashman pointing out stupid mistake. solution problem.

mkdir processed %%f in (*.jpg) (      ffmpeg -i %%f -q:v 10 processed/%%f" ) 

i got 80% of weight reduction.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -