Save video to 3GP format

2.1k views Asked by At

I need to capture the video and video save to the sd card using hardware.camera class.

I created sample application with Camera.callback. It work fine. But saved video not working.

I saved the file in 3gp format. Each byte array added to a single byte array.And it saved to 3gp format.But it is not working.

After i substitute the header and footer portion 3gp in to that file. But it is not working. what i do to record video in this way(hardware.camera)?

1

There are 1 answers

0
vosmith On

The Android MediaRecorder class handles recording video withough having to implement the camera callback. It is capable of saving files in the 3GP format

http://developer.android.com/reference/android/media/MediaRecorder.html