skip to Main Content

I’m looking for a way to add watermark to videos in Flutter. I prefer not to use the package but if I don’t have a choice, then I would use packages. Any ideas or suggestions? Thank you!

2

Answers


  1. You can use video_watermark

    Simple Flutter package to add an image as an overlay in the video along with video trim option.

    Login or Signup to reply.
  2. You can put anything above your video widget by put the watermark widget above by using Stack widget
    Widget structure example:

    Stack(
        children:[
            Positioned.fill(child: VideoWidget(),
            Positioned.fill(child: WatermarkWidget())
         ]
    )
    

    From library perspective you can use stamp_image that allows you put watermark on any widget

    UPDATE

    You can set an image(watermark) to each frame of video file with video_manipulation library

    Adding still frames to an existing video, e.g. watermarks

    .generateVideo(List paths, String filename, int fps, double
    speed).

    Parameters paths list of input file paths. Can be images (.jpg or .png) or video files (.mp4) that are used to generate the new video. E.g.: ["documents/input.mp4", "documents/watermark.jpg]

    Parameters paths list of input file paths. Can be images (.jpg or .png) or video files (.mp4) that are used to generate the new video. E.g.: ["documents/input.mp4", "documents/watermark.jpg]

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search