VMR Tests (Compact 7)
3/12/2014
This test is to verify all the basic functions in the video mixing renderer (VMR), which include graph building and mixing playback.
Test Prerequisites
Your device must meet the following requirements before you run this test.
*The XML file to be used with this is cetk_vmr_e2e_test.xml
*Be tested with VMRE2ETest.dll
*The test device should have display, sound card, and network access
*The beginning of the XML configure file cetk_vmr_e2e_test.xml contains information about the media used for test
*The information in the file points to one internal server, cedxmedia, which you will not be able to use
Subtests
The table below lists the subtests included in this test.
SubTest ID | Description |
---|---|
100 |
Video Mixing Renderer - Graph build test-two .wmv files (windowed) |
101 |
Video Mixing Renderer - Graph build test-two .mpeg files (windowed) |
102 |
Video Mixing Renderer - Graph build test-two .avi files (windowed) |
103 |
Video Mixing Renderer - Graph build test-.avi, .mpeg and .wmv (windowed) |
104 |
Video Mixing Renderer - Graph build test-.wmv and .mpeg (windowless) |
105 |
Video Mixing Renderer - Graph build test-.wmv and .avi (windowless) |
106 |
Video Mixing Renderer - Graph build test-.avi and .mpeg (windowless) |
107 |
Video Mixing Renderer - Graph build test-two .wmv files (renderless) |
108 |
Video Mixing Renderer - Graph build test-build the filter graph in mixing mode (windowless) with max streams |
200 |
Video Mixing Renderer - E2E Mixing test-.avi and .wmv, Z order not set. The .wmv should be played on the top since it was connected last. (windowed). |
201 |
Video Mixing Renderer - E2E Mixing test-.avi and .wmv, Z order set. The .avi should be played on the top since its Z order is 0 (windowed). |
202 |
Video Mixing Renderer - E2E Mixing test-.mpeg and .wmv, output rect are not set and .mpeg has 0 Z order (windowed). |
203 |
Video Mixing Renderer - E2E Mixing test-.mpeg and .wmv, output rect (0,0,0.5,0.5) for .mpeg with 0 Z order (windowed). |
204 |
Video Mixing Renderer - E2E Mixing test-two .avi files, Z order and output rect both are set (windowed). |
205 |
Video Mixing Renderer - E2E Mixing test-two .mpeg files, Z order and output rect both are set (windowed). |
206 |
Video Mixing Renderer - E2E Mixing test-.wmv (0,0,0.5,0.5) and .avi (0,0,1.0,1.0) (windowless) |
207 |
Video Mixing Renderer - E2E Mixing test-.wmv (0,0,0.75,0.75) and .mpeg (0.25,0.25,1,1) (windowless) |
208 |
Video Mixing Renderer - E2E Mixing test-.avi (0,0,0.25,0.25) and .mpeg (0.15,0.15,0.85,0.85), .avi resize to smaller size (windowless) |
209 |
Video Mixing Renderer - E2E Mixing test-two .avi files (0,0,0.75,0.75) and (0,0,1,1), .avi resize to bigger size (windowless) |
210 |
Video Mixing Renderer - E2E Mixing test-.wmv (0,0,.75,.75) and .avi (0,0,1,1), WMV resize to a bigger size (windowless) |
211 |
Video Mixing Renderer - E2E Mixing test-.avi (0,0,.85,.85) and .mpeg (0,0,1,1), .avi resize to a bigger size (windowless) |
212 |
Video Mixing Renderer - E2E Mixing test-.wmv Reposition to UL of .avi (windowless) |
213 |
Video Mixing Renderer - E2E Mixing test-.wmv reposition to UR of .avi (windowless) |
214 |
Video Mixing Renderer - E2E Mixing test-.wmv reposition to BL of .avi (windowless) |
215 |
Video Mixing Renderer - E2E Mixing test-.wmv reposition to BR of .avi (windowless) |
216 |
Video Mixing Renderer - E2E Mixing test-.wmv reposition to center of .avi (windowless) |
217 |
Video Mixing Renderer - E2E Mixing test-.wmv reposition to random pos of .avi (windowless) |
218 |
Video Mixing Renderer - E2E Mixing test-one .avi reposition to random pos of another .avi (windowless) |
219 |
Video Mixing Renderer - E2E Mixing test-.avi reposition to center of .mpeg (windowless) |
220 |
Video Mixing Renderer - E2E Mixing test-mixing .wmv and .avi, stretch the final image (windowless) |
221 |
Video Mixing Renderer - E2E Mixing test-mixing .wmv and .mpeg, shrink the final image (windowless) |
222 |
Video Mixing Renderer - E2E Mixing test-mixing two .avi, stretch the final image (windowless) |
223 |
Video Mixing Renderer - E2E Mixing test-mixing two .avi, shrink the final image (windowless) |
300 |
Video Mixing Renderer - E2E Mixing test-.avi (0 alpha) and .wmv (1 alpha) in windowed mode. |
301 |
Video Mixing Renderer - E2E Mixing test-.avi (0.01) and .wmv (0.99) in windowed mode. |
302 |
Video Mixing Renderer - E2E Mixing test-mpeg (0.5 alpha, output rectÍž 0,0,0.5,0.5) and .wmv (0.5 alpha) in windowed mode. |
303 |
Video Mixing Renderer - E2E Mixing test-two .wmv files with 0.1 and 0.3 alpha in windowed mode. |
304 |
Video Mixing Renderer - E2E Mixing test-two .avi files with 0.3 and 0.5 alpha in windowed mode. |
305 |
Video Mixing Renderer - E2E Mixing test-two .mpeg files with 0.5 and 0.7 alpha in windowed mode. |
306 |
Video Mixing Renderer - E2E Mixing test-.wmv (0.5) and .avi (1.0) in windowless mode |
307 |
Video Mixing Renderer - E2E Mixing test-.wmv (0.75) and .mpeg (0.25) in windowless mode |
308 |
Video Mixing Renderer - E2E Mixing test-.avi (0.4) and .mpeg (0.8) in windowless mode |
309 |
Video Mixing Renderer - E2E Mixing test-two .avi files both with 0.5 alpha, .avi resize to bigger size (windowless) |
310 |
Video Mixing Renderer - E2E Mixing test-.wmv (0.05) and .avi (0.15), .wmv resize to a bigger size (windowless) |
311 |
Video Mixing Renderer - E2E Mixing test-.avi (0.95) and .mpeg (0.85), .avi resize to a bigger size (windowless) |
312 |
Video Mixing Renderer - E2E Mixing test-two .avi, random alpha (windowless) |
313 |
Video Mixing Renderer - E2E Mixing test-Alpha blending two .wmv with Z order, Output rect, bkg clr, mixing pref (windowless) |
400 |
Video Mixing Renderer - Blending test using custom AP-Alpha blending using custom allocator presenter for two .wmv (renderless) |
401 |
Video Mixing Renderer - Blending test using custom AP-Alpha blending using custom allocator presenter for two .avi (renderless) |
402 |
Video Mixing Renderer - Blending test using custom AP-Alpha blending using custom allocator presenter for .wmv and .mpeg (renderless) |
403 |
Video Mixing Renderer - Blending test using custom AP-Alpha blending using custom allocator presenter for .wmv and .avi (renderless) |
500 |
Video Mixing Renderer - Blend static bitmap on the video stream-Blending the bitmap from a device context shrinking (windowed) |
501 |
Video Mixing Renderer - Blend static bitmap on the video stream-Blending the bitmap from a device context stretching (windowed) |
502 |
Video Mixing Renderer - Blend static bitmap on the video stream-Blending the bitmap from a Microsoft DirectDraw surface shrinking (windowless) |
503 |
Video Mixing Renderer - Blend static bitmap on the video stream-Blending the bitmap from a Microsoft DirectDraw surface stretching (windowless) |
Setting Up the Test
*Make sure you have VMRE2ETest.dll and cetk_vmr_e2e_test.xml
*Make sure the test machine can access the media you specified in the XML file
1. If you want to test streaming playback:
*To make the test work for you, you need to set up an Internet Information Services (IIS) server yourself, then you need to modify <BaseUrl> to match your server setup. For example, its original setup is <IIS_HTTP>http://cedxmedia/mediafiles/WMV/</IIS_HTTP>. If you server name is OEMServer, and you put the media file under path testmedia\wmv, then the new setup should be <IIS_HTTP>http://OEMServer/testmedia/WMV/</IIS_HTTP>
*Then you need to update the <FileName> to match your media file name. For example, the media CthdNewSignedWMV has file name <FileName>cthd_320_240_24_newsigned.wmv</FileName>. If your file name is OEMtest.wmv, the new string should be <FileName>OEMtest.wmv</FileName>
*Make the same modification to each media you want to use for the tests
*When you finish all modifications, you can start the test and the test will automatically go to the specified location to look for the test media
2. If you only want to do local playback:
*Copy the media to the root of the hard disk or the storage card of your device
*Update all media strings of all test cases in the XML to use disk instead of IIS_HTTP, for example, the original string is <Media>BVT_WMV:IIS_HTTP</Media>, change it to <Media>BVT_WMV:Disk</Media>
*When you finish all changes, the test will look for the media file on the hard disk or storage card
Running the Test
Command line option | Description |
---|---|
/Config <file> |
Name and path of the configuration for the media files |
Verifying the Test
*Check test passes in the log
*Visual inspection is required to make sure the final playback image on the screen is correct
Troubleshooting the Test
*If graph building fails, first determine whether the path to the media specified in the XML file is correct, if you can access it
*Then determine whether you have all the required sysgens
For additional platform specific issues, consult the CTK articles on the TechNet wiki.