How to record http streaming from an IP camera

I created an application in which a client can view an IP camera that gives an live MJPEG HTTP stream using this Android ICS and MJPEG link using AsyncTask

Now I want the user to record video on a memory card. I was looking for a while and only two approaches that came to my mind: -

  • Or I save jpeg images, and when the user clicks the stop recording button, then i somehow fix all the images to provide 3GP video or some other file format. But I don’t know how to create a video from all the images, and it will be an effective approach or not.

  • Or am I doing ffmpeg, in which case I will have to deal with NDK, and this seems to be a longer path that can lead to nowhere: P

So is FFMPEG better? If yes, please share some links or the first option is better. thanks in advance

0
source share
1 answer

FFmpeg is the best option, but you are likely to come across pretty low resolution / compression encoding. Perhaps some low-quality MPEG-4, such as xvid, will work, but even this may require too high processor performance.

Android API SoC, . , FFmpeg NDK, , .

0

Source: https://habr.com/ru/post/1629103/


All Articles