Skip to content
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

Best way to modify video frames? #198

Open
shaneneuerburg opened this issue Oct 5, 2015 · 0 comments
Open

Best way to modify video frames? #198

shaneneuerburg opened this issue Oct 5, 2015 · 0 comments

Comments

@shaneneuerburg
Copy link

I'm currently working on a project that requires video calls to be recorded with a timestamp on the video, reflecting the time on the current device (rather than the server which handles the recording).

What is the best way to modify each buffer frame without hacking idoubs itself? I'm currently hacking iOSVideoProducer.mm in the following method to accomplish it:
- (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection

I've thought about trying to swizzle that method, as well as creating a new delegate for the video producer class to expose each buffer frame. I don't love either option.

Any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant