MJPEG Codec

Hello everybody,

I want to be able to read a MJPEG video coming from a file sequences in a single video stream.
I explain me:
I have several AVI MJPEG files (without audio stream beacause not need it). I want to create a player who read this file (one following the other) as if there were only one and long video. Moreover the user must be able to "travel" inside this video with a temporal cursor (for all the loaded file).

I already use DirectDraw for camera video display. I use VC6 but I migrate (slowly) to dotNET.

My questions:
- How to do that? what are the means?
- Only DirectX could help me (DirectDraw/Show, etc)?
- What are potentials difficulties?

Thanks in advance for all your suggestions... :)
[766 byte] By [raphael.kindt] at [2007-11-19 6:27:57]
# 1 Re: MJPEG Codec
I suggest you use direct show to read the mjpeg file.
However you will need to download a mjpeg codec if your hardware doesn't support mjpeg. (Matrox is about the only one I know of that does.)

for the codec go to www.dvdrhelp.com and search for mjpeg codec.

I think that QuickTime supports mjpeg and maybe you might be able to develope on top of QuickTime.
bobbob at 2007-11-10 3:50:56 >
# 2 Re: MJPEG Codec
Here ( http://www.gdcl.co.uk/articles/index.htm) you'll find the "GMFPlay" sample, which does exactly what you need.
Regards.
Orf at 2007-11-10 3:51:56 >
# 3 Re: MJPEG Codec
Thanks a lot for this solution...
It's exactly what I want!
:thumb: :thumb: :thumb:

How do you have found that?
raphael.kindt at 2007-11-10 3:52:58 >
# 4 Re: MJPEG Codec
I'm working on DirectShow and I need to control many different clips at the same time - and I need them NOT to be synchronized. This is a classical multigraph scenario... but this kind of topics aren't very cool around the DirectX developers community. After a while I found some good sources - everything started here: http://www.radlight.net/forum/index.php?showforum=9

I'd like to keep in touch with other DirectShow developer, if you're interested, let me know.

Ciao
:wave:
Orf at 2007-11-10 3:53:52 >