Converting AVI, MPEG, and WMV to DPG under Linux
Posted by Sven Slootweg | Posted in Nintendo DS, Tutorials | Posted on 05-09-2009
Tags: convert, dpg, linux
2
DPG is the video format that is used by the commonly known Moonshell media player, which was developed exclusively for the Nintendo DS. The DPG video format is optimized for watching on the Nintendo DS, minimizing the necessary processing power to play the video, while keeping the quality high and the filesize low. I’ve written a tutorial before on converting video to DPG under Windows. This time, however, I will be talking about Linux. A friend of mine wrote a tutorial on it in Dutch at http://raymii.org/cms/index.php?title=Avi_of_MPG_of_WMV_naar_.dpg_onder_linux_mint_5_of_ubuntu_8.04 and I decided to translate it and put it up here. Credits for the original article go to him.
Step 1: Installing prerequisites
You will need to install mencoder and mplayer first. In Linux Mint, Ubuntu, and various other distro’s that use apt-get, you can use sudo apt-get install mencoder mplayer to achieve this. If you are using CentOS RedHat Enterprise Linux, or another distro using yum, you will first need to add RPMForge to your repository list (https://www.rpmrepo.org/RPMforge), and then use yum install mencoder mplayer in order to install both mencoder and mplayer on your computer. If you don’t have apt-get or yum, try searching on the web for a package for your distro.
Step 2: Downloading the script
You will be using a python script, and a program called ‘mpegstat’, to convert your file to DPG. You can download the package with both mpegstat and the python script at http://relst.nl/downloads/dpgconv_mpegstat.zip. Extract the file into a directory somewhere on your computer, and move the video you want to convert to the same directory. Then open the folder with your terminal, and type ./dpgconv.py ./video.mpg where video.mpg is the filename of the video you moved to the folder.
Step 3: Wait….
The script will now convert your video to DPG format. It will indicate the progress in the terminal. When the script disappears, it is done and you will find a new file in the directory, which is your newly converted video! Simply move it to your flashcard, and play it with Moonshell (or M3 Sakura, for that matter).
Notes:
This was tested on MPG and AVI files. According to the writer of the original article, it also works with WMV files that do not have DRM (Digital Rights Management). If you have any questions, either post them here, 0r send me an e-mail.

