Question about Transform filter
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
Question about Transform filter

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Encoders
Author Message
David White
Guest





Posted: Thu Dec 22, 2005 5:30 pm    Post subject: Question about Transform filter Reply with quote

When you write a transform filter on data before it is encoded I have one
small question. How do you get that data? Not programmatically but in what
format? What I really want to know is that in a raw capture without WM
Encoder it would capture to an AVI file (like with DirectX). What I am
curious is do I get that frame by frame image sent to my transform filter
before encoding? The reason is I have to do some image processing on it
before it gets encoded. If it is simply a matter of reading a doc I have
missed please point me to it. Thanks in advance.

--
David White
GSD Architecture

Back to top
David White
Guest





Posted: Fri Dec 23, 2005 1:30 am    Post subject: Re: Question about Transform filter Reply with quote

Thank you. These are high resolution ELMO cameras and we didn't do anything
except plug them into the capture card. Would it help to know what card? I
know we played with writing a DirectX capture program and it defaulted to
AVI. Is that standard?
--
David White
GSD Architecture


"Chris P. [MVP]" wrote:

Quote:
On Thu, 22 Dec 2005 07:40:02 -0800, David White wrote:

When you write a transform filter on data before it is encoded I have one
small question. How do you get that data? Not programmatically but in what
format? What I really want to know is that in a raw capture without WM
Encoder it would capture to an AVI file (like with DirectX). What I am
curious is do I get that frame by frame image sent to my transform filter
before encoding? The reason is I have to do some image processing on it
before it gets encoded. If it is simply a matter of reading a doc I have
missed please point me to it. Thanks in advance.

It depends on the capture device and what formats it's supports. The most
common formats are RGB and YUV2. In a normal DirectShow application you
can query the capture filter output pin for IAMStreamConfig and select the
format you would like to work with (e.g. RGB24).

What exactly can happen in the encoder world I'm not sure, it may take the
default of the driver. Probably a little experiment is in order as I
haven't seen it documented anywhere.
Back to top
Chris P. [MVP]
Guest





Posted: Fri Dec 23, 2005 1:30 am    Post subject: Re: Question about Transform filter Reply with quote

On Thu, 22 Dec 2005 07:40:02 -0800, David White wrote:

Quote:
When you write a transform filter on data before it is encoded I have one
small question. How do you get that data? Not programmatically but in what
format? What I really want to know is that in a raw capture without WM
Encoder it would capture to an AVI file (like with DirectX). What I am
curious is do I get that frame by frame image sent to my transform filter
before encoding? The reason is I have to do some image processing on it
before it gets encoded. If it is simply a matter of reading a doc I have
missed please point me to it. Thanks in advance.

It depends on the capture device and what formats it's supports. The most
common formats are RGB and YUV2. In a normal DirectShow application you
can query the capture filter output pin for IAMStreamConfig and select the
format you would like to work with (e.g. RGB24).

What exactly can happen in the encoder world I'm not sure, it may take the
default of the driver. Probably a little experiment is in order as I
haven't seen it documented anywhere.

Back to top
Chris P. [MVP]
Guest





Posted: Fri Dec 23, 2005 1:30 am    Post subject: Re: Question about Transform filter Reply with quote

On Thu, 22 Dec 2005 15:24:02 -0800, David White wrote:

Quote:
Thank you. These are high resolution ELMO cameras and we didn't do anything
except plug them into the capture card. Would it help to know what card? I
know we played with writing a DirectX capture program and it defaulted to
AVI. Is that standard?

What defaulted to AVI? AVI is a container format not a video format. The
majority of capture cards will default to YUV2 as it is less data on the
bus than RGB24. However almost all cards support RGB24, it just may not be
their default choice if you hook the capture source directly to the
renderer.

You can experiment in GraphEdit by creating an instance of the capture
filter and check it configuration before connecting to another filter.
Connect it to a compressor and an AVI mux and see if the configuration
changes. Disconnect and connect it to the ASF Writer and note is
configuration then.
Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Encoders All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB