{"action":"created","issue":{"url":"https://api.github.com/repos/rFlex/SCRecorder/issues/306","repository_url":"https://api.github.com/repos/rFlex/SCRecorder","labels_url":"https://api.github.com/repos/rFlex/SCRecorder/issues/306/labels{/name}","comments_url":"https://api.github.com/repos/rFlex/SCRecorder/issues/306/comments","events_url":"https://api.github.com/repos/rFlex/SCRecorder/issues/306/events","html_url":"https://github.com/rFlex/SCRecorder/issues/306","id":153882632,"number":306,"title":"Cannot get watermarking to work","user":{"login":"jln19","id":713741,"avatar_url":"https://avatars.githubusercontent.com/u/713741?v=3","gravatar_id":"","url":"https://api.github.com/users/jln19","html_url":"https://github.com/jln19","followers_url":"https://api.github.com/users/jln19/followers","following_url":"https://api.github.com/users/jln19/following{/other_user}","gists_url":"https://api.github.com/users/jln19/gists{/gist_id}","starred_url":"https://api.github.com/users/jln19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jln19/subscriptions","organizations_url":"https://api.github.com/users/jln19/orgs","repos_url":"https://api.github.com/users/jln19/repos","events_url":"https://api.github.com/users/jln19/events{/privacy}","received_events_url":"https://api.github.com/users/jln19/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-05-09T22:16:40Z","updated_at":"2016-05-18T17:36:42Z","closed_at":"2016-05-16T15:51:10Z","body":"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.\r\n\r\n```\r\nAVAsset *asset = self.recordSession.assetRepresentingSegments;\r\n    NSURL *tempUrl = [NSURL fileURLWithPath:[NSTemporaryDirectory() stringByAppendingPathComponent:@\"videomarked.mov\"]];\r\n    \r\n    SCAssetExportSession *assetExportSession = [[SCAssetExportSession alloc] initWithAsset:asset];\r\n    assetExportSession.outputUrl = tempUrl;\r\n    assetExportSession.outputFileType = AVFileTypeMPEG4;\r\n    assetExportSession.videoConfiguration.preset = SCPresetMediumQuality;\r\n    assetExportSession.videoConfiguration.watermarkImage = [UIImage imageNamed:@\"my_watermark\"];\r\n    assetExportSession.videoConfiguration.watermarkFrame = CGRectMake(0, 0, 320, 480);\r\n    [assetExportSession exportAsynchronouslyWithCompletionHandler: ^{\r\n        if (assetExportSession.error == nil) {\r\n            // I get success here, but the video does not have a watermark\r\n            \r\n        } else {\r\n            // Something bad happened\r\n            \r\n        }\r\n    }];\r\n```\r\n\r\nI've confirmed that `generatedWatermarkImage` is valid in `SCAssetExportSession:_buildWatermarkFilterForVideoSize`"},"comment":{"url":"https://api.github.com/repos/rFlex/SCRecorder/issues/comments/220101980","html_url":"https://github.com/rFlex/SCRecorder/issues/306#issuecomment-220101980","issue_url":"https://api.github.com/repos/rFlex/SCRecorder/issues/306","id":220101980,"user":{"login":"jln19","id":713741,"avatar_url":"https://avatars.githubusercontent.com/u/713741?v=3","gravatar_id":"","url":"https://api.github.com/users/jln19","html_url":"https://github.com/jln19","followers_url":"https://api.github.com/users/jln19/followers","following_url":"https://api.github.com/users/jln19/following{/other_user}","gists_url":"https://api.github.com/users/jln19/gists{/gist_id}","starred_url":"https://api.github.com/users/jln19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jln19/subscriptions","organizations_url":"https://api.github.com/users/jln19/orgs","repos_url":"https://api.github.com/users/jln19/repos","events_url":"https://api.github.com/users/jln19/events{/privacy}","received_events_url":"https://api.github.com/users/jln19/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T17:36:42Z","updated_at":"2016-05-18T17:36:42Z","body":"@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 :("}}