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!
CodePudding user response:
You can use [video_watermark][1]
Simple Flutter package to add image as overlay in the video along with video trim option.
CodePudding user response:
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]