Low level program to save a mjpeg stream
Hi all
Well first I’ll just say I am a complete Linux beginner, but I have done vbs, js, php, html web type stuff so I’m not a complete beginner to programming. However I've been trying to learn C and python but it’s not making a huge amount of sense. I am wanting to make a simple low level program that copies an image from a mjpeg stream on 192.168.0.1/videostream.cgi for example to a variable then save that variable to a file on my system. I am aware that there are programs out there that would do this but I still want to make my own. Any help? Thanks Rufe0 |
Depending on the size of the movie you are looking at streaming, I wouldn't try to save all of it to a variable. While I do not do any programming with regards to video, I would highly suggest that when you stream it, you buffer it, simply so that you do not have a single variable that is holding a ridiculous amount of data (which will, undoubtedly, chew up your RAM). Buffer it into chunks, and when you buffer is full, dump the buffer to an opened file stream.
|
All times are GMT -5. The time now is 04:39 AM. |