Solved

DirectShow Mpeg2 playback in secondary monitor

Posted on 2004-09-30
5
852 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 250 total points
ID: 12243588
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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 …
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.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

729 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