Re: Why can only play audio and video seperately?
- From: Iain <Iain@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 25 Jan 2007 08:53:32 +0000
On 24 Jan 2007 20:55:42 -0800, ceciliahaa@xxxxxxxxx wrote:
I have a custome directshow source filter. If I only connect and play
audio and video seperately using graphedit. Either audio and video
plays fine. But when I play then together, only audio plays. When I
debug, seems the thread for audio FillBuffer gets above normal
priority.
Do I need to do the syn for audio and video by myself? And how?
Thanks for any input.
Then your source filter is wrong.
The sort of thing you describe is either caused by the timestamps been set
incorrectly (which is the only synchronisation you need to do) or (more
likely) because the samples for one stream *block* the other stream.
Typically you need to so some buffering and likely put whatever parses the
source material into two streams into a separate thread with some
synchronisation.
Iain
--
Iain Downs (DirectShow MVP)
Commercial Software Therapist
www.idcl.co.uk
.
- Follow-Ups:
- Re: Why can only play audio and video seperately?
- From: ceciliahaa
- Re: Why can only play audio and video seperately?
- References:
- Why can only play audio and video seperately?
- From: ceciliahaa
- Why can only play audio and video seperately?
- Prev by Date: RE: compilation error when using CComPtr w/ CUnknown-derived objects
- Next by Date: Re: Single MP4 file for both PSP and iPod
- Previous by thread: Why can only play audio and video seperately?
- Next by thread: Re: Why can only play audio and video seperately?
- Index(es):
Relevant Pages
|