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: Audio stream into Asf file

HTVi
TV Discussion Newsgroups

Audio stream into Asf file
pen <pan926[ at ]gmail.com> 10/6/2008 11:45:07 AM
Hi,
I use Windows Media Format SDK 9.5 to write a ASF Muxer filter, the
filter can receive precompressed video and audio data.
In addition, I have implemented a PCI based AVStream driver as a live
source filter, it can send compressed video and audio data.
The subtype of source filter's video capture pin is "H264", and the
subtype of audio pin is "ADPCM". I use Graphedit to test, and the
connection is as followig:

For capturing file:
(H264 data)
video capture pin --> ASF muxer
audio pin -- /
(ADPCM data)


For rendering file:
WM ASF reader --> h264 decoder --> video render
\--> ADPCM decoder -> sound render device


My question is as below:
The audio pin sends packets while capturing.
However, when I render the ASF file, the packets list are out of
order.
Audio packet:
1->2->4->3->5...
Does anyone know which factor will determine the audio packet list
in ASF file? like..
1.The vedio timestamp impacts on the audio?
2.Modify audio or vedio duration time ?
pHeader->Duration = -Timelimit.QuardPart;
3.Modify audio bitrate ? otherwise
Could I control the packet list by modifying my source
filter or ASF muxer filter?


Thanks a lot!
Best Regards,
pan.hsu

Re: Audio stream into Asf file
"Alessandro Angeli" <nobody[ at ]nowhere.in.the.net> 10/6/2008 3:29:16 PM
From: "pen"

[...]
[Quoted Text]
> Could I control the packet list by modifying my source
> filter or ASF muxer filter?

If you use Microsoft's WMWriter to create the ASF and
Microsoft's WM[Sync]Reader to parse it, you will receive the
same samples and in the same order as you wrote them. If you
use custom components, then you need to find out how those
components behave.


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