rFlex / SCRecorder

iOS camera engine with Vine-like tap to record, animatable filters, slow motion, segments editing
Apache License 2.0
3.06k stars 582 forks source link

How to add watermark while using mergesegmentswithpreset to export the video #164

Open aabanaag opened 9 years ago

aabanaag commented 9 years ago

Hi,

I've asked before on how to add a watermark without using an Image and it got closed. My question now is in VideoConfiguration you can set a watermark but whenever I export the video the watermark is not added. How could I achieve this if I were to use mergeSegmentsWithPreset to export the video instead on the SCAssetExportSession route?

rFlex commented 9 years ago

Hey Alexis,

You can't, you need to use SCAssetExportSession. The mergeSegmentsWithPreset may disappear in the future, as it provides little configuration and is therefore not a good choice for most case.

On Saturday, May 23, 2015, Alexis A. Banaag Jr. notifications@github.com wrote:

Hi,

I've asked before on how to add a watermark without using an Image and it got closed. My question now is in VideoConfiguration you can set a watermark but whenever I export the video the watermark is not added. How could I achieve this if I were to use mergeSegmentsWithPreset to export the video instead on the SCAssetExportSession route?

— Reply to this email directly or view it on GitHub https://github.com/rFlex/SCRecorder/issues/164.

aabanaag commented 9 years ago

oh. okay. thanks,

one quick question though.. Will there be a way to add watermark per frame or per segment? My app requires a timestamp kind of watermark so the SCAssetExportSession will not work for me since the watermark will be added when the segments are merged and exported.

rFlex commented 9 years ago

It's doable. You can create your own class that inherits SCFilter. Then just override the "imageByProcessingImage:atTime:" Method. There you will be able to implement your own processing that will add the watermark to the video. Unfortunate it's a bit tricky to do and will require some learning from the Core Image API.

rFlex commented 9 years ago

It's now easy to do. Check out the example :)

fresh83 commented 8 years ago

Dude you are way too nice to all of us bums (many prob leaching a majority of the value of their app off your work) Thank you for this lib man.