Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Moode & streaming on internet
#1
Hi,
I'm very happy with Moode Audio, great software. I use it almost every day.

Today the configuration is :
Raspberry Pi with Moode Audio:
- Input:  connected to local NAS where music is stored,
- Ouput: jack or bluetooth to hifi local system.

I'm thinking of a next step in term of usage:
- Output to internet (via VPN): so the music can be available on my smarphone or from my PC.

I read some articles about icecast and others pieces of software, but not clear enough for me.

What is for you the right path to go?

I'm posting there because I made some searchs without any success, see hereunder.
Thank you
Phil35


Attached Files Thumbnail(s)
   
Reply
#2
@Phil35

Have you tried the HTTP streaming built into moOde? See m>Configure>Audio to enable and configure it.

Regards,
Kent
Reply
#3
As @TheOldPresbyope mentioned you can turn on the HTTP server in Audio Config and this will make whatever MPD is playing available at http://moode:8000. You could then create a new Radio Station with that as the URL.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#4
Hi,
I must be stupid ... no success Huh

Yes I selected "SET"  on http streaming, see screenshot.
but nothing on port 8000

I found the port 6600 with information on MPD version: "OK MPD 0.23.5".see screenshot

no result for command: lsof -i -n  |grep 8000

Last lines of file /etc/mpd.conf seems correct:
--

resampler {
plugin "soxr"
quality "high"
threads "1"
}

audio_output {
type "alsa"
name "ALSA Default"
device "_audioout"
mixer_type "hardware"
mixer_control "Headphone"
mixer_device "hw:1"
mixer_index "0"
dop "no"
stop_dsd_silence "no"
thesycon_dsd_workaround "no"
}

audio_output {
type "alsa"
name "ALSA Bluetooth"
device "_audioout"
mixer_type "software"
}

audio_output {
type "httpd"
name "HTTP Server"
port "8000"
encoder "lame"
bitrate "320"
tags "yes"
always_on "yes"
}
--

I also reboot the raspberry .. something I don't like to do, I prefer understand

I look to some sites as: https://github.com/moode-player/moode/tree/master   where twitter link should be replaced

Thank you for your time, I apologize,  that seems obvious
Phil35


Attached Files Thumbnail(s)
       
Reply
#5
(11-17-2022, 05:55 PM)Phil35 Wrote: Hi,
I must be stupid ... no success Huh

Yes I selected "SET"  on http streaming, see screenshot.
but nothing on port 8000

I found the port 6600 with information on MPD version: "OK MPD 0.23.5".see screenshot

no result for command: lsof -i -n  |grep 8000

Last lines of file /etc/mpd.conf seems correct:
--

resampler {
plugin "soxr"
quality "high"
threads "1"
}

audio_output {
type "alsa"
name "ALSA Default"
device "_audioout"
mixer_type "hardware"
mixer_control "Headphone"
mixer_device "hw:1"
mixer_index "0"
dop "no"
stop_dsd_silence "no"
thesycon_dsd_workaround "no"
}

audio_output {
type "alsa"
name "ALSA Bluetooth"
device "_audioout"
mixer_type "software"
}

audio_output {
type "httpd"
name "HTTP Server"
port "8000"
encoder "lame"
bitrate "320"
tags "yes"
always_on "yes"
}
--

I also reboot the raspberry .. something I don't like to do, I prefer understand

I look to some sites as: https://github.com/moode-player/moode/tree/master   where twitter link should be replaced

Thank you for your time, I apologize,  that seems obvious
Phil35

Works fine on my end.

- On Pi named "moode" turn on the HTTP server
- On another pi create a radio station with url = http://moode:8000
- Start something playing on moode
- Play the radio station on the other pi and the music is what is playing on pi named "moode"

The lsof command is not part of the moode image.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#6
Ah you're right, of course you are.
I forgot one point "Start something playing on moode"
then everything is fine.
If there is nothing to hear ... the port 8000 is not active.

Yes, I have installed lsof package to detect if mpd has the port 8000 opens. The port 8000 is open ONLY when there is something to listen ;-)

# lsof -i -n |grep 8000
mpd 1557 mpd 17u IPv4 993926 0t0 TCP 192.168.6.112:8000->192.168.6.18:55092 (ESTABLISHED)
mpd 1557 mpd 26u IPv4 993604 0t0 TCP *:8000 (LISTEN)

Thank you M.T.Curtis and M.TheOldPresbyope
Reply


Forum Jump: