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: IWMWriterSink::OnDataUnit Doubt

HTVi
TV Discussion Newsgroups

IWMWriterSink::OnDataUnit Doubt
patilchinmay[ at ]gmail.com 6/29/2007 6:28:20 PM
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> 7/1/2007 2:13:03 AM
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
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen