how to add watermark to the videos without lossing its quality and faster in flutter

85 Views Asked by At

i have used ffmpeg_kit_flutter: ^5.1.0 to add watermark to the videos. using below command :

"-i $videoPath -i $watermarkImagePath -filter_complex \"[1:v]scale=w=$scaledWatermarkWidth:h=$scaledWatermarkHeight[v1];[0:v][v1]overlay=W-w-5:H-h-5[v]\" -map [v] -map 0:a $outputFilePath"

but its compressing the video and it generate the Mb video in Kb size so i have tried "libx264", "preset fast" etc. for quality and faster processing but its throwing errors like libx264 is unrecognized codec so how can i done this?.

0

There are 0 best solutions below