Looking for MJPEG library or code

Windows specific forum
TheCorporation
User
User
Posts: 11
Joined: Fri Sep 15, 2006 8:04 am
Location: FR

Looking for MJPEG library or code

Post by TheCorporation »

I'm a beginner with PureBasic, looking for MJPEG library or code (to save inside the JPEG pictures I capture from my webcam with my PureBasic program).

If someone can give me sometips please... :-|
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

TheCorporation
User
User
Posts: 11
Joined: Fri Sep 15, 2006 8:04 am
Location: FR

Post by TheCorporation »

> Maybe this can help?

No :-( (This code saves only .JPG files).
User avatar
pdwyer
Addict
Addict
Posts: 2813
Joined: Tue May 08, 2007 1:27 pm
Location: Chiba, Japan

Post by pdwyer »

Wikipedia here http://en.wikipedia.org/wiki/MJPEG links two sources for specs

http://tools.ietf.org/html/rfc2435
http://developer.apple.com/documentatio ... F/qtff.pdf (from page 114)

Happy reading, seems there's a couple of versions
Paul Dwyer

“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

For playback: MJPeg was used in the psx, maybe if you look around you can find some assembly or c source code for that? MIPS code is pretty easy to follow.

For recording: There should be source on the net for psx movie encoders.
User avatar
pdwyer
Addict
Addict
Posts: 2813
Joined: Tue May 08, 2007 1:27 pm
Location: Chiba, Japan

Post by pdwyer »

seems like you only need to code or read the stream format, the jpegs could be usable with native PB. If that's the case, doing it all in PB would be cleaner from the docs than from a port...

The RFC doc looks easier to get something up and running quickly though

just a thought.
Paul Dwyer

“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
TheCorporation
User
User
Posts: 11
Joined: Fri Sep 15, 2006 8:04 am
Location: FR

Post by TheCorporation »

(up : I'm still in the same problem).

> The RFC doc

Ok however I am not good programmer enough to be able to make a port :(.


What I wish to do is a 24/24 video recording software like MJPEG Surveillance ( http://www2.brooksyounce.com/soft/mjpeg.htm )
+ feature to erase old videos to not fill hard disk.

It seems to me that the Morgan M-JPEG codec from http://www.morgan-multimedia.com/ may be okay for that.
Please do you think is may be possible, or do you have other ideas ? :?:
Post Reply