Reputation: 26
I want to add watermark to videos in flutter before downloading the videos from firebase. There is a question similar to mine that is being answered, but the package suggested is only available for ios, I want for both android and ios. I have seen FFmpeg but the commands are confusing and don't seem to work for me.
Upvotes: 0
Views: 1224
Reputation: 121
You can save the video at some location, then apply the image watermark to the video, and show the new saved path to user
To add image, Try this latest updated package video_watermark
VideoWatermark videoWatermark = VideoWatermark(
sourceVideoPath: videoPath,
watermark: Watermark(image: WatermarkSource.file(imagepath)),
onSave: (path){
// Get the output file path
},
);
videoWatermark.generateVideo();
Upvotes: 0
Reputation: 4894
I think it is not possible to add a watermark before downloading unless we can add a watermark while uploading that video itself.
I just found a package video_manipulation
. You can just refer to the example of implementing the Watermark after downloading that video.
Reference: https://pub.dev/packages/video_manipulation#usage
Upvotes: 1