Solved

DirectShow Mpeg2 playback in secondary monitor

Posted on 2004-09-30
5
825 Views
Last Modified: 2013-12-08
Hello.

I'm changing a perfectly working PlayWnd directShow sample to play an mpeg2 file on the secondary monitor of my pc.
I have two monitor, the second one extends the first one at coordinate 1240,0.
I changed the PlayWnd sample to create the window at 1300,10: the window lies entirely on the second screen area.

When I select the movie file, the audio starts but the playback video area is black.

It starts drawing only if i move of some pixels the window with the mouse by dragging in the title bar. I tried to reproduce this with a MoveWindow() but it does not work.

What is happening ?
Do I have to address the GraphBuilder to display in the second monitor explicitly ?

Thanks.
0
Comment
Question by:luciocosmo
  • 2
5 Comments
 
LVL 17

Expert Comment

by:davebytes
ID: 12220917
I don't know exactly how you specify it, but it likely has to do with the Overlay based renderer.  I can't remember which way it works: either overlay has problems with a secondary device, or you have to use overlay for the second device.

Sometimes, it also depends upon the driver providing proper support for the secondary display.

I don't have direct experience with the DS graph creation, but you should look at what renderer you can choose from, and maybe whether the renderer is somehow 'bound' to a particular device (which D3D would do...).

-d
0
 

Author Comment

by:luciocosmo
ID: 12224347
The PlayWnd sample does not choose explicitly the renderer.
The sample (it's a sample of DX sdk) does start up everything with

CoCreateInstance(...FilterGraph,... IID_IGRaphBuilder, &pGB)
and then
pGB->RederFile();

When I move the window, nothing more is done except positioning the output window itself on the secondary screen.
Do you know excactly what functions are used to choose explicitly the second overlay renderer ?
0
 
LVL 17

Accepted Solution

by:
davebytes earned 250 total points
ID: 12243588
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Recently, in one of the tech-blogs I usually read, I saw a post about the best-selling video games through history. The first place in the list is for the classic, extremely addictive Tetris. Well, a long time ago, in a galaxy far far away, I was…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video discusses moving either the default database or any database to a new volume.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now