You are here: Home » Topic » Multiple soundbridges accessing one or more mt-daapds

Multiple soundbridges accessing one or more mt-daapds

FireFly Media Server (formerly mt-daapd) Firefly Media Server Forums Firefly Media Server General Discussion Multiple soundbridges accessing one or more mt-daapds

This topic contains 25 replies, has 11 voices, and was last updated by  The Highlander 11 years, 8 months ago.

Viewing 15 posts - 1 through 15 (of 26 total)
  • Author
    Posts
  • #1083

    rojbalc
    Participant

    I’m planning to have multiple Soundbridges running in different rooms off my NAS – purely independent of each other, just accessing the same drive.

    I’ve seen people mention that they’ve got several Soundbridges running, but haven’t found any information on whether these are accessing just one music database or more, all over 1 port or more, or much discussion of the general requirements for when you add an extra soundbridge into the equation.

    Can anyone give advice on where to start and how to go about it, and what you can or can’t do?

    My database(s) is on an MSS+, so I expect to be diving into the Big Linux Unknown again…

    Any help/advice much appreciated!
    roj.

    #9039

    mas
    Participant

    Setup:
    – firefly latest nightly on a NSLU, deunderclocked.
    – Debian OpenSlug-LE with ogg tremor patch in the transcoder (manual patch).
    – Serving ca. 4k soungs from an AES encrypted ext3 fs.
    – Samba, ntpd, sshd and the usual system daemons running on the NSLU. No other servers though.

    – Soundbridge M1001 via LAN connected
    – Soundbridge HomeMusic via WLAN/WPA connected

    What works:
    1. Both Soundbridges acessing an mp3 on the firefly server plus copying a file from/to the NSLU via samba or scp. No rebuffering.

    2. One Soundbridge accessing an .ogg which is transcoded to wav and streamed. The other soundbridge accessing a .mp3. No rebufferings, works nicely. Accessing the harddisk on the NSLU via samba or scp in addition does lead to sporadic rebufferings via LAN. Heavy rebuffering when done via WLAN, which is more a WLAN capacity issue then.

    3. Both soundbridges accessing an .ogg, so double transcoding required! Works with sporadic rebufferings, mostly going ok. This load is apparently at the edge what the CPU can do. Please note that the NSLU also has to decrypt the AES ext3 fs, so without the AES this would likely work without rebuffering, if only one of the streams goes via WLAN.

    4. Accessing the same file on the NSLU at the same time is no problem. Playback just isnt synchronous then.

    5. One Soundbridge playing from firefly and one an internet stream works also obviously.

    6. I could not notice much difference when a background filescan was triggered via the webinterface. Except for 3. which rebuffers more then.

    What should likely work:
    1. Accessing the NSLU with up to 4 Soundbridges without transcoding involved. If you do away with the AES and strip down to minimum amount of processes running then I could imagine more are possible as well.

    2. Three Soundbridges accessing mp3’s plus some file copies via samba should likely also work.

    ===========================

    Quite impressive what is possible thanks to the lean design of the firefly server.

    #9040

    rpedde
    Participant

    @rojbalc wrote:

    I’ve seen people mention that they’ve got several Soundbridges running, but haven’t found any information on whether these are accessing just one music database or more, all over 1 port or more, or much discussion of the general requirements for when you add an extra soundbridge into the equation.

    Most of what it does is pretty lightweight. You might see browsing slowdowns, etc, but you ought to be able to run probably 5 or 6 clients of an MSS, assuming they are all native and not transcoded.

    If you are transcoded, you’ll probably only get one transcoded file at a time.. depends on the type of file. Ogg is pretty cheap, and alac isn’t bad. Flac is pretty expensive. So while you might get two oggs transcoded at the same time, you probably won’t get two flacs transcoded at the same time.

    Just serving up mp3 and aac files is pretty inexpensive, though.

    Mas has a good summary there, and it seems pretty representative. De-underclocking is easy, though, so that’s probably worthwhile in any event.

    — Ron

    #9041

    richdunlop
    Participant

    @rojbalc wrote:

    I’ve seen people mention that they’ve got several Soundbridges running, but haven’t found any information on whether these are accessing just one music database or more, all over 1 port or more, or much discussion of the general requirements for when you add an extra soundbridge into the equation.

    Can anyone give advice on where to start and how to go about it, and what you can or can’t do?

    I’ve got three Soundbridges running off a single Firefly instance running on a deunderclocked slug. No problems with 320kbps MP3 streaming concurrently.

    There’s nothing special you need to do. Just buy the Soundbridges and hook them up to your network. I have two wireless and one wired.

    #9042

    jtbse
    Participant

    @rpedde wrote:

    If you are transcoded, you’ll probably only get one transcoded file at a time.. depends on the type of file. Ogg is pretty cheap, and alac isn’t bad. Flac is pretty expensive. So while you might get two oggs transcoded at the same time, you probably won’t get two flacs transcoded at the same time.

    This thread made me curious. I’m running current nightly on a deunderclockded NSLU2 with two SoundBridges (not quite as fancy as RichDunlop with three 😀 ). Soundbridges are connected wired Ethernet 100mbps.

    I’m currently streaming flac (transcoding to wav) to both of them, watching the NSLU2 with atop. Both are streaming flawlessly. On the NSLU2, total cpu utilization is 15% sys and 23% usr.

    Not too shabby for my needs!

    #9043

    richdunlop
    Participant

    @jtbse wrote:

    I’m currently streaming flac (transcoding to wav) to both of them, watching the NSLU2 with atop. Both are streaming flawlessly. On the NSLU2, total cpu utilization is 15% sys and 23% usr.

    Not too shabby for my needs!

    Wow. I expected a lot more CPU utilisation than that. Once I get a little further along with my FLAC rerip I’ll see if I can get the slug serving my 3 Soundbridges.

    #9044

    sansp00
    Participant

    It’s quite surprising how much it can handle … I stream 2 M1001, 1 R1000, 2 iTunes ( desktop + laptop ) from my little slug which also hosts a HTTP server and a SubVersion server.
    Im getting way more out of it than I expected when I forked out the money to buy this. If all gadgets I bought where like this, I would be a happy man 😉
    Patrick S.

    #9045

    mas
    Participant

    It’s quite surprising how much it can handle … I stream 2 M1001, 1 R1000, 2 iTunes ( desktop + laptop ) from my little slug which also hosts a HTTP server and a SubVersion server.

    Wow that now even surprises me. I take it for a given that you stream without transcoding and that you use a lightweight webserver with mostly static pages. Apache/mysql is very heavyweight and could keep an NSLU busy alone if it find some users.

    But well, then again I found some people who think that running any real encryption (as opposed to XOR) on a NSLU wouldnt be feasible.
    And it clearly is. Even watching a movie from an encrypted share does work, though for high quality streams the 1.1 MB/sec limitation of the encryption would be a problem of course. But for music and such its no problem.

    #9046

    sansp00
    Participant

    @mas wrote:

    It’s quite surprising how much it can handle … I stream 2 M1001, 1 R1000, 2 iTunes ( desktop + laptop ) from my little slug which also hosts a HTTP server and a SubVersion server.

    Wow that now even surprises me. I take it for a given that you stream without transcoding and that you use a lightweight webserver with mostly static pages. Apache/mysql is very heavyweight and could keep an NSLU busy alone if it find some users.

    Yup, no transcoding, lighthttpd with straitfoward pages, nothing fancy. I tried MySql and Apache, too big for what I wanted to do … I may try other web servers and probably a database server also down the road, but since I use the slug as a part time toy, part time server, I don’t mess it up too deliberately 🙂
    One things for sure, if they could put out another little bugger a bit more powerfull than this one at a good price, Im all in !
    Patrick S.

    #9047

    rpedde
    Participant

    @sansp00 wrote:

    @mas wrote:

    It’s quite surprising how much it can handle … I stream 2 M1001, 1 R1000, 2 iTunes ( desktop + laptop ) from my little slug which also hosts a HTTP server and a SubVersion server.

    Wow that now even surprises me. I take it for a given that you stream without transcoding and that you use a lightweight webserver with mostly static pages. Apache/mysql is very heavyweight and could keep an NSLU busy alone if it find some users.

    Yup, no transcoding, lighthttpd with straitfoward pages, nothing fancy. I tried MySql and Apache, too big for what I wanted to do … I may try other web servers and probably a database server also down the road, but since I use the slug as a part time toy, part time server, I don’t mess it up too deliberately 🙂
    One things for sure, if they could put out another little bugger a bit more powerfull than this one at a good price, Im all in !
    Patrick S.

    I’ve got a hacked-up version of micro_httpd that I’ve shoehorned php cgi support into — that way I can run a full php web server from inetd. Zero memory overhead, works great. It actually runs surprisingly quickly, too. I tried lighty, but it was too fat for how infrequently I used the web server.

    If you are interested, I’ll post patches.

    — Ron

    #9048

    rojbalc
    Participant

    @richdunlop wrote:

    I’ve got three Soundbridges running off a single Firefly instance running on a deunderclocked slug. No problems with 320kbps MP3 streaming concurrently.

    There’s nothing special you need to do. Just buy the Soundbridges and hook them up to your network. I have two wireless and one wired.

    Thanks for the advice. I’m not doing anything special like running additional servers off my NAS, I’ve not got any transcoding going (yet) either, so it will literally be 2x M1001s streaming music (mp3) off 1x Firefly on the MSS, both wireless. Sounds like I shouldn’t have any problems…

    #9049

    S80_UK
    Participant

    Just for fun (mainly because I can, but also to keep the wife happy 😉 ), I have set up my NSLU2 running several instances of Firefly (build 1511). In fact, today I have four instances running, each with its own settings and its own database.

    Why? Well, there are three of us, so I have one instance serving for me, one for my wife, and one for my daughter, and one capable of serving anything. This way, my wife and daughter can find their music more easily without tripping over all mine.

    How? Relatively painless. I created seven folders

    All
    Me
    Wife
    Daughter
    Me and Wife
    Me and Daughter
    Wife and Daughter

    Then I drop the artists and albums folders into the relevant one of these depending on who is to have access to that music. I set up four config files, each with its own port number, and each looking at the folders for the user for that instance of Firefly, and pointing to a unique database and log file. So for example, Firefly for my wife’s music looks at folders All, Wife, Me and Wife, Wife and Daughter. Firefly for my music looks at All, Me, Me and Wife, Me and Daughter. And so on. Then I just edited the start-up file S60mt-daapd to launch the four instances each with its own config file.

    Start up takes only a little longer than before if there is nothing new to add or change in the databases.

    And this is on a standard 266MHz NSLU2, transcoding FLAC to WAV for two SoundBridges.

    Ron – Thanks again for such an amazing piece of software. To say I am well impressed is a major piece of understatement. It’s just brilliant!

    #9050

    rpedde
    Participant

    @s80_uk wrote:

    All
    Me
    Wife
    Daughter
    Me and Wife
    Me and Daughter
    Wife and Daughter

    Then I drop the artists and albums folders into the relevant one of these depending on who is to have access to that music. I set up four config files, each with its own port number, and each looking at the folders for the user for that instance of Firefly, and pointing to a unique database and log file. So for example, Firefly for my wife’s music looks at folders All, Wife, Me and Wife, Wife and Daughter. Firefly for my music looks at All, Me, Me and Wife, Me and Daughter. And so on. Then I just edited the start-up file S60mt-daapd to launch the four instances each with its own config file.

    That’s a neat setup. The thing I’m driving for is to be able to do two things:

    1. Logs by user name
    2. Set base library to be a smart playlist
    3. Let smart playlist use a smart playlist as a criteria

    So I could make a playlist like:

    1. My stuff = grouping includes “me”
    2. Wifes stuff = grouping includes “wife”

    Then tag groupings like:

    me or me/wife, or wife

    Then set the “my stuff” playlist to be the “library” playlist when I log in, and set the “wifes stuff” playlist to be the “library” playlist when she logs in.

    Then other playlists would be the intersection of the playlist and the “base” playlist. So I might have a “No Country” (genre not includes “country”) and it would silently get turned into “(genre not includes ‘country’) and (grouping includes ‘me’)” when I query that playlists.

    That’s where I want to get, anyway. Or cast to users based on user agent or ip address range.

    Ron – Thanks again for such an amazing piece of software. To say I am well impressed is a major piece of understatement. It’s just brilliant!

    Well, shucks. Thanks. 🙂

    #9051

    S80_UK
    Participant

    @rpedde wrote:

    The thing I’m driving for is to be able to do two things:

    1. Logs by user name
    2. Set base library to be a smart playlist
    3. Let smart playlist use a smart playlist as a criteria

    So I could make a playlist like:

    1. My stuff = grouping includes “me”
    2. Wifes stuff = grouping includes “wife”

    Then tag groupings like:

    me or me/wife, or wife

    Then set the “my stuff” playlist to be the “library” playlist when I log in, and set the “wifes stuff” playlist to be the “library” playlist when she logs in.

    Then other playlists would be the intersection of the playlist and the “base” playlist. So I might have a “No Country” (genre not includes “country”) and it would silently get turned into “(genre not includes ‘country’) and (grouping includes ‘me’)” when I query that playlists.

    I like that idea – seems rather more elegant than my approach. And the Browse feature would still work I think, since it would be presented with the contents of the “base” playlist. Cool. It’s a personal preference, but I use Browse almost exclusively rather than static or smart playlists. One would ideally need some neat tagging tools for tagging masses of files across directories in order to set the groupings. I guess there may be some tools out there that can handle that…?

    #9052

    beerfan
    Participant

    @s80_uk wrote:

    I like that idea – seems rather more elegant than my approach. And the Browse feature would still work I think, since it would be presented with the contents of the “base” playlist. Cool. It’s a personal preference, but I use Browse almost exclusively rather than static or smart playlists. One would ideally need some neat tagging tools for tagging masses of files across directories in order to set the groupings. I guess there may be some tools out there that can handle that…?

    I’m surprised that you needed to make multiple instances. Did you split the databases? I created smart playlists for my wife’s stuff and some for my stuff all on the same instance. Yeah, we see each other’s playlists but other than that it’s easy to find what you want to listen to. I also browse within a playlist sometimes as that’s easy to do with iTunes or Rhythmbox. I don’t know about a Roku client…

Viewing 15 posts - 1 through 15 (of 26 total)

The forum ‘General Discussion’ is closed to new topics and replies.