Android RTSP Live Streaming Issue

一笑奈何 提交于 2019-12-04 10:24:43

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!