Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2010-08-28
3
Medium Priority
?
1,877 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 2000 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
 
LVL 1

Author Comment

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

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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

609 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