gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS homebrew announcements > [Win32] dpgmux - prepare videos for MoonShell

#134509 - spacy51 - Fri Jul 13, 2007 2:38 pm

Hi there.
I already finished this project a while ago:

dpgmux
A very simple GPL'ed multiplexer/demultiplexer for dpg files.
It either takes seperate MPEG1-Video and MPEG1-Audio streams and creates a DPGv3 file (also writes GOP-List for faster video navigation),
or it takes a dpg file and demultiplexes it into its video and audio stream.

The source code was badly inspired by the original dpgtools' delphi source code. However, I did not actually copy/paste it, since I wrote my utility in M$ compliant C (using secure string functions).

This package also includes several command line encoding scripts for easy video and audio encoding to the right format using ffmpeg. There are also all in one scripts which do the encoding & muxing with just one drag&drop.

I recommend reading the included documentation.

Using ffmpeg & dpgmux, I finally managed to get quite impressive video & sound quality at framerates of 20-25 fps.

Here's the download at Google Code:
http://code.google.com/p/gbxemu/downloads/detail?name=dpgmux1002.exe&can=2&q=

Source code is obtainable via SVN at the project page.

have fun[/url]

#134909 - dantheman - Wed Jul 18, 2007 8:04 am

Just tried this for the first time tonight. It works pretty well for what it does, and it's pretty darn fast. However, I've noticed that getting the same video quality as DPGTools or BatchDPG makes the file take up a lot more space.

In DPGTools it appears that there are two profiles, a low-quality one that's very fast to encode and a high-quality profile that's fairly slow to encode. Would a modification to the "encode+mux_#_#.cmd" file allow for a slower, higher quality conversion?

As an example, I converted the same file in both DPGTools (high quality encoding) and dpgmux at a bitrate of 256 for both and got output files with about the same filesize, but the one converted with dpgmux did not look as good as the one from DPGtools when played back in Moonshell 1.71 (though it encoded about 20 times faster, heh).

Just a general question as well: would the audio sound better if it was encoded at 32768 sample rate instead of 32000? I know the PDF doc recommends 32000, but I remember Tepples saying that the DS outputs at 32768 so it has to use CPU cycles to convert anything that isn't already at that sample rate. In addition, DPGTools 13 and BatchDPG v1.3 Beta 4.5 both added 32768 as an option, which I'm guessing is for a good reason. However, attempting to change the option in the batch file give me an error about how a sample rate of 32768 is not allowed for mp2, so perhaps it can't be done.

All in all though, it's a good program, so congrats on making another DPG encoder for people to use.

#135172 - EvilRyu - Fri Jul 20, 2007 4:36 pm

Wow, this thing is fast! I mean fast! And it produces a good quality.

I have some questions. (I used the auto script encode+mux 4_3 and played the video with moonshell 1.71)

I encoded an anime and it convert it at the same fps as the original video (23.98) and it had no skipping at all! With BatchDPG and/or dpgtools i can't handle more than 20 fps without skipping at 256x192 resolution. This is quite impressive. My question is does your program always detect the original framerate from the source and keeps the same framerate at the final dpg video?

It doesn't seem that you can burn soft-subs with this. Is it possible? And if so how? Any plans to add this feature in next updates? (if any)

Unfortunately it seems that the audio was a little out of sync (just a little) but it happen when i was seeking the video. However it seems that after a couple of pauses it went back to normal.

Seriously your program will simply be outstanding IMHO if you planning to release further updates.


Sorry for my bad English and thanks for your program. I will do some more tests, probably tonight.

Edit- Nevermind about the soft-subs, i find a way to do it. I simply used AviSynth with the textsub command, it made the encoding last a little longer but worked like a charm!

Edit 2- After i did some tests, i must say that i will start using your encoder for my NDS movies needs. The audio out of sync problems i mention doesn't exist. I guess only if you seek the video on purpose back and forth you might experience this, but i guess this is normal and it doesn't really matter. I guess the only negatives i found was that it doesn't have a batch function and it doesn't work well for some kind of videos (for example videos in rmvb format) but the standard anime format aka xvid 170 MB 640x480 it works amazing well.

#135789 - A2hok - Thu Jul 26, 2007 9:59 am

Its very good, but infantile paralyser recommends that the sample freq should be 32768Hz because it means the DS does not need to recode it for its speakers. I tried changing it manually in the scripts but ffmpeg does not like the new frequency and outputs a file of 0 kb.

Also when encoding, does ffmpeg change the framerate or leave it like the source. In other words can I encode a 30 fps video without moonshell freezing up.

Otherwise, this is a very fast converter and the quality aint half bad.

Thanks
_________________
White DS --- Supercard SD --- Passcard ---
-------www.ugames.tk--------
[url="http://www.oxado.com/?origin=pub88742"]Webmasters, make money displaying Oxado contextual ads![/url]