java - Put Image above Video and save video in android -
i'm writing application must put image above video , save video.
in general application opens video file, after user select image transparent background , put image above video, after user press save button new video image above video.
can please provide me information or hints how that.
so per question, looking video editor kind of solution achieve task..
i think scenario:
** have video in application
** open bitmap resource (image file where)
** overlay bitmap @ bottom of movie (video) on frames in background
** save video on external storage
for ffmpeg support overlaying functionality or android mediacodec stuff. ffmpeg has various filters 1 of them overlay filter. understand want overlay image (i.e. png) on video, ffmpeg surely useful framework job. can set output format can set co-ordinates of image overplayed.
e.g:
ffmpeg -i input.avi -i logo.png -filter_complex 'overlay=10:main_h-overlay_h-10' output.avi
above command adds overlays logo.png on input.avi video file in bottom left corner.
more information filters available @ following website,
https://www.ffmpeg.org/ffmpeg-filters.html#overlay-1
here github links
android java wrapper around ffmpeg command line binary or this
if solution problem need c code equivalent above command. need see performance of ffmpeg because pure software framework.
hope have understood question correctly , helps.
Comments
Post a Comment