• Menu
  • Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

JavaBeat

Java Tutorial Blog

  • Java
    • Java 7
    • Java 8
    • Java EE
    • Servlets
  • Spring Framework
    • Spring Tutorials
    • Spring 4 Tutorials
    • Spring Boot
  • JSF Tutorials
  • Most Popular
    • Binary Search Tree Traversal
    • Spring Batch Tutorial
    • AngularJS + Spring MVC
    • Spring Data JPA Tutorial
    • Packaging and Deploying Node.js
  • About Us
    • Join Us (JBC)
  • Java
    • Java 7
    • Java 8
    • Java EE
    • Servlets
  • Spring Framework
    • Spring Tutorials
    • Spring 4 Tutorials
    • Spring Boot
  • JSF Tutorials
  • Most Popular
    • Binary Search Tree Traversal
    • Spring Batch Tutorial
    • AngularJS + Spring MVC
    • Spring Data JPA Tutorial
    • Packaging and Deploying Node.js
  • About Us
    • Join Us (JBC)

3D Game Development with Microsoft Silverlight 3

October 26, 2009 //  by Krishna Srinivasan//  Leave a Comment

Time for action – preparing a video to use it in Silverlight

Now, we are going to use Expression Encoder to convert the video from an AVI format
to an HD 720p Intranet (High Definition, 1280X720 pixels) encoding profile, compatible
with Silverlight 3:

  1. Save or copy the original video file (introduction_HD.avi) in a new folder
    (C:\Silverlight3D\Invaders3D\Media).
  2. Start Expression Encoder.
  3. Select File | New Job.
  4. Now, select File | Import…. Browse to the folder that holds the video file (C:\
    Silverlight3D\Invaders3D\Media) and select the file introduction_
    HD.avito import. Then, click on Open. Expression Encoder will analyze the file for a
    few seconds and then, the first frame for the video will appear on the preview area.
  5. Expand Profile and select HD 720p Intranet from the Video combo box. This step
    defines the desired video profile for the encoding process. The Video Profile options
    will display the output video’s width, height, and aspect ratio, among other
    parameter values, as shown in the following screenshot:
  6. Click on the Output tab, expand Job output and click on the Browse for output
    folder
    button (…) on the right side of the Directory text box. Browse to the folder
    that holds the original video file (C:\Silverlight3D\Invaders3D\Media)
    and click on OK.
  7. Select File | Encode or click on the Encode button. Expression Blend will
    begin the encoding job and will display the overall progress as shown in the
    following screenshot:
  8. After a few seconds (depending on the video length, resolution, and format),
    Expression Blend will show Ready in the Status column.
  9. Right-click on the item (C:\Silverlight3D\Invaders3D\Media\
    introduction_HD.avi) under Media Content and select Open File Location
    in the context menu that appears. A new Explorer window will appear
    showing the folder with a new sub-folder with the default user name as a
    prefix, the date and the time. Enter this sub-folder and move the new video
    file (introduction_HD.wmv) to the previously mentioned parent folder.
  10. Double-click on the new video file (introduction_HD.wmv) and watch
    it using your default media player (Windows Media Player or VLC Media
    Player, among others). Check whether the video quality, resolution, and
    reproduction are as good as expected, as shown in the following screenshot:

What just happened?

You used Expression Blend to encode the original AVI video into a WMV (Windows Media
Video)
with an HD 720p Intranet encoding profile. Now, the video has a 1280X720 pixels
resolution and it is compatible with Silverlight 3.


	In this case, we created a video prepared for an application that runs on the
	Intranet because we want to test the game. However, we will have to choose
	a different encoding profile according to the Internet bandwidth off ered by
	the hosting service and the average download speed available for the game's
	potential players. The steps to encode the video using a different profile are the
	same as the ones used in the previously explained procedure. The only step that
	changes is the one in which we select the desired encoding profile.

Pages: Page 1 Page 2 Page 3 Page 4 Page 5

Category: MicrosoftTag: Silverlight

About Krishna Srinivasan

He is Founder and Chief Editor of JavaBeat. He has more than 8+ years of experience on developing Web applications. He writes about Spring, DOJO, JSF, Hibernate and many other emerging technologies in this blog.

Previous Post: « Installation and Configuration for OpenLDAP
Next Post: WordPress for Business Bloggers »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Follow Us

  • Facebook
  • Pinterest

FEATURED TUTORIALS

New Features in Spring Boot 1.4

Difference Between @RequestParam and @PathVariable in Spring MVC

What is new in Java 6.0 Collections API?

The Java 6.0 Compiler API

Introductiion to Jakarta Struts

What’s new in Struts 2.0? – Struts 2.0 Framework

JavaBeat

Copyright © by JavaBeat · All rights reserved
Privacy Policy | Contact