Page 1 of 1

[HOW TO] Transcode MIDI files to MP3

PostPosted: Wed Jul 25, 2012 1:19 am
by bass-style
On ubuntu/debian:

$ sudo apt-get install timidity
$ sudo ln -s /usr/bin/timidity /var/subsonic/transcode/timidity

Open Subsonic Web UI in browser and login as admin. Under Settings > General append "mid mod rmi rcp r36 g18 g36" under "Music files" field.
Click Save

Under Settings > Transcoding add new transcoder
Name: timidity player
Convert from: mid mod rmi rcp r36 g18 g36
Convert to: mp3
Step 1: timidity -EFreverb=0 -EFchorus=0 %s -Ow -o -
Step 2: ffmpeg -i - -ab %bk -v 0 -f mp3 -
Click Save

You can now stream MIDI files in Subsonic. Seeking/duration will not work as MIDI is rendered in realtime and ffmpeg does not know how long the track will be. Works on web UI and Android.

Re: [HOW TO] Transcode MIDI files to MP3

PostPosted: Wed Oct 22, 2014 8:59 pm
by ch604
Works well also for redhat/centos, but needed to add some dependencies. Run this for cent6 x64:

sudo su -
cd /usr/local/src/
wget ... x86_64.rpm
wget ... x86_64.rpm
yum -y install arts esound-libs
rpm -ivh /usr/local/src/timidity++*
ln -s /usr/bin/timidity /var/subsonic/transcode/timidity

Then continue as normal with configuration in subsonic. You may need to rescan your library to pick up mid files, and don't forget also to add 'mid mod rmi' etc to "General > Music files" in Settings.