Is there a way to convert DPG back?

Discussion in 'NDS - Emulation and Homebrew' started by Prime_Zero, Apr 16, 2010.

Apr 16, 2010
  1. Prime_Zero
    OP

    Member Prime_Zero GBAtemp Regular

    Joined:
    Jan 31, 2010
    Messages:
    271
    Location:
    Planet Earth
    Country:
    United States
    I was wondering if its there is a way to convert DPG files back to a normal format, yes its probably a odd thing to ask.
    But I have alot of Amv's I lost when my computer got a wicked virus, and im unable to find any of my amv's. I do have them on my Ds though, and so far ive had no luck converting them back, or finding a program that can.

    I Know its possible the thing is Im kinda thinking no one has ever wanted to convert back wards before so there probably is not a way. [​IMG]

    (Also was not sure if this was the right area for this topic....)
     
  2. giratina16

    Member giratina16 Born This Way

    Joined:
    Apr 10, 2010
    Messages:
    928
    Location:
    G.O.A.T.
    Country:
    United Kingdom
    I really don't think there is a way.
     
  3. Prime_Zero
    OP

    Member Prime_Zero GBAtemp Regular

    Joined:
    Jan 31, 2010
    Messages:
    271
    Location:
    Planet Earth
    Country:
    United States
    I was kinda thinking that to, but still wanted to make sure lol. [​IMG]
     
  4. FAST6191

    Reporter FAST6191 Techromancer

    pip
    Joined:
    Nov 21, 2005
    Messages:
    21,737
    Country:
    United Kingdom
    Not sure about some of the later iterations of the DPG format but there was a windows playback options at one point (the format is that simple you could do it with a hex editor if you really wanted)- the really old versions were a header (rather nicely sporting locations of the upcoming files), a mp2 audio track (can now be OGG) and then a MPEG1 raw stream, the newer versions added a frame lookup table of some form after the video and I have not paid any attention past that (it has been several years since I played with the DPG format).
    As for simple converter apps I know of none.

    I will mention though you are likely to find yourself looking at some tiny, heavily compressed MPEG1 videos and those will not be good for PC playback.

    That must have been a serious virus too- what was wrong with a liveCD?
     
  5. Prime_Zero
    OP

    Member Prime_Zero GBAtemp Regular

    Joined:
    Jan 31, 2010
    Messages:
    271
    Location:
    Planet Earth
    Country:
    United States
    I never thought of that, that would be kinda bad if it was 256 by 192 on the computer lol.
     
  6. how_do_i_do_that

    Member how_do_i_do_that Blue Wizard is about to die.

    Joined:
    May 16, 2008
    Messages:
    4,811
    Country:
    Antarctica
    Converting back can cause pixelation if you blow up the video, not worth the trouble to do so.
     
  7. Prime_Zero
    OP

    Member Prime_Zero GBAtemp Regular

    Joined:
    Jan 31, 2010
    Messages:
    271
    Location:
    Planet Earth
    Country:
    United States
    It is if you want your Amv's back lol, so far looking like i'll only be able to watch them on my Ds.
     
  8. choconado

    Member choconado Doesn't understand a damn thing on here

    Joined:
    Jan 28, 2010
    Messages:
    536
    Country:
    United States
    in a related topic, any way to convert .cbds files back to .cbz or .cbr? You can manually do it (which is a big pain) but you lose image quality.
     
  9. CannonFoddr

    Member CannonFoddr Regular GBATemp Lurker

    Joined:
    Sep 23, 2006
    Messages:
    4,106
    Location:
    Sitting by computer
    Country:
    United Kingdom
    Not too sure - but what about 'Super Â' video converter

    I know it allows conversion from AVI/MPG to DPG - not sure about the other way round...
    ... And as 'how_do_i_do_that' said there most probably be pixelation etc so the quality will be bad, still it might be something to look at
     
  10. stealthfire

    Newcomer stealthfire Member

    Joined:
    Nov 6, 2008
    Messages:
    44
    Country:
    Singapore
    I think it would be better to find and download those amvs again. There is significant quality loss in converting to DPG. Mainly due to 256x192 resolution. So converting it back will get you horrendous quality.
     
  11. FAST6191

    Reporter FAST6191 Techromancer

    pip
    Joined:
    Nov 21, 2005
    Messages:
    21,737
    Country:
    United Kingdom
    @choconado a bit off topic but OK, last time I played with CBDS files 7zip could open them (it was some time ago but after the app stopped being developed). Quality was usually good as well- the converter makes smaller images for the basic screenshots and uses bigger ones for
    CBR and CBZ files are nothing rar and zip files respectively with a different extension. Naturally you are going to want some form or page numbering/ordering in there but the CBDS converter should not have let you down there.

    Back on topic if I get a chance in the morning I will either pull it apart at the source level (alas the PC side of moonshell used an odd language last time I was playing with it) or just grab/make a few files and pull those apart. You should be able to pull them apart with a hex editor though, I should have linked something like it last night but http://www.howforge.com/how-to-convert-avi-to-dpg-in-linux has an old version of the DPG spec and as I said I doubt it has changed all that much with the increase in version numbers and even if it has the big numbers will correspond to your audio and video sections (although I will note that audio can end up bigger on some occasions when playing in this world).
     
  12. twiztidsinz

    Member twiztidsinz Taiju Yamada Fan

    Joined:
    Dec 23, 2008
    Messages:
    4,981
    Country:
    United States
    I believe .CBDS are just basic ZIP files, but unlike CBZ/CBR it has multiple resolutions and folders for each res.
     
  13. choconado

    Member choconado Doesn't understand a damn thing on here

    Joined:
    Jan 28, 2010
    Messages:
    536
    Country:
    United States
    Nope, just one resolution. I've had to manually convert a file I lost before. .cbz's are also just zip files with a different name. Problem is that the numbering style is different between CBDS and say, CDisplay. It works like this: A CBDS file will be listed "1, 2, 3...10, 11, 12...100, 101,102" etc, where a standard .cbz file will be listed as "001, 002, 003...010, 011, 012...100, 101, 102". I'm sure you can guess how things work out if you simply switch the extensions from a .cbds to a .cbz you need to actually go in and add the zeros to the files (using a zip program, natch) for the comic reader to get the page order right. And as I said, there's a resolution problem as well.
     
  14. WarazX

    Banned WarazX Banned

    Joined:
    Apr 17, 2010
    Messages:
    140
    Country:
    United States
    Theres a program called DPG Play that will do it.
     
  15. twiztidsinz

    Member twiztidsinz Taiju Yamada Fan

    Joined:
    Dec 23, 2008
    Messages:
    4,981
    Country:
    United States
    All my .CBDS files have 3 types of folders:
    - IMAGE (Top screen; "full" size image)
    - SMALL_N/SMALL_R (Bottom screen; Scaled to DS screen size)
    - THMB_N/THMB_R (Tiny preview; Shown on the Menu)

    For the SMALL_ and THMB_ folders, N is for Normal, R is for Rotated.
     
  16. bialy_gibson

    Member bialy_gibson GBAtemp Regular

    Joined:
    Oct 19, 2007
    Messages:
    131
    Country:
    Poland
    The resolution in .cbds files is set before converting via PictoDS, you can keep high resolution or set it to lower (faster loading, less weight).
     
  17. choconado

    Member choconado Doesn't understand a damn thing on here

    Joined:
    Jan 28, 2010
    Messages:
    536
    Country:
    United States
    Even at the highest setting, there's still some degradation of resolution.
     

Share This Page