title: How to change watermark size according to video in ffmpeg andorid?
body: <p>I want the watermark to be adjusted according to the resolution. with below command it puts watermark sometimes with large size sometimes extremely small size.</p>
  <p>please suggest me cmd so that I control the watermark image size so that it can be adjusted accordingly to the video</p>
  <p>below is the cmd which I have used for adding a bookmark</p>
  <pre><code> val cmd = arrayOf(
              &quot;-y&quot;,
              &quot;-i&quot;,
              sourcePath,
              &quot;-i&quot;,
              watermarkImagePath,
              &quot;-filter_complex=scale=main_w*0.3:-1&quot;,
              &quot;overlay=$position&quot;,
              &quot;-map&quot;,
              &quot;0:a&quot;,
              &quot;-c:v&quot;,
              &quot;libx264&quot;,
              &quot;-crf&quot;,
              &quot;$bitrate&quot;,
              &quot;-preset&quot;,
              &quot;ultrafast&quot;,
              outputLocation.path
          )
  
   
  </code></pre>