Solved

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

Posted on 2010-08-28
3
1,811 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
Comment Utility
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
Comment Utility
Because I get the error AVIERR_NOCOMPRESSOR
0
 

Author Closing Comment

by:Greg2FS
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Viewers will learn how to create and use Simpler instruments in Ableton Live. Load new Simpler into an empty MIDI track: Select a sample and drop it into sample window in Simpler: If sample is not pitched at C3, adjust tuning with Transpose para…
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…

728 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now