Solved

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

Posted on 2010-08-28
3
1,838 Views
Last Modified: 2012-05-10
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
Comment
Question by:Greg2FS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 33549921
ffdshow has these predefined (see http://red5cpp.googlecode.com/svn/trunk/ffdshow/ffdshow_mediaguids.h), so why not using 'FOURCC_MJPG' directly?
0
 

Author Comment

by:Greg2FS
ID: 33550335
Because I get the error AVIERR_NOCOMPRESSOR
0
 

Author Closing Comment

by:Greg2FS
ID: 33578795
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

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An article on effective troubleshooting
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
Viewers will learn the basics of creating custom device Racks in Ableton Live. Place instrument(s) and effects onto a track, and select them all by holding the Shift key and clicking on the device title bars: Group them by typing Command-G (Ctrl-G…
Viewers will learn how to use LFOs to modulate the sound of their Sampler instruments. Click the Modulation tab in Sampler: Choose one (or more) of the three available LFOs, and click the respective button to turn it on: Select a waveform, an LF…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question