Search Wiki:
Project Description
Allows video playback using the XNA Framework. Includes support for Windows and XBox 360 platforms.

More info to come soon including a Roadmap, documentation on usage (some simple usage info below), and discussion about the Architecture.

Usage

1. get the latest version: http://www.codeplex.com/ScurvyMedia/Release/ProjectReleases.aspx
2. Add Scurvy.Media.Pipeline to the project's content pipeline tab
3. Add a reference from your game, to Scurvy.Media.dll
4. Add your .avi video to your XNA Game Studio 2.0 project, it should default to the scurvy media importer and processor.
5. In your game, declare a new VideoContentManager, and load your video using that:
ContentManager content = new VideoContentManager(Services);
Video vid = content.Load<Video>("myVideo");
vid.Loop = true; //or false
vid.Play();

6. Call the video's update method in the game's update method:
vid.Update();

7. In the game's render method, render the video's current texture using whatever means you choose. This example will let you render it using a sprite batch:
if (vid.IsPlaying)
{
batch.Begin();
batch.Draw(vid.CurrentTexture, new Vector2(10, 10), Color.White);
batch.End();
}

 NEWS FEED 
Monday, April 28, 2008  |  From CodeCube.NET

So I’m really interested in finding a really good logo for the Scurvy.Media library.  Ideally, it would work in, or at least be related to the Scurvy Bones logo: But that’s not a requirement.  I won’t go into the properties and virtues of a good logo, since if you’re the kind of person that could [...]

Monday, April 28, 2008  |  From CodeCube.NET

I’m happy to announce that the next version of Scurvy.Media has finally been released My original plan to support audio in this release was subsumed by some actual requests for the following features/fixes.  It’s rather exciting to see the library actually being used for some projects and I hope that these items, along with [...]

Thursday, April 24, 2008  |  From CodeCube.NET

Check out the new XNA Wiki.  I really like the organic nature of wiki’s, so hopefully this will take off and become a serious reference for anyone doing anything with XNA.

Wednesday, April 23, 2008  |  From CodeCube.NET

If all goes well, I should have a new version of scurvy media out sometime this weekend.  stay tuned for more details

Tuesday, April 22, 2008  |  From CodeCube.NET

So I’m fairly excited, having just installed phpMyID, a simple OpenID provider that I control on my own website, I find myself wanting to find somewhere to log into.  Sadly, looks like aside from commenting on random blogger blogs, there’s not too many people that accept openid.  Wouldn’t it be nice if the following accepted [...]

Sunday, April 13, 2008  |  From CodeCube.NET

I filed a suggestion on XNA’s connect site: https://connect.microsoft.com/feedback/ViewFeedback.aspx?FeedbackID=337992&SiteID=226 I think that the launcher should show up on your gamercard. I would be proud to show the fact that I had recently been deploying and developing XNA games to my xbox This could also come with some achievements that obviously only XNA Creators Club members could [...]

Saturday, April 05, 2008  |  From CodeCube.NET

