Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to use DirectShow to convert from AVI to MPG1

5 views
Skip to first unread message

jim

unread,
Feb 26, 2007, 8:17:35 PM2/26/07
to
Hi:
I have some video files ,I want to convert some avi file to MPG1
files use DirectShow.
I tried to use code as :
pBuilder->SetOutputFileName(&MEDIASUBTYPE_MPEG1System,
T2W(szOutFilename), &pMux, &pWriter);//this function return "not
found register class".

I need your help,can you give me some demo code?
Thank you in advance.

Michel Roujansky - DirectShow Consultant and Trainer

unread,
Apr 1, 2007, 4:42:45 AM4/1/07
to
On Feb 27, 3:17 am, "jim" <n...@hotmail.com> wrote:
> Hi:

> I tried to use code as :
> pBuilder->SetOutputFileName(&MEDIASUBTYPE_MPEG1System,
> T2W(szOutFilename), &pMux, &pWriter);//this function return "not
> found register class".

SetOutputFileName : the documentation says :
"If you specify a media subtype, it must be one of the following:
MEDIASUBTYPE_Avi Audio-Video Interleaved (AVI)
MEDIASUBTYPE_Asf Advanced Systems Format (ASF)"

For MPEG1, you should just specify MEDIATYPE_Stream.


0 new messages