Transcoding for mod music
Posted: Wed Mar 16, 2011 1:21 am
Here are some transcoding rules for playing MOD music. I did only test this using Linux.
MikMod is used to transcode .xm .s3m and .it files to raw wave. Unfortunately MikMod is very picky and won't output raw data voluntarily. A wrapper script is needed. The following code is the needed wrapper script.
Save the file in /var/subsonic/transcode/ under the name mikmod_stdout and make it executable.
Here is the rule for .xm:
xm > mp3 | xm | mp3 | mikmod_stdout %s | lame -r -b %b --tt %t --ta %a --tl %l -S --resample 44.1 - - | <blank>
For normal .mod files and more exotic formats (like .dw and .cus) uade is used.
Here is the rule for .mod:
mod > mp3 | mod | mp3 | uade123 %s --headphones2 -c | lame -b %b --tt %t --ta %a --tl %l -S --resample 44.1 - - | <blank>
MikMod is used to transcode .xm .s3m and .it files to raw wave. Unfortunately MikMod is very picky and won't output raw data voluntarily. A wrapper script is needed. The following code is the needed wrapper script.
- Code: Select all
#!/bin/bash
mikmod -d stdout --noloops -X -q -i --hqmixer --surround --norc "$1" | tee
Save the file in /var/subsonic/transcode/ under the name mikmod_stdout and make it executable.
Here is the rule for .xm:
xm > mp3 | xm | mp3 | mikmod_stdout %s | lame -r -b %b --tt %t --ta %a --tl %l -S --resample 44.1 - - | <blank>
For normal .mod files and more exotic formats (like .dw and .cus) uade is used.
Here is the rule for .mod:
mod > mp3 | mod | mp3 | uade123 %s --headphones2 -c | lame -b %b --tt %t --ta %a --tl %l -S --resample 44.1 - - | <blank>