Push rtmp use CMSampleBuffer #1009
|
Hello everyone, I'm a newbie in swift. I follow an example from DeepAR Sdk. This example pushes CMSampleBuffer to Agora, but I want to push DeepAR's result to my own rtmp server. How to push rtmp using CMSampleBuffer? |
Answered by
onebuckgames
Jun 15, 2022
Replies: 3 comments
|
Hi. You can create an effect inherited from the VideoEffet and process your buffer in method override func execute(_ image: CIImage, info: CMSampleBuffer?) -> CIImage |
0 replies
|
Hi, Thank you for your reply. Can you give me more information? I have create MyEffect. But I don't know what to do in execute. |
0 replies
|
You should store and keep updated your CMSampleBuffer from DeepAR as member of MyEffect, or you can render CIImage from CMSampleBuffer and keep it as a buffer in MyEffect, then in execute method you just return it as is. |
0 replies
Answer selected by
shogo4405
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should store and keep updated your CMSampleBuffer from DeepAR as member of MyEffect, or you can render CIImage from CMSampleBuffer and keep it as a buffer in MyEffect, then in execute method you just return it as is.