Re: DirectShow Thread Priority
- From: Iain <Iain@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 5 Apr 2005 08:06:19 +0100
On Mon, 04 Apr 2005 21:44:06 -0700, Tim Roberts wrote:
> "gman" <gman@xxxxxxxxxxx> wrote:
>>
>>How can I set the thread priority for a DirectShow Graph? I am using VMR9
>>and I want the video stream I create to have the highest thready priortiy so
>>that the last thing to suffer is my video frame rate.
>>
>>Anyone know how to do this?
>
> It already runs at an elevated priority. However, the renderer does not
> operate in a vacuum. It doesn't matter how high the renderer's priority is
> if the file source cannot feed frames, the compressor cannot decompress
> them, or the color space converter cannot process them.
>
> As a general rule, it is counterproductive to mess with the individual
> thread priorities. A video graph is a relatively balanced process.
I'm not persuaded that it does run at a higher priority. Certainly the
audio renderer does not.
There are two approaches. Quick and dirty simply raises the priority of
your whole app. This is fine if it is interference from 3rd party apps
that is the problem.
The other approach is to enumerate the threads in the process, pause / run
the graph, enumerate the threads again and raise the priority of the new
threads.
Iain
--
Iain Downs (DirectShow MVP)
Software Product Consultant
www.idcl.co.uk
.
- Follow-Ups:
- Re: DirectShow Thread Priority
- From: Peter Duniho
- Re: DirectShow Thread Priority
- References:
- DirectShow Thread Priority
- From: gman
- Re: DirectShow Thread Priority
- From: Tim Roberts
- DirectShow Thread Priority
- Prev by Date: Re: What filter to use?
- Next by Date: Re: Setting programmatically generated data source for Directshow
- Previous by thread: Re: DirectShow Thread Priority
- Next by thread: Re: DirectShow Thread Priority
- Index(es):
Relevant Pages
|