Click here to Skip to main content
15,914,221 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: High CPU window on second monitor (DirectShow) Pin
Cpt Rick22-Feb-07 5:53
Cpt Rick22-Feb-07 5:53 
GeneralRe: High CPU window on second monitor (DirectShow) Pin
Mark Salsbery22-Feb-07 6:03
Mark Salsbery22-Feb-07 6:03 
GeneralRe: High CPU window on second monitor (DirectShow) Pin
Cpt Rick22-Feb-07 9:16
Cpt Rick22-Feb-07 9:16 
GeneralRe: High CPU window on second monitor (DirectShow) Pin
Mark Salsbery22-Feb-07 10:07
Mark Salsbery22-Feb-07 10:07 
GeneralRe: High CPU window on second monitor (DirectShow) Pin
Cpt Rick23-Feb-07 0:42
Cpt Rick23-Feb-07 0:42 
GeneralRe: High CPU window on second monitor (DirectShow) Pin
Mark Salsbery23-Feb-07 6:43
Mark Salsbery23-Feb-07 6:43 
GeneralRe: High CPU window on second monitor (DirectShow) Pin
Cpt Rick23-Feb-07 1:31
Cpt Rick23-Feb-07 1:31 
GeneralRe: High CPU window on second monitor (DirectShow) Pin
Mark Salsbery23-Feb-07 7:09
Mark Salsbery23-Feb-07 7:09 
Again I use custom renderers implemented using GDI so the Direct3D stuff is vague to me Smile | :)

Did you mention, are you using 1 video adapter or 2?

I guess it's obvious the CPU is doing a bunch of work that normally the DirectX-enabled video
processor handles...


Also, are you actually mixing two streams into one VMR or just using multiple VMRs (I'm unclear
how you are using MultiVMR9 dll)?

For my software, I needed multiple viewers of individual media streams (filter graphs).
My solution was to create my own render filters (I use two - one for actual rendering, and one
is more of a framegrabber but implemented as a renderer filter so it completes a filter graph).

For each graph, I implemented it kind of like sockets (I call 'em video sockets).

The graph is built and run using the dumb renderer sitting on an infinite tee. I do that so the
graph can be running already when I attach viewers.

Each time I need a new viewer I just connect an instance of my renderer to the infinite tee
(kinda like a socket). I added a callback to the renderer so I can get a look at every frame
before it's displayed and perhaps mix something (or draw on) with the frame.
The rendering is done with simple old GDI.

The performance is great. With only one graph per stream, the CPU usage is whatever it takes to
capture and move frames given the frame rate and frame size. Adding more views doesn't add
any noticeable CPU (I test this every once in a while - open 20 or 30 video windows on multiple
monitors LOL).

Good luck - I'll look forward to the article!

Mark





"Do you know what it's like to fall in the mud and get kicked... in the head... with an iron boot?
Of course you don't, no one does. It never happens. It's a dumb question... skip it."

QuestionSocket connection Pin
nahitan22-Feb-07 5:12
nahitan22-Feb-07 5:12 
AnswerRe: Socket connection Pin
Mila02522-Feb-07 6:26
Mila02522-Feb-07 6:26 
GeneralRe: Socket connection Pin
nahitan22-Feb-07 6:39
nahitan22-Feb-07 6:39 
GeneralRe: Socket connection Pin
Mark Salsbery22-Feb-07 7:33
Mark Salsbery22-Feb-07 7:33 
GeneralRe: Socket connection Pin
nahitan22-Feb-07 7:48
nahitan22-Feb-07 7:48 
QuestionCDBException while accessing slq server database using CDatabase class Pin
Cyber Friend22-Feb-07 4:12
Cyber Friend22-Feb-07 4:12 
AnswerRe: CDBException while accessing slq server database using CDatabase class Pin
Mark Salsbery22-Feb-07 5:42
Mark Salsbery22-Feb-07 5:42 
GeneralRe: CDBException while accessing slq server database using CDatabase class Pin
Cyber Friend23-Feb-07 0:04
Cyber Friend23-Feb-07 0:04 
GeneralRe: CDBException while accessing slq server database using CDatabase class Pin
Mark Salsbery23-Feb-07 6:32
Mark Salsbery23-Feb-07 6:32 
GeneralRe: CDBException while accessing slq server database using CDatabase class Pin
Cyber Friend23-Feb-07 2:26
Cyber Friend23-Feb-07 2:26 
GeneralRe: CDBException while accessing slq server database using CDatabase class Pin
Mark Salsbery23-Feb-07 6:31
Mark Salsbery23-Feb-07 6:31 
AnswerRe: CDBException while accessing slq server database using CDatabase class [modified] Pin
prasad_som22-Feb-07 17:54
prasad_som22-Feb-07 17:54 
GeneralRe: CDBException while accessing slq server database using CDatabase class Pin
Cyber Friend23-Feb-07 0:09
Cyber Friend23-Feb-07 0:09 
Questionwindows keyboard hook / postmessage / sendmessage Pin
viral_umang@hotmail.com22-Feb-07 3:25
viral_umang@hotmail.com22-Feb-07 3:25 
AnswerRe: windows keyboard hook / postmessage / sendmessage Pin
Cedric Moonen22-Feb-07 3:32
Cedric Moonen22-Feb-07 3:32 
GeneralRe: windows keyboard hook / postmessage / sendmessage Pin
viral_umang@hotmail.com22-Feb-07 4:07
viral_umang@hotmail.com22-Feb-07 4:07 
GeneralRe: windows keyboard hook / postmessage / sendmessage Pin
Cedric Moonen22-Feb-07 4:17
Cedric Moonen22-Feb-07 4:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.