-
Notifications
You must be signed in to change notification settings - Fork 583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot get watermarking to work #306
Comments
Do you have a small project that you can share so I can investigate? That would be so awesome :) |
I will try to whip one up. In the meantime though can you confirm that watermarking has worked for you? |
@rFlex Here is the simple project showing that watermarking doesn't work, at least from what I can tell. Thanks for investigating :) |
@rFlex Hi! I think problem is in - (SCFilter *)_generateRenderingFilterForVideoSize:(CGSize)videoSize method. |
Thanks a lot for the help!. @Klucherev yeah good call, that was what the problem was :). |
@rFlex I tried making this update. Now there is a crash at line 317 of SCFilter.m. -[CIImage imageByCompositingOverImage:]: unrecognized selector sent to instance 0x14648c40 Try running the test project with your commit added. |
Are you running on iOS 7? |
This is another issue where your input video has a orientation metadata that isn't being respected by SCRecorder. You may be able to fix that by setting keepInputAffineTransform to false in SCVideoConfiguration |
Ok, I will check it out some time today |
@rFlex any updates on this? I've invested a lot of time implementing SCRecorder as a solution to our video recording/playback needs but if watermarking doesn't work I can't use it... and explain to my company why I have to start over :( |
Here is a working example based of your project. |
Thanks. What did you change? ViewController.m looks the same. Did you make changes in the SCRecorder files? |
I added a videoComposition that will take care of transforming your video so the output video doesn't have any special rotation metadata. |
I see. Thank you. |
It seems that I can't add watermark without adding a filter. How do I add a watermark without using a filter? Here's my code:
|
Couldn't find any documentation or a working example of watermarking videos. The below is what I could piece together. Can you tell me what is wrong with this? The video gets exported, but the watermark never appears. The watermark is a valid .png file (my_watermark@2x.png) in the app bundle.
I've confirmed that
generatedWatermarkImage
is valid inSCAssetExportSession:_buildWatermarkFilterForVideoSize
The text was updated successfully, but these errors were encountered: