Is there a program that converts files to dpg format?

Requests go here. If you fill a request, give it a new thread in the appropriate category and then link to it in the request thread.
Message
Author
Warrior522
Posts: 90
Joined: Tue 03 Aug 2010, 15:46

Is there a program that converts files to dpg format?

#1 Post by Warrior522 »

This is probably the wrong place (sorry if it is, I'm new here), but is there a stable program for Puppy Linux that I can use to convert files of various types to DPG?

Once again, apologies if this is in the wrong place...
Last edited by Warrior522 on Wed 04 Aug 2010, 22:50, edited 1 time in total.

Warrior522
Posts: 90
Joined: Tue 03 Aug 2010, 15:46

#2 Post by Warrior522 »

Apologies for double post, but I found this:

http://sourceforge.net/projects/dpg4x/

and was wondering, could it be converted to a .pet file? If you need system specifics, ask edoc, he's my dad.
Last edited by Warrior522 on Thu 05 Aug 2010, 23:47, edited 1 time in total.

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#3 Post by edoc »

I did receive a private message requesting additional detail.

The preferred Puppy version for this would be Fatdog64-500 but spup 040 would be OK as well. Most of the others do not run well on the laptop he is using.

I did find this helpful thread:

http://ubuntuforums.org/showthread.php?t=852999

I am, of course, uncertain how much of the suggested code directly translates to Puppy or what of it requires modification.

It would seem that it should work with Wary, since Wary is closely linked to Ubuntu.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
chrome307
Posts: 708
Joined: Thu 15 Jan 2009, 11:00

#4 Post by chrome307 »

Hi there

I have looked at this to try and compile it for you, but unfortunately it's a bit more complicated for me.

For others who wish to try here's some info for compiling:

DEPENDENCIES

dpg4x needs the following packages to be available on your system. Also note that all the dependent programs must be accesible via the PATH.

python ( 2.5 )
python-wxversion ( 2.8 )
python-wxgtk ( 2.8 )
mplayer ( 1:1.0 )
mencoder ( 1:1.0 )

Versions in brackets include those that dpg4x has been tested with, but others may work too.

The following packages are not mandatory, but dpg4x can take advantage of them, when they are present. If we were talking about packages, these are the packages that the dpg4x package would recommend.

mpeg_stat ( 2.2 ) - provides a faster and more tested way of generating headers.
iconv ( 2.9 ) - necessary if you want to change the encoding for subtitles.

If you can't find mpeg_stat for your system, try this URL:

http://ftp.sunet.se/pub/multimedia/Berkeley/mpeg/stat/

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#5 Post by edoc »

Thanks for having a go at it ...

Just found this, perhaps it may also be helpful to someone trying to solve this?
Saturday, March 14, 2009 - 6:17 am ET

Converting avi files to dpg in Linux
By: Clair Ching

Nintendo DS and DS Lite owners not only play games with their console. We also listen to music, read ebooks, draw pictures, etc. There’s also another thing we could do and that is watch videos. Like other DS owners, I’ve also looked for ways to convert videos into dpg files. One of my main problems is that the available tools I’ve been seeing are the ones that run on Windows. An example is Super. If I wasn’t at home, I couldn’t convert any of my videos because it’s the desktop machine that has a copy of Super running on it. I tried looking for some tips before but I mainly failed at trying them out for one reason on another. In any case, there’s a tip that works and it came from noeman.org: HOW-TO: Converting your movies to DPG for Moonshell on the Nintendo DS. This is especially for Moonshell users, as the title says.

Dependencies:
mplayer
mencoder
python (because the script that will convert the files is in python)

Files you need:
dpgconv (a python script)
mpeg_stat

The setup:
1. You need to create a DPG folder in your home folder. (~/DPG)
2. Place the dpgconv script and the mpeg_stat archive in ~/DPG. Extract the files of mpeg_stat there. You could use the tar command or the archive manager to extract the files.
3. Compile mpeg_stat.
4. Move the mpeg_stat and mpeg_stat.1 files into /bin. You need administrator access to do that.
5. Make the dpgconv script executable. You could use the chmod command on the terminal or you could do it on using the file manager by editing its properties.
6. Put a video in your ~/DPG folder. Convert the file using this command: python dpgconv-0.43.py your_video.avi and at the end of the conversion you will see a dpg file version of your video.

I just noticed that it takes maybe 10 minutes to convert a file between 100-200MB. If you have bigger files, then that would take longer to convert. But if you really want to play video, at least you can convert them for your DS.http://everyjoe.com/technology/converti ... -in-linux/
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#6 Post by edoc »

I saw reference to using ffmpeg to convert TO DPG from other formats but haven't yet found a source for ffmpeg or an add-on that actually does it.

There appears to be more helpful info here:

http://cyclods.theta.in/wiki/DPG
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#7 Post by edoc »

Is the solution dpg4x?
DPG for X (dpg4x) is a program that allows the easy creation of DPG video files on Linux. It may work on other POSIX like OS as well. DPG is a special format of MPEG-1 video specifically for playback on a Nintendo DS.
http://sourceforge.net/projects/dpg4x/

ALSO ...

Can this be compiled for Fatdog64-500?

If so, the output of the app needs to be directed outside of the Savefile.

Ooops! My son just reminded me that I succeeded in looping back to his original request! ;-/

I will wait while others who know what they are doing turn this into a PET and/or try a ffmpeg-to-DPG solution, or other alternative ...
Last edited by edoc on Fri 06 Aug 2010, 14:30, edited 2 times in total.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
chrome307
Posts: 708
Joined: Thu 15 Jan 2009, 11:00

#8 Post by chrome307 »

I have seen an example of the code used to create a dpg using FFMpeg, I will have a try using the script and see if I can adapt it to be used.

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#9 Post by edoc »

chrome307 wrote:I have seen an example of the code used to create a dpg using FFMpeg, I will have a try using the script and see if I can adapt it to be used.
That would be awesome!

Do you know if things like ffmpeg have to be recompiled to run under Fatdog64 or is it only sophisticated apps?

I read that there was some sort of 32bit interface to the 64bit Fatdog -- perhaps that makes all of the non-64bit apps run OK?
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
chrome307
Posts: 708
Joined: Thu 15 Jan 2009, 11:00

#10 Post by chrome307 »

@ edoc

FFMpeg is already installed on FatDog64 500 ( this is what I used to this the commands below ).

I used an *.avi ( test.avi ) to split into two components -

m1v = video
mp2 = audio

The video needs to be set at a resolution of:

256 x 192

bitrate set at:

384kbps

framerate:

20 fps

For the audio I did the following:

bitrate:

64 kbps

rate:

32000 khz

These I believe are the default settings for playback on the Nintendo DS.

To run the software simply go to terminal and type in

Code: Select all


ffmpeg -i test.avi -s 256x192 -vcodec mpeg1video -b 384k -coder 0 -r 20 -mbd simple test.m1v  



ffmpeg -i test.avi -acodec mp2 -ab 64k -ar 32000 -ac 2 test.mp2

The output will give you two files - video and audio.

The next part would simply be to 'mux' the two streams together into the correct format for playback.

As I do not own a DS I'm a bit stuck here, hopefully someone else can suggested what next to do.

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#11 Post by edoc »

Wow, thanks!

I will see if my son can figure it out -- I am encouraging him to learn technology below the GUI-level!
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

Warrior522
Posts: 90
Joined: Tue 03 Aug 2010, 15:46

#12 Post by Warrior522 »

*sigh*

Why can nothing ever be simple...? :roll:

And what's MUX? Pardon my "anything deeper than forum code" illiteracy...

User avatar
paulhomebus
Posts: 120
Joined: Thu 21 Jan 2010, 23:23
Location: New Zealand
Contact:

#13 Post by paulhomebus »

Hi Warrior522,

I'm still working on making that .pet package for ya.

And to MUX something is just a word that means merge....

http://bit.ly/bjtJQ9 << link to explain bout muxing your files back together....

Warrior522
Posts: 90
Joined: Tue 03 Aug 2010, 15:46

#14 Post by Warrior522 »

paulhomebus wrote:Hi Warrior522,

I'm still working on making that .pet package for ya.

And to MUX something is just a word that means merge....

http://bit.ly/bjtJQ9 << link to explain bout muxing your files back together....
I appreciate it, thanks! 8)

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#15 Post by edoc »

