Page 1 of 1

[HOW TO] Transcoding game music files to MP3

PostPosted: Wed Jul 25, 2012 1:28 am
by bass-style
Subsonic can play various MOD and game music files with Extended Module Player.
Tested on debian 6 but same for ubuntu with web ui and Android client.

$ sudo apt-get install xmp lame
$ sudo ln -s /usr/bin/xmp /var/subsonic/transcode/xmp
$ rm /var/subsonic/transcode/lame; ln -s /usr/bin/lame /var/subsonic/transcode/lame #Subsonic 4.7 needs this line as executing /var/subsonic/transcode/lame exits with error

Open Subsonic Web UI in browser and login as admin. Under Settings > General append the following file extensions under the "Music files" field (yes xmp plays them all):
Code: Select all
alm 669 mdl far xm mod fnk imf it liq mod wow mtm ptm rtm stm s3m ult dmf dbm med okt emod sfx m15 mtn amf gdm stx gmc psm j2b umx amd rad hsc flx gtk mgt mtp

Click Save

Under Settings > Transcoding add new transcoder
Name: xmp player
Convert from: alm 669 mdl far xm mod fnk imf it liq mod wow mtm ptm rtm stm s3m ult dmf dbm med okt emod sfx m15 mtn amf gdm stx gmc psm j2b umx amd rad hsc flx gtk mgt mtp
Convert to: mp3
Step 1: xmp -c --nocmd %s
Step 2: lame -r -b %b --tt %t --ta %a --tl %l -S --resample 44.1 - -
Click Save

EDIT: Added the /var/subsonic/transcode/lame line for Subsonic 4.7.

Re: [HOW TO] Transcoding game music files to MP3

PostPosted: Fri Oct 05, 2012 8:40 pm
by Otherland
Hi

The latest official win32 build of XMP is 3.3.0. And it have a bug in regards writing to STDOUT, and this bug isn't fixed 3.5.0.

I've created a patched win32 XMP build. I'll upload the patch soon.
Fore more info see this : http://forum.subsonic.org/forum/viewtopic.php?f=2&t=7798&start=15#p46872

Cheers

Re: [HOW TO] Transcoding game music files to MP3

PostPosted: Sun Oct 28, 2012 7:20 pm
by jackbohlen
I can't get this to work with Subsonic 4.7 (same with the mikmod solution from another thread). Any ideas what could be wrong?
Here is what the log looks like when I try to play an xm

Code: Select all
[10/28/12 5:54:07 PM CET]    INFO   PlayQueueInputStream   user listening to "lug00ber/FASTMOD.XM"
[10/28/12 5:54:07 PM CET]    DEBUG   TranscodeInputStream   Starting transcoder: [/var/subsonic/transcode/xmp] [-c] [--nocmd] [/home/user/Music/Albums/lug00ber/FASTMOD.XM]
[10/28/12 5:54:07 PM CET]    WARN   TranscodingService   Failed to transcode FASTMOD. Using original.
[10/28/12 5:54:07 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/xmp) Extended Module Player 3.4.0
[10/28/12 5:54:07 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/xmp) Copyright (C) 1996-2011 Claudio Matsuoka and Hipolito Carraro Jr
[10/28/12 5:54:07 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/xmp) Using Output to stdout
[10/28/12 5:54:07 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/xmp) Mixer set to 16bit, 44100 Hz, interpolated stereo
[10/28/12 5:54:07 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/xmp) Loading /home/user/Music/Albums/lug00ber/FASTMOD.XM... (1 of 1)
[10/28/12 5:54:07 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/xmp) Module title : fast slow house
[10/28/12 5:54:07 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/xmp) Module type : XM 1.04 (FastTracker v2.00)
[10/28/12 5:54:07 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/xmp) Module length : 13 patterns
[10/28/12 5:54:07 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/xmp) Stored patterns: 13 .............
[10/28/12 5:54:07 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/xmp) Instruments : 28 ............................
[10/28/12 5:54:07 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/xmp) Channels : 16 [ 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 ]
[10/28/12 5:54:07 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/xmp) Estimated time : 1min34s
[10/28/12 5:54:07 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/xmp)
[10/28/12 5:54:07 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/xmp) Tempo[04] BPM[85] Pos[00/0C] Pat[01/0D]01/7F] Chn[01/0
[10/28/12 5:54:07 PM CET]    DEBUG   InputStreamReaderThread   (/var/subsonic/transcode/xmp) Tempo[02] BPM[85] Pos[00/0C] Pat[01/0D]03/7F] Chn[01/01]


I'm on Linux Mint 13 (64bit) if that helps.
Code: Select all
$ uname -a
Linux 3.2.0-32-generic #51-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Re: [HOW TO] Transcoding game music files to MP3

PostPosted: Mon Nov 26, 2012 12:16 am
by bass-style
Run this from the shell to fix your problem:
Code: Select all
# rm /var/subsonic/transcode/lame; ln -s /usr/bin/lame /var/subsonic/transcode/lame

I just ran into the same thing when upgrading to 4.7 (non-beta).

Re: [HOW TO] Transcoding game music files to MP3

PostPosted: Sat Dec 01, 2012 4:07 pm
by jackbohlen
I'm still getting the same error, I've doubled and trippled checked all the steps. I can play the files with xmp outside of subsonic.