4

How to Add Color Overlay Effects on Video during Capture of Video?? Is there any tutorial available? And which library I can use for this??

I have a simple Task to do in this app. On Button click set a color effect on some frames.

My code

mCamera = getCameraInstance(); 
mCamera.setPreviewCallback(new PreviewCallback() { 
    @Override 
    public void onPreviewFrame(byte[] data, Camera camera) { 
        Log.d("HFI","Length: "+data.length); 
    } 
});
the-ginger-geek
  • 7,041
  • 4
  • 27
  • 45
Ahmed Nawaz
  • 1,634
  • 3
  • 21
  • 51

1 Answers1

1

You will have to manipulate each frame of the video you are capturing/captured. Go have a look at this question and also this question, it should help with your problem.

Community
  • 1
  • 1
the-ginger-geek
  • 7,041
  • 4
  • 27
  • 45
  • While recording `Camera.PreviewCallback` is being not called. – Ahmed Nawaz Mar 20 '13 at 06:16
  • Is it only being called after recording has taken place? – the-ginger-geek Mar 20 '13 at 06:25
  • No It is not being called ever. My Code: ` mCamera = getCameraInstance(); mCamera.setPreviewCallback(new PreviewCallback() { @Override public void onPreviewFrame(byte[] data, Camera camera) { Log.d("HFI","Length: "+data.length); } });` – Ahmed Nawaz Mar 20 '13 at 06:37
  • 1
    go have a look at this question. http://stackoverflow.com/questions/11544877/really-confused-with-setpreviewcallback-in-android-need-advice – the-ginger-geek Mar 20 '13 at 06:47