Search code examples
androidvideovideo-streamingrtspvitamio

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 ?

Solution

  • 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.

    1. Capture or decode the RAW frames from live stream and pass them to ffmpeg and save them to sdcard in .h264 format.

    2. Then again pick .h264 raw file and decode the file using ffmpeg, and save the file with extention .mp4 into sd card.

    3. delete the .h264 file programmatically, and save only .mp4, or which format you want.

    4. Try .mp4 playback.

    I am able to record long time such as upto 5mb video's into my sd card.