• Welcome to SCdev.org. Please log in.

Welcome to the new SCdev forums!

nDs-mPEg-ENCoder for test

Started by Critical_Impact, December 18, 2005, 06:02:12 AM

Previous topic - Next topic

Critical_Impact

Infantile Paralysiser has released a new application, you can import your own mpeg1 movies. goto http://mdxonline.dyndns.org/archives/nds/index.html to see the new applicaton. I am testing it ask i type

Koji

Nice. DLing and testing now too.

(edit) Needs a loader applied to it. Once it's applied it works pretty well. I haven't done a lot of testing yet. My videos are running on the same settings as the original test (128CBR video, 96kbps MP2 audio. 24fps). I have tried both MPEG1 and MPEG2 video. Both work about the same and look about the same honestly.

Going to do some testing. The new test ones have videos at 256x144 and 256x192 (max res) so I'll have to try some files like that. It looks like the bitrate may be limited to 160 for video... again I'll have to play around and I'll say my results.

Cyprien Walker

Ok Thats Nice HOW does it work :P ?

i cant import them ive tryed tmpengc but when i converted them i got the same weird message of the programm have no id what it says :P

Critical_Impact

If you convert a avi to mpg should it be like 6 times larger than it originally was?

Koji

o_O Wow... I suggest you look up articles on how to convert AVI to MPG.

I'll give you all a quick play through... Download tmpegenc. Open up the AVI file, then change "settings" and lower the resolution to 192x144 (from my testing, this res works the best right now). And change the bitrate from 1150 to somewhere between 96 and 160.

Now, click the audio tab... change the frequency to 32000hz and the bitrate to 60 to 96.

After that click start and it will convert the file to mpg. Then use the progam "dpgenc" to make the .mpg file .nds. Then apply an NDS loader to the new .nds file and play it on your DS.


I did some more testing and 256x192 at 24fps causes constant glitches. at 12FPS there are still some glitches but not as many. Going to test 256x144 now.

(edit 2)

Priliminary analysis is as follows:

256x192:
24fps Unwatchable. Not recommended for anything.
12fps Skips badly on fast motion. Recommended for videos with very few fast motion scenes
8fps few skips on fast motion. Good if there is text in the video if you need to see, but won't look good in fast scenes.

256x144:
The video does not scale to full screen, looks very ugly... I would not recommend this res at any frame rate.

192x144:
24fps great for fast action movies/videos/clips. There will be blurring though
12fps Currently (imo) the best general use setting. Less artifacts then 24fps and fairly smooth.
8fps use if you can't stand artifacts. There will be less, but motion will suffer.

I'm now doing tests to determine the maximum bit rate you can/should use.

(edit) Forgot to say, I used 160bps video and 64 bps audio in these tests.

Cyprien Walker

were can i get a loader programm ?

Cyprien Walker

nevermind got one :S dang the sound is so Shocking :|

Koji

Cyprien: I just used the moonshell builder. I just put the video file .nds in the moonshell builder dir, and renamed it to _BOOT_MP.nds.

More tests done. I got up to 320kbps for video easily without any skipping. At 192x144@24fps, 320kbps looks quite nice (very very few artifacts) on the DS screen. But it was hard to read the subtitles on anime (this is due to the res, not any artifacts). I'd say 224-288 would probably best best for quality for most people, with 128-160 being the minimum most people will find watchable.

Now we just got to hope that there is still plenty of room to optimize the code so we can get at least 12fps at 256x192 at full speed. If it ever reaches that speed, then I'll be perfectly happy (though 24fps would make me happier ^_^)

For my bitrate tests I used a fast motion anime opening at 24fps with 96kbps mpeg2 audio and mpeg 1 video. I really wouldn't recommend using over 64kbps on the audio though.

(edit) Just out of curiosity... I tried a 256x192 at 320kbps... and it's absolutely perfect looking. If only the video didn't constantly skip... I really really hope eventually this kind of bit rate will be supported in the future.

Dudu.exe

and about file sizes??

they are good?

Koji

at 160kbps video and 64kbps audio, it's about 1.7megs per minute of video.

That means you can fit just under 20 minutes of video into 32megs(which is the max file size currently since it doesn't support direct SD reading yet off of the super card)

That's about 2 hours and 30 minutes of video on a 256 meg SD/CF card (estimating 240 megs on a 256meg card).

If you use 128kbps video and 64kbps audio, that's about 1.45 megs per minute which is just under 23 minutes per 32megs.

That's nearly 3 hours on a 256meg SD/CF.

memyselfandi

how do you use this, or like change the settings because i used a south park episode and put it in the progam and fairly quickly it gave me an nds file. When i put it in the supercard it looks like crap! I can't describe how bad it looks. :cry:  So what and where am i supposed to change things? :?:
 am The Best and you Know it!!!

Cyprien Walker

how do i neet to put the settings so i can watch a movie of a few hours long on a 265 mb card? what is the best setting and how to put the setting in order.

and what do you mean moonshell i didnt use moonshell  jut booted it for the sc main menu directly how can i use it with moonshell ?

anotherone is the sc cf able to stream it directly from the cf so no limite for the movie ?

will it be able to load it faster with the sc software? couse right now there is a limite of the sc ram you wont be able to load up a whole movie with it :P

My Sound Is Doing Weird How To Fix It?

sorry for the questions i hoep you can help me THanks alot :D

Koji

Quote from: "memyselfandi"how do you use this, or like change the settings because i used a south park episode and put it in the progam and fairly quickly it gave me an nds file. When i put it in the supercard it looks like crap! I can't describe how bad it looks. :cry:  So what and where am i supposed to change things? :?:

You have to reencode the video in tmpeg encoder using the quick settings I gave. Just putting it in the other program will give horrible results.

Cyprien: I didn't say you could use it with moonshell... I used moonshell the moonshell software to install the loader. It'll probably be in the next version of moonshell though.

There is NO way to stream movies yet... I said that earlier... this is an early beta... you should give the guy who made it some time to get it working 100% before he tries adding full support to all devices.

I haven't had any problems with sound.

I'm not a calculator... I'm not going to calculate all the settings you need to get a movie of a specific length onto your card... Learn to use Tmpeg encoder yourself <_<. Hell it's not even that hard, I gave you all the settings you need to know just a little while ago (192x144res, 12 or 24 fps at 128 or 160 bps for video and 64 or 96 bps for audio)

-sighs- Maybe I'll make a guide though for people... Give me a little while and I'll post it later today.

Cyprien Walker

hmm yha your right iam sorry i respect it.
i will wait a wile becouse my sound seems to be stuttering and the movie go's on normal speed when the movie stops the everything stops even if the sound aint done yet.
any wait thanks for all your help.

Koji

As promised, one guide (and I figured out why people were having sound problems. The fix is explained in the guide too)

http://www.scdev.org/forum/viewtopic.php?p=14459#14459