ffmpegwatermarkandroid-mediacodecmp4parsermediamuxer

quickest way to add image watermark on video in andorid?


  1. I have use ffmpeg and mp4parser to add image watermark on video. both works when video size is small like less than 5MB to 7Mb but when it comes to large video size(anything above than 7MB or so..) it fails and it doesn't not work.

what are the resources that helps to adding watermark on video quickly. if you have any useful resources that please let me know?


Solution

  • It depends on what exactly you need.

    If the watermark is just needed when the video is viewed on the android device, the easiest and quickest way is to overlay the image with a transparent background over the video view. You will need to think about fullscreen vs inline and portrait vs landscape to ensure it lines up as you want.

    If you want to watermark the video itself, so that the watermark is included if the video is copied or sent elsewhere, then ffmpeg is likely as fast as other solutions on the device itself. If you are able to send the video to a server and have the watermark applied there you will have the ability to use much more powerful compute resource.