Group:  English: Entertainment ยป microsoft.public.windowsmedia.sdk
Thread: IWMWriterSink::OnDataUnit Doubt

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

IWMWriterSink::OnDataUnit Doubt
patilchinmay[ at ]gmail.com 29.06.2007 18:28:20
Hi,
I am new to WMF SDK and still in the learning process. My app is
trying to write a WMV file from uncompressed video. One of the
requirements of my application is I need to send back encoded packets
to a SDK I am using. Now, the problems is when I send back the encoded
packet, I also need to specify the input(audio or video stream). Is
there a way to figure this out from OnDataUnit callback? If not, Is it
a good way to maintain some sort of buffer in front when I send the
packet to writer?

Thanks,
Chinmay

Re: IWMWriterSink::OnDataUnit Doubt
"Alessandro Angeli" <nobody[ at ]nowhere.in.the.net> 01.07.2007 02:13:03
From: "patilchinmay[ at ]gmail.com"

[Quoted Text]
> I am new to WMF SDK and still in the learning process.
> My app is trying to write a WMV file from uncompressed
> video. One of the requirements of my application is I
> need to send back encoded packets to a SDK I am using.
> Now, the problems is when I send back the encoded packet,
> I also need to specify the input(audio or video stream).
> Is there a way to figure this out from OnDataUnit
> callback?

The WMWriter creates an ASF transport stream ansd not
elementary a/v streams so, IIRC, the buffer passed to your
IWMWriterSink::OnDataUnit() can contain payloads of more
than one elementary stream. If you need to process the
elementary a/v streams, you should not use the WMWriter but
the WMA/WMV DMO encoders.

> If not, Is it a good way to maintain some sort
> of buffer in front when I send the packet to writer?

In front of what?

--
// 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