Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Entertainment » microsoft.public.windowsmedia.sdk
Thread: WM Video 9 Advanced Profile and two pass encoding

HTVi
TV Discussion Newsgroups

WM Video 9 Advanced Profile and two pass encoding
- HAL9000 <gumpy[ at ]mail.org> 5/8/2007 5:46:38 AM
Hello,

I have a developed a (DES) application which uses Windows Media Video
9 video encoder (and others). Testing the application with windows
media center edition I find another video encoder is available with
MCE - Windows Media Video 9 Advanced Profile. This encoder works for
with the developed application with one pass configuration/setting and
does not work with two pass settings. The problem with two pass
encoding is that the HRESULT for IMediaControl::Run() returns 80070057
(E_INVALIDARG). This seems a little odd since there are no arguments
for Run().

I use IConfigAsfWriter2::SetParam(AM_CONFIGASFWRITER_PARAM_MULTIPASS,
passes, 0) to set the number of passes and it (always correctly)
returns hr = 0.

1) Should two pass encoding work with WM video 9 advanced profile
encoder ?

2) The E_INVALIDARG error sounds like I might need to set something
unique to the 9 advanced encoder. Perhaps some default setting isn't
(now) correct with this encoder. Any ideas ?

Thanks...



Re: WM Video 9 Advanced Profile and two pass encoding
"Alessandro Angeli" <nobody[ at ]nowhere.in.the.net> 5/8/2007 6:05:55 PM
From: "- HAL9000"

[Quoted Text]
> I have a developed a (DES) application which uses Windows
> Media Video 9 video encoder (and others). Testing the
> application with windows media center edition I find
> another video encoder is available with MCE - Windows
> Media Video 9 Advanced Profile. This encoder works for

The WMV9AP encoder is just part of WMF v9.5+, which happens
to be installed on your MCE, but you can install it anywhere
(well, XP or newer Windows). It is also installed by WMP10+.
I suggest you use the VC-1 comptible version, which is part
of WMF 11.

> 1) Should two pass encoding work with WM video 9 advanced
> profile encoder ?

AFAIK yes.

> 2) The E_INVALIDARG error sounds like I might need to set
> something unique to the 9 advanced encoder. Perhaps some
> default setting isn't (now) correct with this encoder.
> Any ideas ?

None, but you should take a look at the newer docs for
WMF11:

http://msdn2.microsoft.com/en-us/library/bb288690.aspx
http://msdn2.microsoft.com/en-us/library/aa387410.aspx

Or you can just install the WMF 11 SDK.


--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm


Re: WM Video 9 Advanced Profile and two pass encoding
- HAL9000 <gumpy[ at ]mail.org> 5/17/2007 11:44:27 PM
Motherboard Help By HAL web site:
http://home.comcast.net/~mobo.help/


On Tue, 8 May 2007 14:05:55 -0400, "Alessandro Angeli"
<nobody[ at ]nowhere.in.the.net> wrote:

[Quoted Text]
>From: "- HAL9000"
>
>> I have a developed a (DES) application which uses Windows
>> Media Video 9 video encoder (and others). Testing the
>> application with windows media center edition I find
>> another video encoder is available with MCE - Windows
>> Media Video 9 Advanced Profile. This encoder works for
>
>The WMV9AP encoder is just part of WMF v9.5+, which happens
>to be installed on your MCE, but you can install it anywhere
>(well, XP or newer Windows). It is also installed by WMP10+.
>I suggest you use the VC-1 comptible version, which is part
>of WMF 11.
>
>> 1) Should two pass encoding work with WM video 9 advanced
>> profile encoder ?
>
>AFAIK yes.
>
>> 2) The E_INVALIDARG error sounds like I might need to set
>> something unique to the 9 advanced encoder. Perhaps some
>> default setting isn't (now) correct with this encoder.
>> Any ideas ?
>
>None, but you should take a look at the newer docs for
>WMF11:
>
>http://msdn2.microsoft.com/en-us/library/bb288690.aspx
>http://msdn2.microsoft.com/en-us/library/aa387410.aspx
>
>Or you can just install the WMF 11 SDK.

Thanks. I ended up installing the 9.5 SDK.

For the benefit of others in the future, according to this page
("Using the Codec DMOs with DirectShow")

http://msdn2.microsoft.com/en-us/library/aa391481.aspx

There is *no* native support of this codec for two pass encoding in a
direct show graph. A special wrapper must be built around the
advanced codec to use it with direct show & two pass.

The justification seems to be (by reading the page) that the wmv 9
video advanced codec is really a "dmo" and not innately a direct show
compressor filter - even though the wmv 9 advanced codec is listed
when the operating system is asked to enumerate the direct show video
compressors.

Re: WM Video 9 Advanced Profile and two pass encoding
"Alessandro Angeli" <nobody[ at ]nowhere.in.the.net> 5/18/2007 10:20:58 PM
From: "- HAL9000"

[Quoted Text]
> Motherboard Help By HAL web site:
> http://home.comcast.net/~mobo.help/

What??

> The justification seems to be (by reading the page) that
> the wmv 9 video advanced codec is really a "dmo" and not
> innately a direct show compressor filter - even though
> the wmv 9 advanced codec is listed when the operating
> system is asked to enumerate the direct show video
> compressors.

A video compressor as far as the DirectShow enumerator is
concerned is any filter registered under such category or
any other object for which there is a internal wrapper,
which includes VCM/ICM/VFW drivers and DMOs and most
encoders, excluding some MPEG-1/2 ones, are either VCM
drivers or DMOs and WindowsMedia encoders and decoders are
all DMOs since version 7.


--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen