Solved

DirectShow Mpeg2 playback in secondary monitor

Posted on 2004-09-30
5
830 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Artificial Intelligence comes in many forms, and for game developers, Path-Finding is an important ability for making an NPC (Non-Playable Character) maneuver through terrain.  A* is a particularly easy way to approach it.  I’ll start with the algor…
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

914 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