1

I am using ffmpeg library for water marking in android, somehow it is taking high amount of time (like 5MB video taking 1 minute of time). Let me know if you have any suggestions.

gradle dependency: implementation 'com.writingminds:FFmpegAndroid:0.3.2'

slow code: val command = arrayOf("-i", srcVideo, "-i", watermarkImgPath, "-filter_complex", "overlay=20:20", outPutVideo)

Cristan
  • 9,210
  • 4
  • 58
  • 62
  • see https://stackoverflow.com/questions/55589904/ffmpeg-adding-image-watermark-to-video-process-is-very-slow/55598421 – Pawel May 15 '19 at 20:14
  • { "-i",inputPath.mp4, "-i", imagepath.jpg,"-filter_complex", "[1] scale=70:70 [tmp];[0][tmp] overlay=main_w-overlay_w-10:main_h-overlay_h-10",output.mp4} try this it will help you. – VikasSharmalp Sep 19 '19 at 07:10

0 Answers0