Harold-z80asmRules

I would like to play a little into-video before my game starts, its simple and small and it's an avi (though I could easily change its format), how do I play it with XNA MDX used to have AudioVideo playback, but I can't find that in XNA.


Re: XNA Framework Playing (avi) video's in XNA?

AndyL

There isn't anything in XNA to do video at the moment.



Re: XNA Framework Playing (avi) video's in XNA?

JDPeckham

my thought would be, if you want it to work on xbox, you're going to have to write your own content importer for the avi file itself. then manually extract each frame of the avi and sync up your framerate to match the framerate of the avi, playing one frame of avi per game frame. that's the abstract thought i have about it... though in practice, i haven't the foggiest!




Re: XNA Framework Playing (avi) video's in XNA?

Harold-z80asmRules

that is hard though, there should be some simple way
(convert the frames into an array of textures for example and then cycling through them and put them on the screen as fullscreen sprites, I could even use png compression that way but bmp's would be easier to load (fixed size) )

I guess I'll try some things and see what looks best/is easiest

How should I pass the sound-data though Just stuffing it in a wav file doesn't feel quite right




Re: XNA Framework Playing (avi) video's in XNA?

a.d.m

is there a connect thread for this i'd like to put in a vote for it.




Re: XNA Framework Playing (avi) video's in XNA?

Joel Martinez

argh ... I've actually got something that I'm cleaning up for an initial release that does just this ... but it's not ready yet :-P

There is a custom content importer that takes the .avi and exposes it at runtime as an easy to use class. The initial release will not support playing the video clip's audio, though I am working on that (if my post ever gets answered). Future versions will also support other formats (.wmv, etc.).  It works pretty good if I don't say so myself.

If you're interested, keep an eye out on http://codecube.net for the announcement.





Re: XNA Framework Playing (avi) video's in XNA?

Bill Reiss

I was wondering if there may be some way for the XNA team to leverage the work that is being done in WPF/E to play back WMV files. For those that aren't familiar with WPF/E it's basically a Flash alternative written on top of a micro .Net Framework and from what I have read it includes a built-in codec for WMV playback.

Bill






Re: XNA Framework Playing (avi) video's in XNA?

WilderLand

Joel,

I'll definitely be watching for this one! This is one of those things that is sorely missing from XNA, it seems like a no brainer for inclusion in the framework. I hope you get an answer soon too!