Wednesday, May 28, 2008

Encoding video for the NDS

I have had a nds since a couple of months. Of course its best quality is the gaming but it has more possibilities. There are many homebrew or applications that you can download from internet and they let you do many things like surf the web, check your email, you can use it like video and music player even install GNU/Linux.

The video player is a great feature, for example I use a video and music player for my nds called moonshell. The problem is that application uses a specific video format (dpg) so it is necessary to encode the videos before.
Recently I found this script in python, licensed under GPL2, that let you do it easily. You need also mpeg_stat, that analyze the streaming of a mpeg file. The use is as follow:

First you need to copy mpeg_stat to your /bin directory. Then you should copy the script to the same directory where you have the video/s to encode and then you can execute doing:

$ python dpgconv.py file_name.extension

It works perfectly with avi and mpeg videos, once it has done you can copy the video in your nds and to enjoy.

The moral of the post is: Is there anything that it cannot be made with python?

No comments: