Solved

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

Posted on 2010-08-28
3
1,831 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
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

685 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