After watching parts 1 and 2 of the 3 part documentary Triumph of the Nerds (http://www.pbs.org/nerds/), I have to say that I find myself inspired by the fact that, arguably, the entire personal computer revolution began as a result of what is today known as user groups.  It makes me extremely proud of the fact [...]

Monday, February 18, 2008  |  From CodeCube.NET

Recent happenings: I’ve joined Twitter to see what all the hullabaloo was about. Met up with the guys from Likemind.us … cool bunch.  Turns out the guy that runs those meetups, Alex Rudloff, was one of (or the?) guys that built twitterholic. Work is going quite well. Planning on going to the next ONETUG meeting this coming thursday. Have actually [...]

Thursday, January 24, 2008  |  From CodeCube.NET

So now that I’m looking @ the next features for Scurvy Media … the issue of Audio comes up.  Currently, if you add a video to play in your XNA project, it will be silent.  Now, the problem is that the “audio pipeline” is completely separated from the content pipeline.  Even though technically speaking, the [...]

Thursday, January 24, 2008  |  From CodeCube.NET

Hehe … poking around on the internet, I actually came across an old post of mine on the old XNA forums from when they were on the MSDN forums. I believe I had posted this on my blog previously as well, however, since I changed blog engines this post has been lost to the ages, so [...]

Wednesday, January 23, 2008  |  From CodeCube.NET

despite the refactoring of the scurvy media pipeline architecture, trying to add large videos will result in an out of memory exception.  This is because under the covers, they’re using a MemoryStream … so even though *I’m* not using a lot of memory … they still are. https://connect.microsoft.com/feedback/ViewFeedback.aspx?FeedbackID=323222&SiteID=226 I filed the above bug report … and I [...]

Tuesday, January 22, 2008  |  From CodeCube.NET

If you haven’t already seen it, the Scurvy.Media source code contains a sample project.  It’s not very complex, just a simple example of how to use the API to display a short video using the SpriteBatch. http://www.codeplex.com/ScurvyMedia/SourceControl/ListDownloadableCommits.aspx Since you can download the whole repository from the link above, I didn’t bother to make a source code release.  [...]

Monday, January 21, 2008  |  From CodeCube.NET

http://www.codeplex.com/ScurvyMedia The binary release now supports GS 2.0, and sports a cleaned up pipeline architecture that has a better memory footprint, and a cleaner extensibility model. Next on the list is audio integration and perhaps a few bugfixes. Please note: currently, the release is only for x86, I haven’t tested the code on the 360 quite yet. [...]

Saturday, January 19, 2008  |  From CodeCube.NET

If you receive this error when calling the update method on the Video class: The operation was aborted. You may not modify a resource that has been set on a device, or after it has been used within a tiling bracket. Then this thread might offer some insight into how to avoid it:http://forums.xna.com/thread/35536.aspx I got around it by [...]

Saturday, January 19, 2008  |  From CodeCube.NET

Finally! the scurvy media video-to-texture library finally works in xna 2.0.  I checked in the changes that show off the new features like the video processor that lets you choose between streaming and in-memory playback mode (in the Branches folder).  thanks for all the feedback that I’ve gotten so far, and for everyone’s patience [...]

Sunday, January 13, 2008  |  From CodeCube.NET

hmm, interesting … just figured out that in the latest build (not released, just in source control) of the scurvy media library, any input AVI must not be readonly.  Not the worst bug in the world, but a bug nonetheless. I created a bug item: http://www.codeplex.com/ScurvyMedia/WorkItem/View.aspx?WorkItemId=3245

Sunday, December 09, 2007  |  From CodeCube.NET

From the DBP Site: artificial intelligence noun: the capability of a machine to perform functions that are normally associated with human intelligence, such as reasoning and optimization through experience [Abbreviation : AI] Push the limits of Artificial Intelligence while building a game with XNAGame Studio 2.0. Create a new and innovative use of Artificial Intelligence in [...]

Wednesday, December 05, 2007  |  From CodeCube.NET

The last one resulted in a huge number of pretty awesome games.  I noticed that as a result of that contest, the topics on the XNA forums became very deep and technical.  And the games that resulted were pretty awesome:http://www.dreambuildplay.com Can’t wait to see what comes out of this one

Monday, November 26, 2007  |  From CodeCube.NET

The next version is coming along nicely now I just checked in some good work around the pipeline refactor. things are much simpler now, and will be much more memory friendly … which will allow you to use larger videos. The pipeline API is much simpler now. It will be much easier to [...]

Sunday, November 25, 2007  |  From CodeCube.NET

I’ve checked in the initial check-in of the upgrade project to the following location in the codeplex repository:$/Branches/2.0 Upgrade I have to admit that I am loving the fact that I can now use the integrated source control in the big boy version of VS.  Since XNA 2.0 has handy new parameterized processors, I figure I’ll [...]

 NEWS FEED 

Last edited Jan 21 at 4:53 AM  by joelmartinez, version 9
Comments
Daikyo wrote  Apr 25 at 7:50 PM  
Hi, i have an error with your library, can't fix it ! Someone can help me please ^^
Erreur 1 Building content threw Exception: Exception in VideoStreamGetFrameOpen!
à Scurvy.Media.Avi.AviVideoStream.GetFrameOpen() dans C:\Dev\codeplex\ScurvyMedia\Scurvy.Media\Scurvy.Media.Pipeline\Video\Avi\AviVideoStream.cs:ligne 439
à Scurvy.Media.Pipeline.Video.Avi.AviVideoContent.<get_Frames>d__0.MoveNext() dans C:\Dev\codeplex\ScurvyMedia\Scurvy.Media\Scurvy.Media.Pipeline\Video\Avi\AviVideoContent.cs:ligne 42
à Scurvy.Media.Pipeline.Video.VidContentWriter`1.Write(ContentWriter output, T value) dans C:\Dev\codeplex\ScurvyMedia\Scurvy.Media\Scurvy.Media.Pipeline\Video\VidContentWriter.cs:ligne 20
à Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler.ContentTypeWriter`1.Write(ContentWriter output, Object value)
à Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler.ContentWriter.InvokeWriter[T](T value, ContentTypeWriter writer)
à Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler.ContentWriter.WriteObject[T](T value)
à Microsoft.Xna.Framework.Content.Pipeline.Serialization.Compiler.ContentCompiler.Compile(Stream output, Object value, TargetPlatform targetPlatform, String rootDirectory, String referenceRelocationPath)
à Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.SerializeOutputAsset(BuildItem item, Object assetData, String outputFilename)
à Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.SerializeAsset(BuildItem item, Object assetData)
à Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.BuildAssetWorker(BuildItem item)
à Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.BuildAsset(BuildItem item)
à Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.RunTheBuild()
à Microsoft.Xna.Framework.Content.Pipeline.Tasks.BuildContent.RemoteProxy.RunTheBuild(BuildCoordinatorSettings settings, TimestampCache timestampCache, ITaskItem[] sourceAssets, String[]& outputContent, String[]& rebuiltContent, String[]& intermediates, Dictionary`2& dependencyTimestamps, KeyValuePair`2[]& warnings) C:\Documents and Settings\Placid\Mes documents\Visual Studio 2005\Projects\TestVideo\TestVideo\Content\HIMYM.avi TestVideo

joelmartinez wrote  Apr 28 at 8:21 AM  
hi Daikyo ... please download the latest version which was just released and try it again. Also, if you continue to get this exception, would you mind sending me the video so I can check it out?

Updating...