title: Http Live Streaming - Segmenting mp3 on Linux
body: <p>I simply want to segment an mp3 for HTTP Live Streaming in any linux distro (preferably CentOS) for the purpose of audio streaming to an iOS app.</p>
  
  <p>Out of the linux segmenters, I can get the following to compile in CentOS. </p>
  
  <ol>
  <li><p><a href="http://wiki.andy-chu.com/doku.php?id=http_live_streaming" rel="nofollow">http://wiki.andy-chu.com/doku.php?id=http_live_streaming</a> (not sure last time this was updated)</p></li>
  <li><p>m3u8-segmenter on github (updated months ago)</p></li>
  <li><p><a href="https://github.com/carsonmcdonald/HTTP-Live-Video-Stream-Segmenter-and-Distributor" rel="nofollow">https://github.com/carsonmcdonald/HTTP-Live-Video-Stream-Segmenter-and-Distributor</a> [ruby wrappers + c] (last updated 2 years ago, and a v2 branch 9 months old)</p></li>
  </ol>
  
  <p>In order to prep the file for segmenting, here is the ffmpeg conversion string to generate a valid ts file: </p>
  
  <p>$ ffmpeg -er 4 -i input.mp3 -f mpegts -acodec libmp3lame -ar 22050 -ab 32k -vn output.ts</p>
  
  <p>Each of the segmenters require various input switches, all quite simple, and all crash out with a seg fault. #2 actually does some segmenting, but faults after 56 segments every time. I've tried various mp3s with the same results. The issue queues for 2 &amp; 3 are full, with no responses in months of the same issues. </p>
  
  <p>Others must be doing this in a live production environment that isn't running OSX.. what are your methods? </p>