Click here to Skip to main content
12,406,528 members (53,960 online)
Rate this:
Please Sign up or sign in to vote.
Hi to all,

I need (important) to modify each picture of an motion jpeg file.
For other image preocessing I use OpenGL.

Can anybody show me a SIMPLE code example how to
a) load an MJPEG file in C++
b) get an image (CImage, byte array, ...)?

If it is neccessary to include anything, please tell me also Smile | :)

Help would be great!

Thank you a lot! Smile | :)
Posted 15-Feb-11 0:41am
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

Opengl is not for image processing. What are you trying to achieve ?

BTW , regarding mpeg reading, you could use ffdshow[^], or directshow libraries.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Try looking at some of the samples in this google search.
There were only about 3,910,000 results, so go forth and search out your answer. When you get to the point of a more specific coding question, please feel free to ask and we'll be more than happy to provide more detailed responses.
Delta-XC-52 16-Feb-11 6:48am
a) if i would not have spend at least two hole days for searching, this question would not exist!
b) i need to extract this image in c++ environment, there is no sense if some great freeware are able to do this
c) i need the correct code in c++ for:
-- P S E U D O --
fun loadMJPEG(String filename)
VIDEO myInput = open(filename);
BITMAP keyBitmap = myInput.getSinglePicture(hour.min.sec.frame);
return keyBitmap;
Marcus Kramer 16-Feb-11 8:21am
a) If you would have told us that instead of assuming that we would assume that, then my answer for google search wouldn't have existed. Voting an answer 1 because YOU didn't provide all the information is pretty silly.
b) So what have you tried? We're not going to do your work for you, we're here to help you with coding issues you encounter along the way.
c) That's nice, but since you're not, I have no wish to help you now.
Maybe you didn't notice, but I was the only one who even made any attempt to help you on this. Talk about biting the hand that feeds you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.160730.1 | Last Updated 16 Feb 2011
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100