You are not logged in.

#1 2020-03-29 00:59:40

Kivi
Member
Registered: 2020-03-25
Posts: 10

Create a remote music server and stream the audio to local computer

Hi!

I've been wondering whats a good approach to setting up a music streaming server, I have a bunch of music on my computer but I want to move it to my server.
It'd be cool if i could play it with an MPD client (I'm using ncmpcpp atm).
And get it recognized by my MPD module on my status bar and things of that nature.
Some tutorials I've found focused on playing the music on the remote machine and controlling it from the local machine, but that's not what I'm after.


Thanks in advance

Offline

#2 2020-03-29 04:48:35

Lupo Alberto
Member
From: Gomel, Belarus
Registered: 2013-11-25
Posts: 84

Re: Create a remote music server and stream the audio to local computer

I can be wrong but what do you think about Icecast?

Offline

#3 2020-03-29 07:01:08

seth
Member
Registered: 2012-09-03
Posts: 51,684

Re: Create a remote music server and stream the audio to local computer

Offline

#4 2020-03-29 17:01:25

Kivi
Member
Registered: 2020-03-25
Posts: 10

Re: Create a remote music server and stream the audio to local computer

Lupo Alberto wrote:

I can be wrong but what do you think about Icecast?

Hmn i see, could work, but i dont really understand how it works even after reading the wiki page, but might try it, let's see if I cant get it to work

Offline

#5 2020-03-29 23:34:39

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: Create a remote music server and stream the audio to local computer

Be aware that you'll likely experience (possibly significant) lag with icecast. I run it for our local radio station to stream online and there's 20 - 30 seconds of delay in it.

Rocket Streaming I found recently but haven't had a chance to play with claims to be a drop-in replacement for icecast with lower latency: https://www.rocketbroadcaster.com/strea … io-server/

Offline

#6 2020-03-29 23:52:54

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,561
Website

Re: Create a remote music server and stream the audio to local computer

This all sounds rather complicated.  I don't use mpd, but even ffplay can play a remote audio file given a proper URL (and it gets the metadata: album, title, artist, etc).  I've done this ample times with no issue even when the audio source is somewhere "out there" on WAN, not as some streaming provider, but just as a file available for download.  If the remote server is within the same LAN, then latency should be no issue at all.  Just set up a web/file server, or use sshfs or similar, and play the remote file like it was local.

Last edited by Trilby (2020-03-29 23:58:05)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2020-03-30 00:10:10

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Create a remote music server and stream the audio to local computer

Do you want the music to be streamed from the server like a radio station (server decides what everyone listens to), or do you want clients to be able to browse your library on demand?

If it's the latter, you could use minidlna: https://wiki.archlinux.org/index.php/ReadyMedia
It sets up a upnp media server that you can access with most clients on desktops, smartphones and tvs. You just need to create a configuration with a few lines (<10) and open 2 ports in your firewall.

I don't use mpd but I found this page about setting it up to work with a dlna server: https://www.lesbonscomptes.com/pages/mpd-upnp.html


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#8 2020-03-30 12:39:47

Kivi
Member
Registered: 2020-03-25
Posts: 10

Re: Create a remote music server and stream the audio to local computer

Xyne wrote:

Do you want the music to be streamed from the server like a radio station (server decides what everyone listens to), or do you want clients to be able to browse your library on demand?

If it's the latter, you could use minidlna: https://wiki.archlinux.org/index.php/ReadyMedia
It sets up a upnp media server that you can access with most clients on desktops, smartphones and tvs. You just need to create a configuration with a few lines (<10) and open 2 ports in your firewall.

I don't use mpd but I found this page about setting it up to work with a dlna server: https://www.lesbonscomptes.com/pages/mpd-upnp.html

I want clients to browse and play whatever, that link looks promising, but it'd be nice if i could use an MPD player to play my stuff, like, i really like ncmpcpp, but i guess i'll look into it, thanks

Offline

#9 2020-03-30 12:49:21

seth
Member
Registered: 2012-09-03
Posts: 51,684

Re: Create a remote music server and stream the audio to local computer

Again, if you want to use an mpd server on the remote system and mpd (and an mpd client) on the local systen: mpd can operate in satellite mode.
https://wiki.archlinux.org/index.php/Mu … lite_setup
Where the remote server forwards its database and casts the files to the local one.

Offline

#10 2020-03-30 18:00:32

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: Create a remote music server and stream the audio to local computer

Kivi wrote:
Xyne wrote:

Do you want the music to be streamed from the server like a radio station (server decides what everyone listens to), or do you want clients to be able to browse your library on demand?

If it's the latter, you could use minidlna: https://wiki.archlinux.org/index.php/ReadyMedia
It sets up a upnp media server that you can access with most clients on desktops, smartphones and tvs. You just need to create a configuration with a few lines (<10) and open 2 ports in your firewall.

I don't use mpd but I found this page about setting it up to work with a dlna server: https://www.lesbonscomptes.com/pages/mpd-upnp.html

I want clients to browse and play whatever, that link looks promising, but it'd be nice if i could use an MPD player to play my stuff, like, i really like ncmpcpp, but i guess i'll look into it, thanks

No problem, MPD is most convenient for the local network & even remote...
If you do all your music browsing trough ncmpcpp you don't even need to open an extra firewall port, simply open a control socket with ssh and add your localports, your stream & controling MPD which is http normally will now be encrypted, or only do this for the browsing part and setup streaming trough http, every platform will be able to play it, be it BSD Windows Android or whatever, you only need a player that's able to play streams..

Offline

Board footer

Powered by FluxBB