Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show real time filtered camera preview while recording videos?

I want to show filtered camera preview while recording a video using media recorder. To filter the preview i need frames normally which i can get that from onPreviewFrame() function but while recording video with media recorder, onPreviewFrame() function does not get called. So what i want to know , is there any other ways to get these frames for filtering and then show them after modification ? I checked some apps from Google Play for example, Videocam Illusion. Its showing preview with effects during recording videos. I want to do something like that but have no hint how to do so. So i will appreciate any help/hints/code/sample regarding the issue. Thanks.

like image 809
Junaid Avatar asked Sep 10 '12 13:09

Junaid


1 Answers

I haven't done it myself, but searched for it not so long ago. There's an answer on StackOverflow to show modified buffer of PreviewFrame:

https://groups.google.com/forum/?fromgroups=#!topic/android-developers/yF6CmrIJzuo

And here, a google groups link on the same topic.

How can I manipulate the camera preview?

Hope this helps, I'm planning on an application that modifies the preview frames, but is not going to record anything.

Best Regars.

like image 129
Aitor Calderon Avatar answered Nov 15 '22 01:11

Aitor Calderon