{"id":102,"date":"2012-01-29T01:34:14","date_gmt":"2012-01-29T01:34:14","guid":{"rendered":"http:\/\/technese.com\/?p=102"},"modified":"2019-12-28T03:51:38","modified_gmt":"2019-12-28T03:51:38","slug":"convert-mid-to-mp3-with-debian-linux-with-timidityfluidsynth-and","status":"publish","type":"post","link":"https:\/\/technese.com\/index.php\/2012\/01\/29\/convert-mid-to-mp3-with-debian-linux-with-timidityfluidsynth-and\/","title":{"rendered":"Convert .mid to .mp3 with Debian Linux with timidity\/fluidsynth and twolame encoder"},"content":{"rendered":"<p>Install timidity and twolame<\/p>\n<pre><code>$ aptitude install timidity twolame\n$ timidity file.mid -Ow -o - | twolame -b 256 -r - file.mp3\n---------------------------------------------------------\nInput Filename: STDIN\nOutput Filename: file.mp3\nRaw input format: 2 channels, 16-bit, 44100 Hz\n---------------------------------------------------------\nLibTwoLame 0.3.12 (http:\/\/www.twolame.org)\nInput : 44100 Hz, 2 channels\nOutput: 44100 Hz, Stereo\n256 kbps CBR MPEG-1 Layer II psycho model=3\n[De-emph:Off     Copyright:No     Original:Yes]\n[Padding:Off     CRC:Off          Energy:Off  ]\n---------------------------------------------------------\nPlaying file.mid\nMIDI file: file.mid\nFormat: 1  Tracks: 8  Divisions: 384\nTrack name: Guitar 1\nTrack name: Guitar 2\nTrack name: Guitar 3\nTrack name: Piano\nTrack name: Synth\nTrack name: Bass\nTrack name: Drums\n\nEncoding frame: 7788Playing time: ~210 seconds\nNotes cut: 0\nNotes lost totally: 0\nEncoding frame: 8976\nEncoding Finished.\nTotal bytes written: 7.77 MB.\n<\/code><\/pre>\n<p>or<\/p>\n<p>Install fluidsynth and twolame<\/p>\n<pre><code>$ aptitude install fluidsynth twolame\n$ fluidsynth -l -T raw -F - \/usr\/share\/sounds\/sf2\/FluidR3_GM.sf2\nfile.mid | twolame -b 256 -r - file.mp3\n\n---------------------------------------------------------\nInput Filename: STDIN\nOutput Filename: file.mp3\nRaw input format: 2 channels, 16-bit, 44100 Hz\n---------------------------------------------------------\nLibTwoLame 0.3.12 (http:\/\/www.twolame.org)\nInput : 44100 Hz, 2 channels\nOutput: 44100 Hz, Stereo\n256 kbps CBR MPEG-1 Layer II psycho model=3\n[De-emph:Off     Copyright:No     Original:Yes]\n[Padding:Off     CRC:Off          Energy:Off  ]\n---------------------------------------------------------\n\nEncoding frame: 8976\nEncoding Finished.\nTotal bytes written: 7.77 MB.\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Install timidity and twolame $ aptitude install timidity twolame $ timidity file.mid -Ow -o &#8211; | twolame -b 256 -r &#8211; file.mp3 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; Input Filename: STDIN Output Filename: file.mp3 Raw input format: 2 channels, 16-bit, 44100 Hz &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; LibTwoLame 0.3.12 (http:\/\/www.twolame.org) Input : 44100 Hz, 2 channels Output: 44100 Hz, Stereo 256 kbps CBR MPEG-1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-102","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/posts\/102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/comments?post=102"}],"version-history":[{"count":4,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/posts\/102\/revisions"}],"predecessor-version":[{"id":291,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/posts\/102\/revisions\/291"}],"wp:attachment":[{"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/media?parent=102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/categories?post=102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/technese.com\/index.php\/wp-json\/wp\/v2\/tags?post=102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}