| Author |
Message |
edoc

Joined: 07 Aug 2005 Posts: 3938 Location: Southeast Georgia, USA
|
Posted: Sun 08 Aug 2010, 21:18 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.... |
Sure appreciate you applying your knowledge to this challenge!
Is anything here helpful?
http://theli.is-a-geek.org/blog/static/dpgconv
_________________ Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Multiple computers - currently running Puppy Exprimo ver. 5x15
|
|
Back to top
|
|
 |
chrome307

Joined: 15 Jan 2009 Posts: 713
|
Posted: Mon 09 Aug 2010, 06:24 Post subject:
|
|
Hi there
Sorry I should have explained a bit more clearly
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
|
|
Back to top
|
|
 |
paulhomebus

Joined: 21 Jan 2010 Posts: 120 Location: New Zealand
|
Posted: Mon 09 Aug 2010, 06:31 Post subject:
|
|
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
|
|
Back to top
|
|
 |
edoc

Joined: 07 Aug 2005 Posts: 3938 Location: Southeast Georgia, USA
|
Posted: Mon 09 Aug 2010, 10:27 Post subject:
|
|
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!
_________________ Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Multiple computers - currently running Puppy Exprimo ver. 5x15
|
|
Back to top
|
|
 |
chrome307

Joined: 15 Jan 2009 Posts: 713
|
Posted: Mon 09 Aug 2010, 10:38 Post subject:
|
|
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.
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."
|
|
Back to top
|
|
 |
chrome307

Joined: 15 Jan 2009 Posts: 713
|
Posted: Tue 10 Aug 2010, 05:15 Post subject:
|
|
Just an update ..... I have tried loading Wine.sfs, with FatDog64-500 and that was straightforward.
However, when I tried to run the DPGMux.exe file, it failed to run even though it was setup to run with WINE. I can only guess that as it is a 32bit app that it dosen't run in a 64bit environment ( not sure ? ).
So then I used Puppy Linux 4.31 ( 32bit ) and used WINE as pet file which allowed me to run the application, but then I got an error message which was garbled onscreen in a dialog box, complaining about wine3d( ? ). As I am using an Intel gfx card, I then added the full Xorg drivers, but this did not change anything and failed to run as well with the same error.
With further reading I understand that the *.DPG format is simply an adaptation of the Mpeg1 format, so can the DS playback this format natively?
If your unsure, can you simply rename an Mpeg video that you have and simply rename the extension to DPG and play that back and let me know the results?
|
|
Back to top
|
|
 |
disciple
Joined: 20 May 2006 Posts: 6182 Location: Auckland, New Zealand
|
Posted: Tue 10 Aug 2010, 06:11 Post subject:
|
|
Python seems a bit overkill to me. I got the impression reading the wikipedia page that you'd be able to create them with just ffmpeg, a hex editor and cat.
You might want to check out this link for some code to produce the header and do the muxing:
http://forum.gbadev.org/viewtopic.php?p=64827#64827
I wonder if that's where mpeg_stat originated...
_________________ DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
|
|
Back to top
|
|
 |
Warrior522
Joined: 03 Aug 2010 Posts: 91
|
Posted: Tue 10 Aug 2010, 14:51 Post subject:
|
|
| chrome307 wrote: |
If your unsure, can you simply rename an Mpeg video that you have and simply rename the extension to DPG and play that back and let me know the results? |
Tested this theory with an Mp4 file, got an error stating:
| Quote: | | Fatal error: unknown audio format. |
Also, it ran on my computer after the conversion. This should not be.
|
|
Back to top
|
|
 |
chrome307

Joined: 15 Jan 2009 Posts: 713
|
Posted: Wed 11 Aug 2010, 05:13 Post subject:
|
|
@ Warrior522
I will mux a video clip for you with hopefully the right combination of codecs and upload it for you ie m1v & mp2.
....btw I mp4 is a different container, not mpeg.
|
|
Back to top
|
|
 |
Warrior522
Joined: 03 Aug 2010 Posts: 91
|
Posted: Wed 11 Aug 2010, 14:06 Post subject:
|
|
| chrome307 wrote: | @ Warrior522
I will mux a video clip for you with hopefully the right combination of codecs and upload it for you ie m1v & mp2.
....btw I mp4 is a different container, not mpeg. |
I found some mpg file somewhere in the back of my filesystem while fishing for a lost file last night and tested that. No good.
|
|
Back to top
|
|
 |
