Re: Why can only play audio and video seperately?

Tech-Archive recommends: Speed Up your PC by fixing your registry



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
.



Relevant Pages

  • Re: Burning a video to DVD from AIFF and MPEG-2 files
    ... I have never attempted to burn a video to DVD. ... video and audio are available for download as separate files. ... depending on whether I wanted an AC3 or MP2 audio stream. ... for the higher video bitrate when using an MP2 audio stream is because ...
    (alt.os.linux.suse)
  • Managing one video source with 2 audio sources....
    ... We have some issues that are keeping us from improving our video quality. ... The main issue is having audio streams for a given region of the country. ... The problem comes in where we've got to manage each audio stream separately, ... keeping our separate audio streams which is important to our customers. ...
    (microsoft.public.windowsmedia.sdk)
  • Re: video playback speed too fast
    ... If I play the video stream only the playback speed appears to be correct! ... Under proposed solutions and tests doing just the audio stream all of the solutions failed. ... I tried unchecking all the converters and with the default set both with same 'fast' playback. ...
    (microsoft.public.windows.vista.music_pictures_video)
  • Re: (OT?): Could DTV become the new Radio
    ... If you got the bit stream down to around a half a megabit ... The video could be minimal, ... audio of an associated radio station. ... could transmit *only* the audio stream. ...
    (rec.radio.shortwave)
  • Re: How to implement a DS source/splitter filter that accept live video
    ... video and audio are in separate stream. ... I still don't understand what this source filter ...
    (microsoft.public.win32.programmer.directx.video)