|
|
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 120 bytes for each packet while capturing. However, when I render the ASF file, the packet size passing to ADPCM decoder is only 8 byptes. I would like the audio packedt size stored in ASF is a multiple of 3, then my ADPCM decoder can decompress the audio data. Does anyone know which factor will determine the audio packet size in ASF file? Could I control the packet size by modifying my source filter or ASF muxer filter?
Thanks a lot! Best Regards, Gordon
|
|
|