Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DirectShow and Remote Desktop

259 views
Skip to first unread message

fritz

unread,
Dec 13, 2007, 4:27:16 AM12/13/07
to
Hi all,

I've an application for grabbing video frame-by-frame from a capture
device. I use a SampleGrabber to do this, I have also a preview window
of the video using a SmartTee. The preview is drawn in a dialog that
is hidden, but I can show it by clicking a button on my application
dialog to see if the video runs.

Now when I start this application and then I connect to the computer
using Remote Desktop, the grabbing stops. The application is running
with no error, but the graph is freezed (or it is in some weird
state). But when I show the dialog with the video preview, the whole
graph continues to run! Moreover when I close the RD session and open
it again, the video does not stop and runs smoothly! This happens only
first time after the application is started - the first RD connection
"freezes" the graph.

I've read that there is some problem with directshow and remote
desktop, but I haven't found any answer what should I do to prevent
this. Do you anyone

Geraint Davies

unread,
Dec 13, 2007, 5:02:03 AM12/13/07
to
On Thu, 13 Dec 2007 01:27:16 -0800 (PST), fritz
<fritz...@yahoo.com> wrote:
>
>I've read that there is some problem with directshow and remote
>desktop, but I haven't found any answer what should I do to prevent
>this. Do you anyone

I'm not sure, but I guess that when you log in using RDP you switch to
a new desktop or something like that. So this is the old issue about
how the video renderer handles loss of display -- the graph is
stopped, reconnected and then there is a seek to the previous position
and a restart. Perhaps this fails in your graph? Worth investigating
anyway.

G

The March Hare [MVP]

unread,
Dec 13, 2007, 10:36:10 AM12/13/07
to
On Thu, 13 Dec 2007 01:27:16 -0800 (PST), fritz wrote:

> have also a preview window
> of the video using a SmartTee. The preview is drawn in a dialog that
> is hidden, but I can show it by clicking a button on my application
> dialog to see if the video runs.

Which renderer are you using? AFAIK, VMR9 will not work across RD nor will
VMR7 if it is using the overlay surface [ easy to verify using RD with the
VMR samples that come with the SD ].

--
Please read this before replying:
1. Dshow & posting help: http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others: follow up if you are helped or you found a solution

Alessandro Angeli

unread,
Dec 13, 2007, 1:42:20 PM12/13/07
to
From: "Geraint Davies"

> I'm not sure, but I guess that when you log in using RDP
> you switch to a new desktop or something like that.

From what I can tell, the video driver is switched
on-the-fly from the actual hardware to a software-only
emulation, which of course does not support DD5/7 or D3D9
acceleration.

--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm

Marcel

unread,
Jan 23, 2008, 7:46:45 AM1/23/08
to

I had a similar problem when Fast User Switching was used or when the
user pressed Ctrl-Alt-Del.
When the hardware accelerated video renderer was replaced with
'CLSID_VideoRenderer' the problem was fixed.

Marcel

0 new messages