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
Post a Comment