Save video to 3GP format - android

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)?

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

Related

Saving .cgi stream image format as Video

I am creating a video streaming app which uses a IP Camera as external device.
I can already get the image (.cgi format) from the ip url of the device(192.168.x.x/image/image.cgi). I can update the image view every several milli seconds to update its content and its working great, no issues there.
The question is, can I save this bitmaps as video (.mp4)? I tried MediaRecorder before and works, is there a way to do that on streaming bitmaps ?
thanks
The "video" is a stream of jpeg images.
See
http://thistleshrub.net/Joomla/index.php?option=com_content&view=article&id=115:displaying-streamed-mjpeg-in-java&catid=43:robotics&Itemid=64
for some java code that displays such images. You need to transcode the images to a different format. E.g. on the command line that can be done with
https://unix.stackexchange.com/questions/12193/transcoding-mjpeg-stream-to-flv-or-mp4
Doing this on android has been discussed at how to save the mjpeg stream as 3gp or mp4 format video files to the sdcard in android
googling for mjpegstream video convert gives you more results ...

Android RTSP Live Streaming Issue

Android Video Live Streaming Problem
I am using Vitamio library. The RTSP streaming is working well, Now I want to record that RTSP live streaming in my SD card locally. please help !!!
Or can i use media recorder to record RTSP live streaming ?
Media Recorder is not the good way to record RTSP video, I have used the FFMPEG library to record RTSP recording locally in sd card.
Steps to do this.
Capture or decode the RAW frames from live stream and pass them to ffmpeg and save them to sdcard in .h264 format.
Then again pick .h264 raw file and decode the file using ffmpeg, and save the file with extention .mp4 into sd card.
delete the .h264 file programmatically, and save only .mp4, or which format you want.
Try .mp4 playback.
I am able to record long time such as upto 5mb video's into my sd card.

Save some part of livestreaming video from videoview like VLC player

Scenario : I want to give user an option to save some part of the live streaming video from the surfaceview present in android (give him a control startSaving() and stopSaving())
I am able to display live streaming on android surfaceview by giving the url of ipcamera to it.
Now i want to save part of the live streaming in my sdcard (in any playable video format)
What i tried : i am able to get data in byte[] which is most probably mjpeg frame(dont know what format they are in), I stored them up in vector and tried converting them to a file with .mp4 extension, obviously video was corrupted as i did not encode it in any way.
So my question is how should i save it as media file(any playable format)? how should i approach this?
note: i dont want to use NDK
Thanks in advance.

Combining External Audio file to an Existing Video in Android

I want to Record a video On completion of Recording i would like merge an external audio file,finally save it as a video with my Loaded mp3. is it possible in android?

How to save default camera using video recorder in mp4 format

How do I save the default camera using video recorder, in mp4 format? By default videos are stored in 3gp format. I want to save them in mp4 format. Can anybody tell me how to do this with an example?
Thanks

Categories

Resources