How to play DVD disk in windowless mode?  
Author Message

PostPosted: Media Foundation Development, How to play DVD disk in windowless mode? Top

I am using the VMR7 or VMR9 Windowless mode to render the DVD disk in the VC++ 2003/win32.

I am using following instructions




and parts of code from this instructions.

But I can't to complete this because not all streams (video and subpicture) are created after call RenderDVDVideoVolume method. I think this has connection with the following problem: a VMR Render Filter created and added to graph before call RenderDVDVideoVolume is replaced on standard (created in method) VMR Render Filter. And all my adjustments windowless mode disappear. In this case how to install windowless mode

ActiveX control MSWebDVD is able to play video in windowless mode. But as he this does I try to use a WinDebuger to understand this. MSWebDVD uses the other sequence action for working in windowless mode (don't call methods SetRenderingMode & SetVideoClippingWindow before RenderDVDVideoVolume). What sequence is he using

Audio and Video Development1  
Mike Wasson-MSFT

PostPosted: Media Foundation Development, How to play DVD disk in windowless mode? Top

This article may be helpful: url=/library/en-us/dnwmt/html/writingadvdplaybackapplicationindirectshow.asp

(See "Building the DVD Playback Graph")

You are correct that the DVD Navigator adds the renderer to the graph. To configure the VMR, call IDvdGraphBuilder::GetDvdInterface and ask for IVMRFilterConfig(9) before you call RenderDvdVideoVolume. Then set up windowless mode, and then call RenderDvdVideoVolume.

Mike Wasson, DirectShow SDK Documentation
This posting is provided "AS IS" with no warranties, and confers no rights. You assume all risk for your use.

(c) 2006 Microsoft Corporation. All rights reserved.


PostPosted: Media Foundation Development, How to play DVD disk in windowless mode? Top


Sorry, but this article don't help me I read it when I written my first question.

I create demo application (apologize for horrible code... it is demo app) (VS2003, MFC Dialog App, Unmanaged C++, with Windows Server 2003 R2 Platform SDK)

When I declare defines (in DVDWindowlessModeDlg.h):

#define xWINDOWLESS_MODE // Enable windowless mode
#define _xVMR9 // Disabel VMR9 mode

I see next picture i.e. after creation DVD graph appear new window for rendering video. But i enable windowless mode... and configure it use IVMRFilterConfig before call RenderDvdVideoVolume.

How render video on main window (in windowless mode) How need configure DVD Playback Graph for working in windowless mode


System Information
Time of this report: 7/6/2006, 21:11:16
Operating System: Windows Server 2003, Enterprise Edition (5.2, Build 3790) Service Pack 1 (3790.srv03_sp1_rtm.050324-1447)
Language: English (Regional Setting: English)
System Manufacturer: MICRO-STAR INC.
System Model: MS-6580
BIOS: Version 1.00
Processor: Intel(R) Pentium(R) 4 CPU 2.00GHz, ~2.0GHz
Memory: 1016MB RAM
Page File: 762MB used, 1694MB available
Windows Dir: C:\WINDOWS
DirectX Version: DirectX 9.0c (4.09.0000.0904)
DX Setup Parameters: Not found
DxDiag Version: 5.03.3790.1830 32bit Unicode

Display Devices
Card name: Intel(R) 82945G Express Chipset Family
Manufacturer: Intel Corporation
Chip type: Intel(R) 82845G Graphics Controller
DAC type: Internal
Display Memory: 64.0 MB
Current Mode: 1280 x 1024 (32 bit) (75Hz)
Monitor: Plug and Play Monitor
Driver Version: 6.14.0010.4396 (English)
DDI Version: 9 (or higher)
Driver Attributes: Final Retail
Driver Date/Size: 9/20/2005 10:52:38, 36990 bytes