#129209 - JaJa - Sun May 20, 2007 6:09 pm
Okay. Someone recently mentioned this new file format that Moonshell may be extended to support (not too sure about that, but there is a stand alone player).
You can find a windows encoder and the nds binary here:
http://mdxonline.dyndns.org/archives/2007/05/dsmplay_ver05.shtml
However, linux and mac users have once again been left without an encoder.
I had a look and this format appears to use mpeg1 video and a heavily downsampled audio track encoded with True Audio.
The binaries for encoding included with DSMplay are:
Mencoder - appears to be used to spit out the wav file that is used by ssrc and to get info on the file.
ffmpeg - used to encode the mpeg1 video
ssrc_hp - Shibatch Sample Rate converter, this is used to downsample (and dither and such) the wav spat out from mencoder.
ttaenc - true audio encoder. used to create true audio stream from the downsampled wav.
Unfortunately ssrc fails with an 'unknown error 1' on my G3 ibook under Tiger (maybe someone can try running it under Linux or Intel Tiger?), so I haven't been able to generate the streams (let alone think of combining them).
The encoder uses the following commands to prepare the streams:
ffmpeg -t 1 -v 1 -y -vcodec mpeg1video -qscale 4 -acodec mp3 -ab 160 -i <input file> <input file>.ffmpeg.mpg
ffmpeg -v 1 -y -vcodec mpeg1video -qscale 4 -acodec mp3 -ab 160 -i <input file> <input file>.ffmpeg.mpg
mencoder -v <input file>.ffmpeg.mpg -noautosub -ovc copy -af format=s16le,resample=48000:1:2,channels=2,volume=0:1 -oac pcm -of rawaudio -o <input file>.dsm1.wav
ssrc_hp --rate 32768 --dither 0 --bits 8 --normalize --pdf 2 --twopass <input file>.dsm1.wav <input file>.dsm2.wav
ttaenc -e <inpute file>.dsm2.wav
Of course I have since whipped out my hex editor to try and decipher the container format (it's quite simple actually). Details of the header to follow in my next post.
_________________
LAWL HOOGE
My Blog
You can find a windows encoder and the nds binary here:
http://mdxonline.dyndns.org/archives/2007/05/dsmplay_ver05.shtml
However, linux and mac users have once again been left without an encoder.
I had a look and this format appears to use mpeg1 video and a heavily downsampled audio track encoded with True Audio.
The binaries for encoding included with DSMplay are:
Mencoder - appears to be used to spit out the wav file that is used by ssrc and to get info on the file.
ffmpeg - used to encode the mpeg1 video
ssrc_hp - Shibatch Sample Rate converter, this is used to downsample (and dither and such) the wav spat out from mencoder.
ttaenc - true audio encoder. used to create true audio stream from the downsampled wav.
Unfortunately ssrc fails with an 'unknown error 1' on my G3 ibook under Tiger (maybe someone can try running it under Linux or Intel Tiger?), so I haven't been able to generate the streams (let alone think of combining them).
The encoder uses the following commands to prepare the streams:
ffmpeg -t 1 -v 1 -y -vcodec mpeg1video -qscale 4 -acodec mp3 -ab 160 -i <input file> <input file>.ffmpeg.mpg
ffmpeg -v 1 -y -vcodec mpeg1video -qscale 4 -acodec mp3 -ab 160 -i <input file> <input file>.ffmpeg.mpg
mencoder -v <input file>.ffmpeg.mpg -noautosub -ovc copy -af format=s16le,resample=48000:1:2,channels=2,volume=0:1 -oac pcm -of rawaudio -o <input file>.dsm1.wav
ssrc_hp --rate 32768 --dither 0 --bits 8 --normalize --pdf 2 --twopass <input file>.dsm1.wav <input file>.dsm2.wav
ttaenc -e <inpute file>.dsm2.wav
Of course I have since whipped out my hex editor to try and decipher the container format (it's quite simple actually). Details of the header to follow in my next post.
_________________
LAWL HOOGE
My Blog