Adding watermark bitmap over video in android: 4.3's MediaMuxer or ffmpeg

后端 未结 4 1673
伪装坚强ぢ
伪装坚强ぢ 2020-11-29 03:05

Here is my scenario:

  • Download an avi movie from the web
  • Open a bitmap resource
  • Overlay this bitmap at the bottom of the movie on all frames
4条回答
  •  无人及你
    2020-11-29 03:30

    This is what worked for me:

    ffmpeg -i input.avi -i logo.png -filter_complex 'overlay=10:main_h-overlay_h-10' -strict -2 output.avi
    

    ffmpeg recommended the usage -strict -2 inorder to allow the usage of experimental codecs. without the inclusion, the accepted answer above fails to work.

提交回复
热议问题