Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

DirectShow Mpeg2 playback in secondary monitor

Posted on 2004-09-30
5
Medium Priority
?
877 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

As game developers, we quickly learn that Artificial Intelligence (AI) doesn’t need to be so tough.  To reference Space Ghost: “Moltar, I have a giant brain that is able to reduce any complex machine into a simple yes or no answer. (http://www.youtu…
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

618 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