[HOW TO] Transcode MIDI files to MP3

Tutorials, tips and tricks.

Moderator: moderators

[HOW TO] Transcode MIDI files to MP3

Postby bass-style » Wed Jul 25, 2012 1:19 am

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.
bass-style
 
Posts: 8
Joined: Wed Jan 11, 2012 10:28 pm

Re: [HOW TO] Transcode MIDI files to MP3

Postby ch604 » Wed Oct 22, 2014 8:59 pm

Works well also for redhat/centos, but needed to add some dependencies. Run this for cent6 x64:

sudo su -
cd /usr/local/src/
wget http://mirror.yandex.ru/fedora/russianf ... x86_64.rpm
wget http://mirror.yandex.ru/fedora/russianf ... 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.
ch604
 
Posts: 3
Joined: Thu Jun 13, 2013 1:31 pm


Return to Tutorials

Who is online

Users browsing this forum: No registered users and 0 guests