edoc

Joined: 07 Aug 2005 Posts: 3938 Location: Southeast Georgia, USA
|
Posted: Wed 11 Aug 2010, 14:17 Post subject:
|
|
Nothing other than a properly configured DPG file will work in a Nintendo DS and a DPG will not work on anything other than a Nintendo DS.
| Quote: | | DPG - Also known as nDs-mPeG, usually abbreviated DPG, is a special format of MPEG-1 video specifically for playback using the homebrew Moonshell program for the Nintendo DS. So, for watching video on Nintendo DS we have to convert video to DPG with a DPG Converter. |
| Quote: | | nDs-mPeG, usually abbreviated DPG, is a special format of MPEG-1 video specifically for playback using the homebrew Moonshell program for the Nintendo DS. The video is encoded on a computer and then transferred, along with Moonshell, to the DS for playback. |
| Quote: | | While there are many GUI encoding programs available, the file format is simple enough to also allow DPG files to be manually encoded and placed into the proper container format. Also, a program called EZBuilder by erspicu_brox can convert to DPG with FFmpeg. |
Which brings us back to here:
http://sourceforge.net/projects/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. |
_________________ Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Multiple computers - currently running Puppy Exprimo ver. 5x15
|
|
Back to top
|
|
 |
chrome307

Joined: 15 Jan 2009 Posts: 713
|
Posted: Thu 12 Aug 2010, 05:15 Post subject:
|
|
Well OK then ... looks like you'll have to wait for someone to compile it for you correctly.
Anyway here's the video clip I made with FFMpeg, it has the correct parameters for playback, but is an mpeg .... if could try renaming this to dpg and see if it works?
approx 12mb:
http://www.mediafire.com/?410060eadqqb087
|
|
Back to top
|
|
 |
edoc

Joined: 07 Aug 2005 Posts: 3938 Location: Southeast Georgia, USA
|
Posted: Thu 12 Aug 2010, 12:12 Post subject:
|
|
Is this helpful?
http://www.mythtv.org/wiki/Dpg_export
| Quote: |
A DPG is a slightly modified version of an mpeg file. This video format is used by a shell application called moonshell. Home brewed DS applications such as these are typically used with Super and R4 cards. You probably do not want to use this script unless you have moonshell, one of these cards and are comfortable with the whole process.
This script utilizes the dpgexport.py script which can be found at http://theli.is-a-geek.org/blog/static/dpgconv. The dpgconv script uses an application called mpeg_stat whose source can be donwloaded from the dpgconv website. I found that compiling mpeg_stat from source works best.
NOTE: dpgconv.py cannot convert rjpeg files. It is best to have your recordings in mpeg2/4 format. This can be achieved by modifying your transcode profiles.
Place dpgconv.py, mpeg_stat and mpeg_stat.1 in /usr/local/bin
Use as a user job
dpgexport %DIR% %FILE% %TITLE% %SUBTITLE% /mnt/mythtv/recordings/mobile
This will place a dpg of your recording in /mnt/mythtv/recordings/mobile/TITLE-SUBTITLE.dpg
The Code
|
| Code: |
Image:Script.png dpgconv.sh
#!/bin/bash
source_dir="$1"
source_file="$2"
title="$3"
subtitle="$4"
dest_dir="$5"
source_path="$source_dir/$source_file"
dest_path1=$(echo "$dest_dir/$source_file" | sed -r 's/\..*$/.dpg/')
dest_path2="$dest_dir/$title - $subtitle.dpg"
cd "$dest_dir"
dpgconv.py "$source_path"
mv "$dest_path1" "$dest_path2" |
_________________ Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Multiple computers - currently running Puppy Exprimo ver. 5x15
|
|
Back to top
|
|
 |
paulhomebus

Joined: 21 Jan 2010 Posts: 120 Location: New Zealand
|
Posted: Sun 15 Aug 2010, 01:49 Post subject:
|
|
Would you be interested in dpg4x on Lupu 5.1
Hopefully gonna compile it within the next little while.
(watch this space)
Paul
|
|
Back to top
|
|
 |
edoc

Joined: 07 Aug 2005 Posts: 3938 Location: Southeast Georgia, USA
|
Posted: Sun 15 Aug 2010, 11:15 Post subject:
|
|
That sounds great!
Standing by ...
_________________ Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Multiple computers - currently running Puppy Exprimo ver. 5x15
|
|
Back to top
|
|
 |
|