Android RTSP Live Streaming Issue - android

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.

Related

How to detach audio stream bitrate from video file in Android?

I want to get audio bitrate from video file and save it.
Is it possible to get audio track bitrate alone form video file using ffmpeg ?
if possible then how to do it?...Any suggestion will be appreciated.

Android add mp3 to mp4 video or convert mp3 to acc or m4a

I have MP4 (H264) video. created by jcodec. jcodec not support not encode mp3 audio. i want add mp3 audio to my mp4 video. MP4parser is good solution for this merge, but not support mp3 format. FFmpeg (javacv) is very large native library and complex and difficult to use.
so what is easy way to add mp3 audio to mp4 video? (this question is dublicate BUT awnsers is old and not working)

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?

Encode Audio/Video FIles placed in Sdcard and then Decode the same and play it in Android

I need to encode the audio/video files that are placed in sdcard.
Then later on I have an User-Interface, where there is a media player where in I play these encoded files after decoding them.
Reason I need to encode these files is because, I dont want these files to be played by Android's default Media Player and want them to be played by my own App's Media Player.
Could you please suggest me some audio/video encoders and decoders supported by android.
Thank you

Save video to 3GP format

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

Categories

Resources