Link to home
Start Free TrialLog in
Avatar of Greg2FS
Greg2FS

asked on

C++ and VFW : how to use a ffdshow codec ?

Hello, my program currently create a avi file using AVIFileOpen.
By using AVISaveOptions I can show a dialog to select ffdshow and configure it to use a specific codec like mjpg.
The problem is than I don't want to use this dialog, the codec I want to use is MJPG, the problem is than
if I use fccHandler=mmioFOURCC('m', 'j', 'p', 'g'); it can't create the video

It works with xvid but mjpg seems to be usable only with ffdshow...
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Greg2FS
Greg2FS

ASKER

Because I get the error AVIERR_NOCOMPRESSOR
Avatar of Greg2FS

ASKER

I thought it was not possible to use directly mjpg codec but I just have a problem with it on my pc...