Warrior522 wrote:*sigh*

Why can nothing ever be simple...? :roll:

And what's MUX? Pardon my "anything deeper than forum code" illiteracy...
There, now aren't you glad that you asked? ;-)

http://www.w3.org/Protocols/MUX/
MUX is a session management protocol separating the underlying transport from the upper level application protocols. It provides a lightweight communication channel to the application layer by multiplexing data streams on top of a reliable stream oriented transport. By supporting coexistence of multiple application level protocols (e.g. HTTP and HTTP-NG), MUX will ease transitions to future Web protocols, and communications of client applets using private protocols with servers over the same connection as the HTTP conversation.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#16 Post by edoc »

paulhomebus wrote:Hi Warrior522,

I'm still working on making that .pet package for ya.

And to MUX something is just a word that means merge....

http://bit.ly/bjtJQ9 << link to explain bout muxing your files back together....
Sure appreciate you applying your knowledge to this challenge!

Is anything here helpful?
http://theli.is-a-geek.org/blog/static/dpgconv
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
chrome307
Posts: 708
Joined: Thu 15 Jan 2009, 11:00

#17 Post by chrome307 »

Hi there

Sorry I should have explained a bit more clearly :oops:

From the test avi file, I split it into 2 parts: video & audio.

Both parts now need to be joined together into a single file for playback.

Thats all

User avatar
paulhomebus
Posts: 120
Joined: Thu 21 Jan 2010, 23:23
Location: New Zealand
Contact:

#18 Post by paulhomebus »

I think chrome307 has got the best solution for you guys.

I tried running dpgx4 on Fatdog64 but had python problems,
then realised I was outa my depth.

Sorry I can't help any further.
Paul

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#19 Post by edoc »

His solution makes logical sense ... but lacking the knowledge to combine those two files it leaves us in need of someone familiar with that step in the process.

Thanks for getting us this far ... surely someone in Puppy-world has a Nintendo DS and has figured this out ... we just need to find them! :-)
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
chrome307
Posts: 708
Joined: Thu 15 Jan 2009, 11:00

#20 Post by chrome307 »

Hi there

Just to let you know the next step appears to be to use 'Dpgmux 1002.exe' with WINE to see if that will join up the 2 component files.

Image

I will have a look at it later when I have time

BTW

Are you aware that you can buy an 'add-on' to playback movies eg

Ex4i Movie Card

"Watching movies of any format like RMVB,AVI,MOV,DIVX,MPEG,FLV,3GP,ASF,WMV, and listening songs of MP3,WMA,OGG,AAC,APE,FLAC format is simple as saving them into Memory cards."

Post Reply