Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 23 Oct 2014, 17:26
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » REQUESTS
Is there a program that converts files to dpg format?
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 4 [48 Posts]   Goto page: 1, 2, 3, 4 Next
Author Message
Warrior522

Joined: 03 Aug 2010
Posts: 91

PostPosted: Tue 03 Aug 2010, 11:59    Post subject:  Is there a program that converts files to dpg format?  

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, 18:50; edited 1 time in total
Back to top
View user's profile Send private message 
Warrior522

Joined: 03 Aug 2010
Posts: 91

PostPosted: Wed 04 Aug 2010, 17:49    Post subject:  

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, 19:47; edited 1 time in total
Back to top
View user's profile Send private message 
edoc


Joined: 07 Aug 2005
Posts: 4379
Location: Southeast Georgia, USA

PostPosted: Thu 05 Aug 2010, 16:12    Post subject:  

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.

_________________
Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Puppy upup Raring 3992 & Lighthouse64-b602
Back to top
View user's profile Send private message Visit poster's website 
chrome307


Joined: 15 Jan 2009
Posts: 713

PostPosted: Fri 06 Aug 2010, 05:20    Post subject:  

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/
Back to top
View user's profile Send private message 
edoc


Joined: 07 Aug 2005
Posts: 4379
Location: Southeast Georgia, USA

PostPosted: Fri 06 Aug 2010, 09:25    Post subject:  

Thanks for having a go at it ...

Just found this, perhaps it may also be helpful to someone trying to solve this?

Quote:

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/converting-avi-files-to-dpg-in-linux/

_________________
Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Puppy upup Raring 3992 & Lighthouse64-b602
Back to top
View user's profile Send private message Visit poster's website 
edoc


Joined: 07 Aug 2005
Posts: 4379
Location: Southeast Georgia, USA

PostPosted: Fri 06 Aug 2010, 09:30    Post subject:  

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

_________________
Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Puppy upup Raring 3992 & Lighthouse64-b602
Back to top
View user's profile Send private message Visit poster's website 
edoc


Joined: 07 Aug 2005
Posts: 4379
Location: Southeast Georgia, USA

PostPosted: Fri 06 Aug 2010, 10:05    Post subject:
Subject description: Is the solution dpg4x?
 

Is the solution dpg4x?

Quote:
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 ...

_________________
Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Puppy upup Raring 3992 & Lighthouse64-b602

Last edited by edoc on Fri 06 Aug 2010, 10:30; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website 
chrome307


Joined: 15 Jan 2009
Posts: 713

PostPosted: Fri 06 Aug 2010, 10:15    Post subject:  

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.
Back to top
View user's profile Send private message 
edoc


Joined: 07 Aug 2005
Posts: 4379
Location: Southeast Georgia, USA

PostPosted: Fri 06 Aug 2010, 10:32    Post subject:  

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?

_________________
Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Puppy upup Raring 3992 & Lighthouse64-b602
Back to top
View user's profile Send private message Visit poster's website 
chrome307


Joined: 15 Jan 2009
Posts: 713

PostPosted: Sun 08 Aug 2010, 08:41    Post subject:  

@ 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:


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.
Back to top
View user's profile Send private message 
edoc


Joined: 07 Aug 2005
Posts: 4379
Location: Southeast Georgia, USA

PostPosted: Sun 08 Aug 2010, 09:29    Post subject:  

Wow, thanks!

I will see if my son can figure it out -- I am encouraging him to learn technology below the GUI-level!

_________________
Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Puppy upup Raring 3992 & Lighthouse64-b602
Back to top
View user's profile Send private message Visit poster's website 
Warrior522

Joined: 03 Aug 2010
Posts: 91

PostPosted: Sun 08 Aug 2010, 19:34    Post subject:  

*sigh*

Why can nothing ever be simple...? Rolling Eyes

And what's MUX? Pardon my "anything deeper than forum code" illiteracy...
Back to top
View user's profile Send private message 
paulhomebus


Joined: 21 Jan 2010
Posts: 120
Location: New Zealand

PostPosted: Sun 08 Aug 2010, 20:05    Post subject:  

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....
Back to top
View user's profile Send private message Visit poster's website AIM Address 
Warrior522

Joined: 03 Aug 2010
Posts: 91

PostPosted: Sun 08 Aug 2010, 20:34    Post subject:  

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! Cool
Back to top
View user's profile Send private message 
edoc


Joined: 07 Aug 2005
Posts: 4379
Location: Southeast Georgia, USA

PostPosted: Sun 08 Aug 2010, 20:58    Post subject:  

Warrior522 wrote:
*sigh*

Why can nothing ever be simple...? Rolling Eyes

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


There, now aren't you glad that you asked? Wink

http://www.w3.org/Protocols/MUX/
Quote:
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.

_________________
Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Puppy upup Raring 3992 & Lighthouse64-b602
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 4 [48 Posts]   Goto page: 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » REQUESTS
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0863s ][ Queries: 11 (0.0040s) ][ GZIP on ]