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
|