Find the answer to your Linux question:
Results 1 to 3 of 3
Hi all Well first I値l just say I am a complete Linux beginner, but I have done vbs, js , php, html web type stuff so I知 not a complete ...
  1. #1
    Just Joined!
    Join Date
    Jun 2009
    Posts
    1

    Low level program to save a mjpeg stream

    Hi all
    Well first I値l just say I am a complete Linux beginner, but I have done vbs, js, php, html web type stuff so I知 not a complete beginner to programming.

    However I've been trying to learn C and python but it痴 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

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Quote Originally Posted by Rufe0 View Post
    I am aware that there are programs out there that would do this but I still want to make my own.
    Fair enough. But why not looking in these programs how they do it?
    Debian GNU/Linux -- You know you want it.

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Quote Originally Posted by GNU-Fan View Post
    Fair enough. But why not looking in these programs how they do it?
    Exactly. The best way to learn how to do this stuff in open source systems like Linux is to get the source to an application that does what you want, and learn from that. That said, not all software is equally well (or poorly) written, and internal documentation may or may not exist. I have been working on fixing and improving a news reader application recently (klibido) because while it basically does what I want in a news reader, it would crash way too frequently. So, I have been gradually refactoring and fixing it, which at about 30k lines of code is not a trivial task. At least it is now useful and only crashes upon occasion, which I am working on presently.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...