Slashdot Mirror


Personal Use FLAC Streaming Solutions?

Kulaid982 asks: "A friend of mine has challenged me to put together an internet music server for him. Ideally he'd like to stream music from his apartment to work. I'm aware of mod_mp3 for Apache, and Shoutcast seems to be a great streaming option, however, most of his music is FLAC or WAV. Obviously, .wav files are only streamable over the fastest networks, so is there an option for on the fly encoding to MP3 or FLAC to stream it? This will be a dedicated music-streaming box for his own personal use. I'm sure someone out there has already done this or something similar, so please share; how'd you pull it off?" "Some technical specifics: The box is a P3 800 with 512MB of RAM, so I'm thinking Linux over Windows; his internet connection is 3 Mbps down, 256kbps up; and his collection is ~400GB, and is a mix of WAV, FLAC, and SHN (SHORTEN) formats."

17 of 46 comments (clear)

  1. Use... by keeleysam · · Score: 3, Informative

    -Windows 2000 or XP
    -Winamp 2.92 (yes i know its old but it supports shoutcast)
    -SHN and FLAC Winamp plugins
    -Winamp Shoutcast DSP plugin
    -Windows Shoutcast server

    The DSP enocdes to MP3 on the fly, and really dosn't use much in the way of system resources.

    The only problem i cna think of is remote control.

    --
    Nothing for you to see here, Please move along.
    1. Re:Use... by pyrrhonist · · Score: 2, Informative
      Winamp 2.92 (yes i know its old but it supports shoutcast)

      The newest version of WinAMP (5.08) supports the SHOUTcast plugin just fine. You don't need to get an old version.

      --
      Show me on the doll where his noodly appendage touched you.
    2. Re:Use... by Anonymous Coward · · Score: 1, Informative

      All of the resource usage from Winamp 5 comes from the skin engine. Turn that off & it will run like 2.x

  2. Supercast by p7 · · Score: 4, Informative
  3. SlimServer by spiralscratch · · Score: 5, Informative

    Get it here

    Runs great on my server, which is almost identical system to the one specified. It should handle everything you need, including multiple formats and transcoding.

    Their hardware is not required (but as an owner of one, I can say it is cool).

  4. SlimServer? Apache::MP3? by legLess · · Score: 3, Informative

    Have you looked at SlimServer? It's an open source Perl server designed to power Slim Devices' MP3 players.

    I used it for a bit, but ditched it in favor of Lincoln Stein's Apache::MP3. My SO still uses SlimServer to stream from home to work, though. The two coexist well on my little Debian server. I don't know if SlimServer supports FLAC; Apache::MP3 does.

    --
    This isn't as much "normalization" as it is "don't take so many drugs when you're designing tables."
  5. Winamp by TheSHAD0W · · Score: 2, Informative

    When Winamp runs the Shoutcast plug-in, it decodes the music, no matter what format, then recompresses it before sending it out to the server. FLAC won't faze it.

  6. Re:gnump3d by stevey · · Score: 2, Informative

    Yes you can do it, and if it doesn't work for you mail me (I'm the author).

  7. Re:shoutcast by Anonymous Coward · · Score: 1, Informative

    I don't believe it can stream FLAC.

    It would use too much bandwidth anyway. CD audio (WAV) would use 1411.2 kbps, and FLAC wouldn't reduce that by more than half. Assuming the FLAC is 70% of the input size in the worst case, and TCP overhead limits you to 80% of your line speed, you'd need a connection with 1.2 Mbps upload.

    SDSL could work, but many ISPs wouldn't like you uploading at that speed all day, so you'd probably need a T1 (unless you live close enough to work to use 802.11 or dry-pair DSL).

  8. one part: upling speed by sootman · · Score: 3, Informative

    I can tell you from personal experience (since it's what I have) that a 256k uplink is not enough to reliably stream a 128kbps file. It is just baaaarely enough to move 1 MB per minute, which is about what a 128k mp3 winds up being, and given real-world network conditions, you will never get a reliable enough link to even play one song without pauses. So, the next step down is 112k or 96k.

    At that point, the files are getting pretty small. A 128k mp3 is 1/10 the size of a .wav, and if FLAC gives 50% compression, 96k files--the largest you might expect to stream smoothly--is still 1/6 the size. So that 400 GB can shrink to about 60 GB (at which point, a 60 GB iPod becomes worth considering as well*) so there's not much reason not to just compress the whole collection to 96kbps mp3 or AAC or OGG and use that compressed copy as the source of what gets served/streamed.

    * an iPod would solve a lot of problems while creating very few. The main problem is the cost. OTOH, it doesn't depend on network availability. It can be used in a lot more places than a computer can. It will play mp3, aac, wav, aiff, and Apple's lossless codec. And it can store files and do other cool things.

    --
    Dear Slashdot: next time you want to mess with the site, add a rich-text editor for comments.
    1. Re:one part: upling speed by Bishop · · Score: 3, Informative

      In my experience you can stream 128kbit/s on a 256kbit/s link if a large enough recieve buffer is used. You can almost stream 196kbit/s reliably.

      I agree with the idea of compressing the music and storeing it in a more portable format.

  9. Re:No, you repeat after me by c0d3h4x0r · · Score: 3, Informative

    Just literally plugging the question into Google usually yields plenty of information:

    Personal Use FLAC Streaming Solutions?

    It's a fun game to play -- try it with other recent Ask Slashdot entries and you start to see how asinine most of the posted questions actually are.

    --
    Moderator hint: a comment is neither "Flamebait" nor "Troll" if it is true.
  10. Ampache by phlipper · · Score: 4, Informative

    http://www.ampache.org/ - It's a LAMP-based server, easy to use w/ some good features.

    Currently the following file formats are supported.

    * MP3 (Id3v1 & Id3v2)
    * OGG
    * WMA
    * RM
    * M4A/AAC/MP4 (Itunes files)
    * FLAC
    * MPC

    1. Re:Ampache by vollmerk · · Score: 1, Informative

      This is a limatation of the FLAC codec as far as I understand, I'm pretty sure there was an update to it that allows streaming... But don't quote me on that it's late and I'm tired.

      Just to pimp my produce a little more it also supports output to

      * Any Player that can read a https STREAM
      * Local Play through Moosic
      * Local Play through MPD
      * Multicasting using IceCast

      And it can generate the following Playlist types

      * Extended m3u
      * Simple m3u
      * PLS
      * ASX

      Public SVN: https://svn.ampache.org/trunk
      Themes: http://www.ampache.org/themes/

      I could go on, but you should just try it for yourself, http://www.ampache.org/support/faq.php

      -Karl Vollmer
      Lead Developer, Ampache

  11. SlimServer by Y+Ddraig+Goch · · Score: 2, Informative

    http://slimdevices.com/

    I use SlimServer alot. It comes with a software version of the SqueezeBox 2 (which supports ssl tunneling), it can also transcode on the fly to a lower bitrate (must install lame). This is a fantastic feature. I rip my music to mps vbr and transcode to a suitable bitrate for my outbound streams. SlimDevices also has a great support list and most questions are answered in short order.

    --
    Meddle thou not in the affairs of Dragons, for thou art crunchy and with most anything.
  12. Re:SlimServer? Apache::MP3? by Grotus · · Score: 2, Informative

    FLAC, WAV, OGG, SHN, APE, WMA, MOV

    As long as a command line tool to decode the audio exists which can direct its output to standard out, it can be transcoded and streamed using SlimServer.

    --
    "From my cold, dead hands you damn, dirty apes!" - CH
  13. Winamp and Shoutcast by haplo21112 · · Score: 2, Informative

    I have a shoutcast stream which is done as follows.

    I have a shoutcast server which is feed by winamp ruiing on a windows box. It plays back my files in random mode, and with the shout plugin for winamp shouts the stream into the shoutcast sever. The shoucast server then broad casts on the internet. Been up and running for 3 years now zero issues. It just works.

    I have also added a freeware product called wwwinamp from Halo 8 productions (The original was actually made by the winamp/shoutcast guys as well, but they droped it and the Halo 8 guy picked it up). The wwwinamp allows be to contol the feed over the internet from a browser.

    --
    Power Corrupts,Absolute Power Corrupts Absolutely, leaving one person(group)in charge is absolutely corrupt.