Siv
Siv

Reputation: 183

android video apply filter

I have a video created with MediaCodec from camera preview. Now I want to edit that video, to apply a filter (white/black) and save to another file. I read about DecodeEditEncodeTest.java from CTS tests and tried to adapt to my problem, but I noticed that onFrameAvailable from outputSurface is never called. The only difference from example that I read video data using MediaExtractor.

In log I receive: ": EGL_BAD_SURFACE" at swapbuffers.

Please advise me what I am doing wrong.

Thank you.

Upvotes: 0

Views: 322

Answers (1)

Siv
Siv

Reputation: 183

I found the problem. I didn't call method to inputSurface, makeCurrent

Upvotes: 1

Related Questions