[FFmpeg-user] FFMPEG Overlay image on video results large size videos
barsnick at gmx.net
Tue Dec 29 15:58:18 CET 2015
On Mon, Dec 28, 2015 at 10:37:25 +0530, Rajasekhar Reddy wrote:
> Also i am getting the apk size 28.9 MB, How to reduce the apk size.
If you use examples, you also need to understand them (or understand
what the original author was trying to do).
> ffmpeg -i /storage/emulated/0/video/nsm.mp4 -i /storage/emulated/0/saved_
> images/scaled_image_176_287.png -preset ultrafast -strict -2
> -filter_complex overlay=x=550:y=380:enable='between(t,3,14)'
"-preset ultrafast" tells the libx264 encoder to choose a mode where
speed is preferred over size, which maintaining the same quality (in
your command line at least). It actually makes videos very largs. If
you do not need the speed advantage, please omit this parameter. (It
defaults to "medium".) If you have plenty of time and CPU, you can make
your video even smaller by choosing "-preset slow" or "-preset
veryslow". (ffmpeg will then also create H.264 with a different
profile, but you don't mention whether that matters to you.)
> ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
> built on Oct 7 2014 15:08:46 with gcc 4.8 (GCC)
This version is quite old, but what I wrote is valid for it just as
More information about the ffmpeg-user