• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1898
  • Last Modified:

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...
0
Greg2FS
Asked:
Greg2FS
  • 2
1 Solution
 
jkrCommented:
ffdshow has these predefined (see http://red5cpp.googlecode.com/svn/trunk/ffdshow/ffdshow_mediaguids.h), so why not using 'FOURCC_MJPG' directly?
0
 
Greg2FSAuthor Commented:
Because I get the error AVIERR_NOCOMPRESSOR
0
 
Greg2FSAuthor Commented:
I thought it was not possible to use directly mjpg codec but I just have a problem with it on my pc...
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now