Are you looking for a way to free some storage space or reducing the size of your images without loosing quality and other meta info and you are limited to your mobile device
So today i show you a free and easy way to do that, and for this task you just need your Android Device and an App called FFmpegRuntime
Follow these steps one by one
- Install FFmpegRuntime in your device
- Open it and complete or skip user onboarding guide
- Go-to files tab click on bottom right floating
Add +button - Now you have two options visible now click on
Grant folderbutton - Now select the folder in which your Images stored in like most android devices stores images in
DCIM/Camerago-to there and click on Use this folder - And now you are able to see your selected folder name in top of files tab top header click on it
- Now go-to terminal tab and select your folder name on top folders chips
- After that run the following command in by pasting inside command input field and clicking on execute/run button
runtime compress
Now you need to wait for sometime until it gets completed and you can put this work in background by clicking on keep in background button so you can do other things in your device
If you want to tweak some comprehension behaviour you can follow dedicated helps instructions which shows by executing this command
runtime compress --help
Usage: runtime compress [flags]
Flags: -inplace replace originals (default: keep them, save copies to Compressed/)
-duplicate keep originals (default)
-codecs EXT=ENC.. pick the encoder per format, e.g. -codecs mp4=x265 mkv=libx264
-cf "FFMPEG ARGS" extra ffmpeg flags for the last -codecs mapping
aliases: -codecFlags, -c-f
-h, --help show this help
WARNING: inplace mode deletes the original files after a successful compression.
Encoders: use a name the runtime lists (ffmpeg -encoders), or an alias:
x264 x265 h264 hevc vp9 av1 mp3 aac opus vorbis flac pcm jpeg webp png
an unavailable encoder is an error; without -codecs the best available is picked
missing a codec? add a custom runtime in System; assistants can switch installed runtimes
Hardware: MediaCodec encoders get -operating_rate 280 automatically; override in -cf
Audio: mp3, m4a, aac, wav, flac, ogg, opus are compressed too (wav -> lossless flac)
Covers: videos (mp4, mov, m4v, 3gp, mkv, ts), photos (jpg; png/gif/bmp/webp when mapped), audio
Sizes: videos long edge capped at 1920, photos at 2560; best effort per format
Skips: HEIC, WebM and unmapped formats, plus anything already small or unreadable
Examples:
runtime compress
runtime compress -inplace -codecs mp4=x265 -cf "-preset slow -crf 20"
runtime compress -codecs mp3=mp3 -cf "-q:a 2"
Comments
Leave a comment
Your email address will not be published. Required fields are marked *.