-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|390|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Blogs Home -> Blogs


 
spinal
Created : 15 January 2008
Edited : 15 January 2008

DSMovie player update



So far, I'm getting 20 fps with this by lowering the video resolution to 256x128, this is done by cropping, rather than stretching, most of my test clips have been in widescreen anyway, but I'll think of something better later.

I now have the thing playing properly, framerate capped at 15fps and the seek function working. Next I need to make the buttons work and come up with a file browser for it.

The quality is not the best the DS can do, but it is dont using palib (based on a project by eponasoft, who wanted a format to play in palib for homebrewers to use in their project. I have stuck mostly to his spec, although my header is completely different.

A quick screenshot done in an emulator (runs super slow in emu)

 

Comments


Friday, 18 January 2008, 13:03
spinal
OK, I have it running at 12fps (fine for cartoons etc) and at reasonable quality. But I am having a little trouble with the sound, I'm not sure of the cause, but its starts warbling and repeating bits, I'm hoping its to do with the size of the buffer, and that old data is being played, I'll try clearing the buffer every few reads, see if that helps.
Friday, 25 January 2008, 14:15
spinal
If there's one thing that irritates me more than anything else, it's trying to create a format, write it using one language, then try to read it with another. That and stupid people saying stupid things without putting their brain in gear first, but that's a general irritation, the first one was specific.
Saturday, 26 January 2008, 14:20
spinal
Is anyone following this?

Anyway, currently I just need to get a file navigator thingy working for loading the videos, all the buttons work and skipping works a million times better than I expected. But it needs a name. I am currently working with the file extension .smf (Spinal Media Format) but the player will need a name, can anyone think of something better than Spinal Media Player?

Also I need to think about some sort of front end for the converter, it is currently uncompiled (and quite messy) blitz code, if anyone want to have a go at it, pm me or leave a message here.
Sunday, 27 January 2008, 02:36
Jayenkai
Other than me? <shrugs>

Do you have BlitzPlus? You could use that to do the gui. That's pretty much all it's good for!
Sunday, 27 January 2008, 06:01
spinal
I don't, but I did download a free copy of visual basic from microsft's website, I don't know if it is limited in any way, probably doesn't compile or something. But that means I would need to learn VB (haven't even looked at it since a friend got vb6 a looonnnggg time ago.
Sunday, 27 January 2008, 07:17
Jayenkai
The other alternative is to create your own GUI in Plain-Blitz. Shouldn't be "Too" hard And would certainly save on having to recode everything you've already worked on.
Sunday, 27 January 2008, 07:41
spinal
perhaps, I'm in no hurry just yet though, I'm trying to find a nice bitmap font for the file selector, I need something small but readable grrr.
Sunday, 27 January 2008, 08:05
Jayenkai
Small but readable? No chance!

Make sure you test it on the hardware. Most times I've been surprised how much better small fonts look on the actual DS, compared to my monitor.

In most cases, the default 16cFont,0 or ,1 has done the trick for me.
Sunday, 27 January 2008, 08:19
spinal
I'll give them a go.
Tuesday, 29 January 2008, 14:33
spinal
Back on the movie format again, looks like I'm going to need long ints for the header info, I encoded Ghostbusters and although it was fine playing, it would only skip to about half way then went mental. So I'm assuming my frame referencing is crap.
Thursday, 31 January 2008, 09:34
spinal
Bugger, I killed it again, I don't remember changing anything though. I hate when that happens.
Thursday, 31 January 2008, 09:49
Jayenkai
*crosses fingers, and hopes for more DM*
Thursday, 31 January 2008, 11:06
spinal
I think its the player rather than the encoder. I'm getting noise but the picture is still fine. perhaps the audio offset it wonky or something. I also noticed I had a chunk of bill and ted after the raving rabbits commercial, weird.
Thursday, 31 January 2008, 11:29
Jayenkai
Maybe your card needs formatting?
Thursday, 31 January 2008, 13:14
spinal
Fixed, although I don't know why I had two videos spliced together. It was a futile attempt to get the audio more accurate by floating one of the calculations.