rubygarage / media-watermark

GPU/CPU-based iOS Watermark Library for Image and Video Overlay
https://rubygarage.org/
MIT License
219 stars 63 forks source link

AVAssetExportPresetPassthrough does not add watermark to the video. #50

Open Rashesh-Bosamiya opened 1 year ago

Rashesh-Bosamiya commented 1 year ago

I am trying to set the preset as AVAssetExportPresetPassthrough to get the exact same resolution of input video but it is not adding watermark into the video.

Following does not add watermark to the video. let exportSession = AVAssetExportSession(asset: mixComposition, presetName: AVAssetExportPresetPassthrough)

But with following preset it is working. let exportSession = AVAssetExportSession(asset: mixComposition, presetName: AVAssetExportPresetHighestQuality)

even if I set AVAssetExportPresetMediumQuality, it is adding watermark but only it is not working with AVAssetExportPresetPassthrough