?
Solved

DirectShow Mpeg2 playback in secondary monitor

Posted on 2004-09-30
5
Medium Priority
?
859 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1000 total points
ID: 12243588
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

What is RenderMan: RenderMan is a not any particular piece of software. RenderMan is an industry standard, defining set of rules that any rendering software should use, to be RenderMan-compliant. Pixar's RenderMan is a flagship implementation of …
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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

765 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